Lines Matching +full:vdd +full:- +full:buck +full:- +full:supply

1 // SPDX-License-Identifier: GPL-2.0
22 .name = "wcd934x-codec",
24 .name = "wcd934x-gpio",
25 .of_compatible = "qcom,wcd9340-gpio",
27 .name = "wcd934x-soundwire",
28 .of_compatible = "qcom,soundwire-v1.3.0",
123 struct regmap *regmap = ddata->regmap; in wcd934x_bring_up()
137 dev_info(ddata->dev, "WCD934x chip id major 0x%x, minor 0x%x\n", in wcd934x_bring_up()
156 struct device *dev = &sdev->dev; in wcd934x_slim_status_up()
162 ddata->regmap = regmap_init_slimbus(sdev, &wcd934x_regmap_config); in wcd934x_slim_status_up()
163 if (IS_ERR(ddata->regmap)) { in wcd934x_slim_status_up()
165 return PTR_ERR(ddata->regmap); in wcd934x_slim_status_up()
174 ret = devm_regmap_add_irq_chip(dev, ddata->regmap, ddata->irq, in wcd934x_slim_status_up()
177 &ddata->irq_data); in wcd934x_slim_status_up()
201 mfd_remove_devices(&sdev->dev); in wcd934x_slim_status()
204 return -EINVAL; in wcd934x_slim_status()
212 struct device *dev = &sdev->dev; in wcd934x_slim_probe()
213 struct device_node *np = dev->of_node; in wcd934x_slim_probe()
219 return -ENOMEM; in wcd934x_slim_probe()
221 ddata->irq = of_irq_get(np, 0); in wcd934x_slim_probe()
222 if (ddata->irq < 0) in wcd934x_slim_probe()
223 return dev_err_probe(ddata->dev, ddata->irq, in wcd934x_slim_probe()
226 reset_gpio = of_get_named_gpio(np, "reset-gpios", 0); in wcd934x_slim_probe()
233 ddata->extclk = devm_clk_get(dev, "extclk"); in wcd934x_slim_probe()
234 if (IS_ERR(ddata->extclk)) { in wcd934x_slim_probe()
236 return PTR_ERR(ddata->extclk); in wcd934x_slim_probe()
239 ddata->supplies[0].supply = "vdd-buck"; in wcd934x_slim_probe()
240 ddata->supplies[1].supply = "vdd-buck-sido"; in wcd934x_slim_probe()
241 ddata->supplies[2].supply = "vdd-tx"; in wcd934x_slim_probe()
242 ddata->supplies[3].supply = "vdd-rx"; in wcd934x_slim_probe()
243 ddata->supplies[4].supply = "vdd-io"; in wcd934x_slim_probe()
245 ret = regulator_bulk_get(dev, WCD934X_MAX_SUPPLY, ddata->supplies); in wcd934x_slim_probe()
251 ret = regulator_bulk_enable(WCD934X_MAX_SUPPLY, ddata->supplies); in wcd934x_slim_probe()
268 ddata->dev = dev; in wcd934x_slim_probe()
276 struct wcd934x_ddata *ddata = dev_get_drvdata(&sdev->dev); in wcd934x_slim_remove()
278 regulator_bulk_disable(WCD934X_MAX_SUPPLY, ddata->supplies); in wcd934x_slim_remove()
279 mfd_remove_devices(&sdev->dev); in wcd934x_slim_remove()
290 .name = "wcd934x-slim",