Lines Matching defs:phy
10 #include <linux/phy/phy.h>
54 struct phy *phy;
142 struct device *dev = imx_phy->phy->dev.parent;
144 if (device_property_read_u32(dev, "fsl,phy-tx-vref-tune-percent",
151 if (device_property_read_u32(dev, "fsl,phy-tx-rise-tune-percent",
158 if (device_property_read_u32(dev, "fsl,phy-tx-preemp-amp-tune-microamp",
165 if (device_property_read_u32(dev, "fsl,phy-tx-vboost-level-microvolt",
172 if (device_property_read_u32(dev, "fsl,phy-comp-dis-tune-percent",
186 if (device_property_read_u32(dev, "fsl,phy-pcs-tx-swing-full-percent",
255 static int imx8mq_usb_phy_init(struct phy *phy)
257 struct imx8mq_usb_phy *imx_phy = phy_get_drvdata(phy);
281 static int imx8mp_usb_phy_init(struct phy *phy)
283 struct imx8mq_usb_phy *imx_phy = phy_get_drvdata(phy);
321 static int imx8mq_phy_power_on(struct phy *phy)
323 struct imx8mq_usb_phy *imx_phy = phy_get_drvdata(phy);
333 static int imx8mq_phy_power_off(struct phy *phy)
335 struct imx8mq_usb_phy *imx_phy = phy_get_drvdata(phy);
358 {.compatible = "fsl,imx8mq-usb-phy",
360 {.compatible = "fsl,imx8mp-usb-phy",
377 imx_phy->clk = devm_clk_get(dev, "phy");
379 dev_err(dev, "failed to get imx8mq usb phy clock\n");
391 imx_phy->phy = devm_phy_create(dev, NULL, phy_ops);
392 if (IS_ERR(imx_phy->phy))
393 return PTR_ERR(imx_phy->phy);
399 phy_set_drvdata(imx_phy->phy, imx_phy);
411 .name = "imx8mq-usb-phy",