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

1 // SPDX-License-Identifier: GPL-2.0
36 .name = "wcd934x-codec",
38 .name = "wcd934x-gpio",
39 .of_compatible = "qcom,wcd9340-gpio",
41 .name = "wcd934x-soundwire",
42 .of_compatible = "qcom,soundwire-v1.3.0",
120 struct regmap *regmap = ddata->regmap; in wcd934x_bring_up()
134 dev_info(ddata->dev, "WCD934x chip id major 0x%x, minor 0x%x\n", in wcd934x_bring_up()
153 struct device *dev = &sdev->dev; in wcd934x_slim_status_up()
159 ddata->regmap = regmap_init_slimbus(sdev, &wcd934x_regmap_config); in wcd934x_slim_status_up()
160 if (IS_ERR(ddata->regmap)) { in wcd934x_slim_status_up()
162 return PTR_ERR(ddata->regmap); in wcd934x_slim_status_up()
171 ret = devm_regmap_add_irq_chip(dev, ddata->regmap, ddata->irq, in wcd934x_slim_status_up()
174 &ddata->irq_data); in wcd934x_slim_status_up()
198 mfd_remove_devices(&sdev->dev); in wcd934x_slim_status()
201 return -EINVAL; in wcd934x_slim_status()
209 struct device *dev = &sdev->dev; in wcd934x_slim_probe()
210 struct device_node *np = dev->of_node; in wcd934x_slim_probe()
217 return -ENOMEM; in wcd934x_slim_probe()
219 ddata->irq = of_irq_get(np, 0); in wcd934x_slim_probe()
220 if (ddata->irq < 0) in wcd934x_slim_probe()
221 return dev_err_probe(ddata->dev, ddata->irq, in wcd934x_slim_probe()
224 ddata->extclk = devm_clk_get(dev, "extclk"); in wcd934x_slim_probe()
225 if (IS_ERR(ddata->extclk)) { in wcd934x_slim_probe()
227 return PTR_ERR(ddata->extclk); in wcd934x_slim_probe()
230 ddata->supplies[0].supply = "vdd-buck"; in wcd934x_slim_probe()
231 ddata->supplies[1].supply = "vdd-buck-sido"; in wcd934x_slim_probe()
232 ddata->supplies[2].supply = "vdd-tx"; in wcd934x_slim_probe()
233 ddata->supplies[3].supply = "vdd-rx"; in wcd934x_slim_probe()
234 ddata->supplies[4].supply = "vdd-io"; in wcd934x_slim_probe()
236 ret = regulator_bulk_get(dev, WCD934X_MAX_SUPPLY, ddata->supplies); in wcd934x_slim_probe()
242 ret = regulator_bulk_enable(WCD934X_MAX_SUPPLY, ddata->supplies); in wcd934x_slim_probe()
263 ddata->dev = dev; in wcd934x_slim_probe()
271 struct wcd934x_ddata *ddata = dev_get_drvdata(&sdev->dev); in wcd934x_slim_remove()
273 regulator_bulk_disable(WCD934X_MAX_SUPPLY, ddata->supplies); in wcd934x_slim_remove()
274 mfd_remove_devices(&sdev->dev); in wcd934x_slim_remove()
285 .name = "wcd934x-slim",