Lines Matching defs:phy
3 * phy-uniphier-usb2.c - PHY driver for UniPhier USB2 controller
13 #include <linux/phy/phy.h>
41 struct phy *phy;
47 static int uniphier_u2phy_power_on(struct phy *phy)
49 struct uniphier_u2phy_priv *priv = phy_get_drvdata(phy);
58 static int uniphier_u2phy_power_off(struct phy *phy)
60 struct uniphier_u2phy_priv *priv = phy_get_drvdata(phy);
68 static int uniphier_u2phy_init(struct phy *phy)
70 struct uniphier_u2phy_priv *priv = phy_get_drvdata(phy);
83 static struct phy *uniphier_u2phy_xlate(struct device *dev,
88 while (priv && args->np != priv->phy->dev.of_node)
92 dev_err(dev, "Failed to find appropriate phy\n");
96 return priv->phy;
149 priv->phy = devm_phy_create(dev, child, &uniphier_u2phy_ops);
150 if (IS_ERR(priv->phy)) {
151 dev_err(dev, "Failed to create phy\n");
152 ret = PTR_ERR(priv->phy);
165 dev_warn(dev, "No phy configuration: %s\n",
168 phy_set_drvdata(priv->phy, priv);
222 .compatible = "socionext,uniphier-pro4-usb2-phy",
226 .compatible = "socionext,uniphier-ld11-usb2-phy",
236 .name = "uniphier-usb2-phy",