Skip to contentSkip to conversation

ARM: dts: aspeed: cmm: enable iio-hwmon-adc

PATCH New Tao Ren 1 participant 1 message Feb 5, 2019

Subsystems (2)
lore
Share & tools
lore

Tao Ren

author
#0 lore raw

PATCH 1/1 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.

---
 arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts +6 -0
index 9f194b5eeba4..43aba4071a5c 100644
@@ -56,6 +56,12 @@
 	memory at 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 {
Signature · 1 line
2.17.1