Lines Matching defs:phy

13 #include <linux/phy/phy.h>
110 * struct qcom_snps_hsphy - snps hs phy attributes
114 * @phy: generic phy
115 * @base: iomapped memory space for snps hs phy
119 * @phy_reset: phy reset control
123 * @update_seq_cfg: tuning parameters for phy init
128 struct phy *phy;
185 dev_dbg(&hsphy->phy->dev, "Suspend QCOM SNPS PHY\n");
204 dev_dbg(&hsphy->phy->dev, "Resume QCOM SNPS PHY, mode\n");
229 static int qcom_snps_hsphy_set_mode(struct phy *phy, enum phy_mode mode,
232 struct qcom_snps_hsphy *hsphy = phy_get_drvdata(phy);
386 static int qcom_snps_hsphy_init(struct phy *phy)
388 struct qcom_snps_hsphy *hsphy = phy_get_drvdata(phy);
391 dev_vdbg(&phy->dev, "%s(): Initializing SNPS HS phy\n", __func__);
399 dev_err(&phy->dev, "failed to enable clocks, %d\n", ret);
405 dev_err(&phy->dev, "failed to assert phy_reset, %d\n", ret);
413 dev_err(&phy->dev, "failed to de-assert phy_reset, %d\n", ret);
479 static int qcom_snps_hsphy_exit(struct phy *phy)
481 struct qcom_snps_hsphy *hsphy = phy_get_drvdata(phy);
499 { .compatible = "qcom,sm8150-usb-hs-phy", },
500 { .compatible = "qcom,usb-snps-hs-5nm-phy", },
502 .compatible = "qcom,usb-snps-hs-7nm-phy",
505 { .compatible = "qcom,usb-snps-femto-v2-phy", },
558 dev_dbg(&hsphy->phy->dev, "Read param: %s dt_val: %d reg_val: 0x%x\n",
569 struct phy *generic_phy;
589 dev_err(dev, "failed to get phy core reset\n");
613 dev_err(dev, "failed to create phy, %d\n", ret);
616 hsphy->phy = generic_phy;
624 dev_dbg(dev, "Registered Qcom-SNPS HS phy\n");
634 .name = "qcom-snps-hs-femto-v2-phy",