Lines Matching defs:phy
3 * phy-uniphier-ahci.c - PHY driver for UniPhier AHCI controller
15 #include <linux/phy/phy.h>
133 /* dummy read 25 times to make a wait time for the phy to stabilize */
140 static int uniphier_ahciphy_init(struct phy *phy)
142 struct uniphier_ahciphy_priv *priv = phy_get_drvdata(phy);
169 static int uniphier_ahciphy_exit(struct phy *phy)
171 struct uniphier_ahciphy_priv *priv = phy_get_drvdata(phy);
179 static int uniphier_ahciphy_power_on(struct phy *phy)
181 struct uniphier_ahciphy_priv *priv = phy_get_drvdata(phy);
208 static int uniphier_ahciphy_power_off(struct phy *phy)
210 struct uniphier_ahciphy_priv *priv = phy_get_drvdata(phy);
234 struct phy *phy;
255 priv->clk = devm_clk_get(dev, "phy");
264 priv->rst = devm_reset_control_get_shared(dev, "phy");
268 phy = devm_phy_create(dev, dev->of_node, &uniphier_ahciphy_ops);
269 if (IS_ERR(phy)) {
270 dev_err(dev, "failed to create phy\n");
271 return PTR_ERR(phy);
274 phy_set_drvdata(phy, priv);
299 .compatible = "socionext,uniphier-pxs2-ahci-phy",
303 .compatible = "socionext,uniphier-pxs3-ahci-phy",
313 .name = "uniphier-ahci-phy",