ARM: dts: aspeed: wedge100: Enable ADC channels
authorTao Ren <rentao.bupt@gmail.com>
Mon, 19 Jul 2021 00:17:24 +0000 (17:17 -0700)
committerJoel Stanley <joel@jms.id.au>
Mon, 19 Jul 2021 00:23:50 +0000 (09:53 +0930)
Enable the ADC voltage sensoring channels used by Wedge100.

Signed-off-by: Tao Ren <rentao.bupt@gmail.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20210719001724.6410-5-rentao.bupt@gmail.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-facebook-wedge100.dts

index 39c6be9..584efa5 100644 (file)
                stdout-path = &uart3;
                bootargs = "console=ttyS2,9600n8 root=/dev/ram rw";
        };
+
+       ast-adc-hwmon {
+               compatible = "iio-hwmon";
+               io-channels = <&adc 5>, <&adc 6>, <&adc 7>, <&adc 8>, <&adc 9>;
+       };
 };
 
 &wdt2 {