ARM: dts: aspeed: mtjade: Move all adc sensors into iio-hwmon node
authorQuan Nguyen <quan@os.amperecomputing.com>
Mon, 28 Feb 2022 00:02:42 +0000 (07:02 +0700)
committerJoel Stanley <joel@jms.id.au>
Mon, 28 Feb 2022 04:28:05 +0000 (14:58 +1030)
Move adc14 and adc15 (battery sensor) into single iio-hwmon node to
correct label to be read by single application for all adc sensors.

Signed-off-by: Quan Nguyen <quan@os.amperecomputing.com>
Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20220228000242.1884-6-quan@os.amperecomputing.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-ampere-mtjade.dts

index 60b0e65..1b2e7ad 100644 (file)
                        <&adc10mux 0>, <&adc10mux 1>,
                        <&adc11mux 0>, <&adc11mux 1>,
                        <&adc12mux 0>, <&adc12mux 1>,
-                       <&adc13mux 0>, <&adc13mux 1>;
-       };
-
-       iio-hwmon-adc14 {
-               compatible = "iio-hwmon";
-               io-channels = <&adc 14>;
-       };
-
-       iio-hwmon-battery {
-               compatible = "iio-hwmon";
-               io-channels = <&adc 15>;
+                       <&adc13mux 0>, <&adc13mux 1>,
+                       <&adc 14>, <&adc 15>;
        };
 };