Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: adc: ad7606: add enabling of optional Vrefin voltage

Add optional refin voltage enabling. The property "refin-supply" is
already available and optional in the current fdt dt_schema.

Note that the driver does not need to take any actions if the supply
is not present because a pin strap is used to change the behavior
of the device if an external reference is connected.

Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>
Link: https://patch.msgid.link/20250530-wip-bl-ad7606-reference-voltages-v2-2-d5e1ad7e6f14@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Angelo Dureghello and committed by
Jonathan Cameron
3125a5ca 82f4ed3a

+5
+5
drivers/iio/adc/ad7606.c
··· 1335 1335 return dev_err_probe(dev, ret, 1336 1336 "Failed to enable Vdrive supply\n"); 1337 1337 1338 + ret = devm_regulator_get_enable_optional(dev, "refin"); 1339 + if (ret && ret != -ENODEV) 1340 + return dev_err_probe(dev, ret, 1341 + "Failed to enable REFIN supply\n"); 1342 + 1338 1343 st->chip_info = chip_info; 1339 1344 1340 1345 if (st->chip_info->oversampling_num) {