Lines Matching +full:hi6220 +full:- +full:usb +full:- +full:phy
1 // SPDX-License-Identifier: GPL-2.0-or-later
11 #include <linux/phy/phy.h>
51 struct regmap *reg = priv->reg; in hi6220_phy_init()
63 struct regmap *reg = priv->reg; in hi6220_phy_setup()
94 dev_err(priv->dev, "failed to setup phy ret: %d\n", ret); in hi6220_phy_setup()
98 static int hi6220_phy_start(struct phy *phy) in hi6220_phy_start() argument
100 struct hi6220_priv *priv = phy_get_drvdata(phy); in hi6220_phy_start()
105 static int hi6220_phy_exit(struct phy *phy) in hi6220_phy_exit() argument
107 struct hi6220_priv *priv = phy_get_drvdata(phy); in hi6220_phy_exit()
121 struct device *dev = &pdev->dev; in hi6220_phy_probe()
122 struct phy *phy; in hi6220_phy_probe() local
127 return -ENOMEM; in hi6220_phy_probe()
129 priv->dev = dev; in hi6220_phy_probe()
130 priv->reg = syscon_regmap_lookup_by_phandle(dev->of_node, in hi6220_phy_probe()
131 "hisilicon,peripheral-syscon"); in hi6220_phy_probe()
132 if (IS_ERR(priv->reg)) { in hi6220_phy_probe()
133 dev_err(dev, "no hisilicon,peripheral-syscon\n"); in hi6220_phy_probe()
134 return PTR_ERR(priv->reg); in hi6220_phy_probe()
139 phy = devm_phy_create(dev, NULL, &hi6220_phy_ops); in hi6220_phy_probe()
140 if (IS_ERR(phy)) in hi6220_phy_probe()
141 return PTR_ERR(phy); in hi6220_phy_probe()
143 phy_set_drvdata(phy, priv); in hi6220_phy_probe()
149 {.compatible = "hisilicon,hi6220-usb-phy",},
157 .name = "hi6220-usb-phy",
163 MODULE_DESCRIPTION("HISILICON HI6220 USB PHY driver");
164 MODULE_ALIAS("platform:hi6220-usb-phy");