From 82f4ed3a01b25ee6fc2a8a0a57b3509163c8bc57 Mon Sep 17 00:00:00 2001 From: Angelo Dureghello Date: Fri, 30 May 2025 16:27:56 +0200 Subject: [PATCH] iio: adc: ad7606: enable Vdrive power supply Enable Vdrive power supply. The "vdrive-supply" property is mandatory, already declared in fdt dt_schema. Signed-off-by: Angelo Dureghello Link: https://patch.msgid.link/20250530-wip-bl-ad7606-reference-voltages-v2-1-d5e1ad7e6f14@baylibre.com Signed-off-by: Jonathan Cameron --- drivers/iio/adc/ad7606.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/iio/adc/ad7606.c b/drivers/iio/adc/ad7606.c index 185243dee86ed..3bbe9c05b5edb 100644 --- a/drivers/iio/adc/ad7606.c +++ b/drivers/iio/adc/ad7606.c @@ -1330,6 +1330,11 @@ int ad7606_probe(struct device *dev, int irq, void __iomem *base_address, return dev_err_probe(dev, ret, "Failed to enable specified AVcc supply\n"); + ret = devm_regulator_get_enable(dev, "vdrive"); + if (ret) + return dev_err_probe(dev, ret, + "Failed to enable Vdrive supply\n"); + st->chip_info = chip_info; if (st->chip_info->oversampling_num) { -- 2.47.3