]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ARM: dts: aspeed: cmm: enable iio-hwmon-adc
authorTao Ren <taoren@fb.com>
Tue, 5 Feb 2019 22:46:19 +0000 (14:46 -0800)
committerJoel Stanley <joel@jms.id.au>
Fri, 5 Apr 2019 03:33:03 +0000 (14:03 +1030)
Bind aspeed ADC channels 0-7 to "iio-hwmon" driver so the data of these
voltage sensing channels can be accessed by "lm_sensors". Channels 8-15
are not used on CMM BMC.

Signed-off-by: Tao Ren <taoren@fb.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts

index 9f194b5eeba442135fc732eb8e04da973dcd2de1..43aba4071a5c2c610ebd00f219fec074cb3133f1 100644 (file)
        memory@80000000 {
                reg = <0x80000000 0x20000000>;
        };
+
+       ast-adc-hwmon {
+               compatible = "iio-hwmon";
+               io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
+                             <&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>;
+       };
 };
 
 &pinctrl {