summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorTao Ren <taoren@fb.com>2019-02-05 14:46:19 -0800
committerJoel Stanley <joel@jms.id.au>2019-04-05 14:03:03 +1030
commit972f0e069d11f7b217033f92f89af1309a29736b (patch)
treeb3fdc0595290fcdd7f0c69d65a3483abd66306f2 /arch/arm
parentffdbf494821dd81de0c625f3fcfbed8a0f2d9f51 (diff)
ARM: dts: aspeed: cmm: enable iio-hwmon-adc
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>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts
index 9f194b5eeba4..43aba4071a5c 100644
--- a/arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts
@@ -56,6 +56,12 @@
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 {