Lines Matching defs:phy
15 #include <linux/phy/phy.h>
107 static int phy_meson_gxl_usb2_init(struct phy *phy)
109 struct phy_meson_gxl_usb2_priv *priv = phy_get_drvdata(phy);
125 static int phy_meson_gxl_usb2_exit(struct phy *phy)
127 struct phy_meson_gxl_usb2_priv *priv = phy_get_drvdata(phy);
135 static int phy_meson_gxl_usb2_reset(struct phy *phy)
137 struct phy_meson_gxl_usb2_priv *priv = phy_get_drvdata(phy);
152 static int phy_meson_gxl_usb2_set_mode(struct phy *phy,
155 struct phy_meson_gxl_usb2_priv *priv = phy_get_drvdata(phy);
181 phy_meson_gxl_usb2_reset(phy);
188 static int phy_meson_gxl_usb2_power_off(struct phy *phy)
190 struct phy_meson_gxl_usb2_priv *priv = phy_get_drvdata(phy);
201 static int phy_meson_gxl_usb2_power_on(struct phy *phy)
203 struct phy_meson_gxl_usb2_priv *priv = phy_get_drvdata(phy);
211 ret = phy_meson_gxl_usb2_set_mode(phy, priv->mode, 0);
213 phy_meson_gxl_usb2_power_off(phy);
215 dev_err(&phy->dev, "Failed to initialize PHY with mode %d\n",
238 struct phy *phy;
260 priv->clk = devm_clk_get_optional(dev, "phy");
264 priv->reset = devm_reset_control_get_optional_shared(dev, "phy");
268 phy = devm_phy_create(dev, NULL, &phy_meson_gxl_usb2_ops);
269 if (IS_ERR(phy)) {
270 ret = PTR_ERR(phy);
277 phy_set_drvdata(phy, priv);
285 { .compatible = "amlogic,meson-gxl-usb2-phy", },
293 .name = "phy-meson-gxl-usb2",