]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ARM: dts: imx7-mba7: add iio-hwmon support
authorMarkus Niebel <Markus.Niebel@ew.tq-group.com>
Mon, 12 Aug 2024 14:14:13 +0000 (16:14 +0200)
committerShawn Guo <shawnguo@kernel.org>
Wed, 28 Aug 2024 03:20:42 +0000 (11:20 +0800)
Enable IIO hwmon support for ADC1 and ADC2. All channels are
available on X23 (ADC2) and X24 (ADC1) of MBa7x.

Signed-off-by: Markus Niebel <Markus.Niebel@ew.tq-group.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi

index 52869e68f833c4d8f7cefdcefeadba9b8b78f87a..775bd3066b87937c42c8439b4b6ae5b50c1edde3 100644 (file)
                };
        };
 
+       iio-hwmon {
+               compatible = "iio-hwmon";
+               io-channels = <&adc1 0>, <&adc1 1>, <&adc1 2>, <&adc1 3>,
+                             <&adc2 0>, <&adc2 1>, <&adc2 2>, <&adc2 3>;
+       };
+
        reg_sd1_vmmc: regulator-sd1-vmmc {
                compatible = "regulator-fixed";
                regulator-name = "VCC3V3_SD1";