Lines Matching +full:vdd18 +full:- +full:supply

1 // SPDX-License-Identifier: GPL-2.0
82 "vdd18", "vdd3",
113 int num = rptr->cfg->num_vregs; in eusb2_repeater_init_vregs()
114 struct device *dev = rptr->dev; in eusb2_repeater_init_vregs()
117 rptr->vregs = devm_kcalloc(dev, num, sizeof(*rptr->vregs), GFP_KERNEL); in eusb2_repeater_init_vregs()
118 if (!rptr->vregs) in eusb2_repeater_init_vregs()
119 return -ENOMEM; in eusb2_repeater_init_vregs()
122 rptr->vregs[i].supply = rptr->cfg->vreg_list[i]; in eusb2_repeater_init_vregs()
124 return devm_regulator_bulk_get(dev, num, rptr->vregs); in eusb2_repeater_init_vregs()
130 struct device_node *np = rptr->dev->of_node; in eusb2_repeater_init()
131 struct regmap *regmap = rptr->regmap; in eusb2_repeater_init()
132 const u32 *init_tbl = rptr->cfg->init_tbl; in eusb2_repeater_init()
136 u32 base = rptr->base; in eusb2_repeater_init()
140 of_property_read_u8(np, "qcom,tune-usb2-amplitude", &tune_iusb2); in eusb2_repeater_init()
141 of_property_read_u8(np, "qcom,tune-usb2-disc-thres", &tune_hsdisc); in eusb2_repeater_init()
142 of_property_read_u8(np, "qcom,tune-usb2-preem", &tune_usb2_preem); in eusb2_repeater_init()
144 ret = regulator_bulk_enable(rptr->cfg->num_vregs, rptr->vregs); in eusb2_repeater_init()
166 dev_err(rptr->dev, "initialization timed-out\n"); in eusb2_repeater_init()
175 struct regmap *regmap = rptr->regmap; in eusb2_repeater_set_mode()
176 u32 base = rptr->base; in eusb2_repeater_set_mode()
193 * regulators (say host <-> device mode switch). in eusb2_repeater_set_mode()
199 return -EINVAL; in eusb2_repeater_set_mode()
209 return regulator_bulk_disable(rptr->cfg->num_vregs, rptr->vregs); in eusb2_repeater_exit()
222 struct device *dev = &pdev->dev; in eusb2_repeater_probe()
224 struct device_node *np = dev->of_node; in eusb2_repeater_probe()
230 return -ENOMEM; in eusb2_repeater_probe()
232 rptr->dev = dev; in eusb2_repeater_probe()
235 rptr->cfg = of_device_get_match_data(dev); in eusb2_repeater_probe()
236 if (!rptr->cfg) in eusb2_repeater_probe()
237 return -EINVAL; in eusb2_repeater_probe()
239 rptr->regmap = dev_get_regmap(dev->parent, NULL); in eusb2_repeater_probe()
240 if (!rptr->regmap) in eusb2_repeater_probe()
241 return -ENODEV; in eusb2_repeater_probe()
247 rptr->base = res; in eusb2_repeater_probe()
255 rptr->phy = devm_phy_create(dev, np, &eusb2_repeater_ops); in eusb2_repeater_probe()
256 if (IS_ERR(rptr->phy)) { in eusb2_repeater_probe()
258 return PTR_ERR(rptr->phy); in eusb2_repeater_probe()
261 phy_set_drvdata(rptr->phy, rptr); in eusb2_repeater_probe()
267 dev_info(dev, "Registered Qcom-eUSB2 repeater\n"); in eusb2_repeater_probe()
279 eusb2_repeater_exit(rptr->phy); in eusb2_repeater_remove()
284 .compatible = "qcom,pm8550b-eusb2-repeater",
288 .compatible = "qcom,smb2360-eusb2-repeater",
299 .name = "qcom-eusb2-repeater",