Lines Matching defs:phy
15 #include <linux/phy/phy.h>
20 #include <dt-bindings/phy/phy.h>
80 struct phy *phy;
329 static int intel_cbphy_init(struct phy *phy)
331 struct intel_cbphy_iphy *iphy = phy_get_drvdata(phy);
354 static int intel_cbphy_exit(struct phy *phy)
356 struct intel_cbphy_iphy *iphy = phy_get_drvdata(phy);
376 static int intel_cbphy_calibrate(struct phy *phy)
378 struct intel_cbphy_iphy *iphy = phy_get_drvdata(phy);
425 cbphy->phy_rst = devm_reset_control_get_optional(dev, "phy");
471 ret = fwnode_property_read_u32_array(fwnode, "intel,phy-mode", &val, 1);
510 static struct phy *intel_cbphy_xlate(struct device *dev,
523 dev_err(dev, "Invalid phy instance %d\n", iphy_id);
532 return cbphy->iphy[iphy_id].phy;
547 /* In dual lane mode skip phy creation for the second phy */
551 iphy->phy = devm_phy_create(dev, NULL, &intel_cbphy_ops);
552 if (IS_ERR(iphy->phy)) {
556 return PTR_ERR(iphy->phy);
559 phy_set_drvdata(iphy->phy, iphy);
601 { .compatible = "intel,combo-phy" },
610 .name = "intel-combo-phy",
617 MODULE_DESCRIPTION("Intel Combo-phy driver");