diff mbox series

[v2,6/7] ARM: dts: meson8b: odroidc1: add iio-hwmon for the chip temperature

Message ID 20190118225227.6516-7-martin.blumenstingl@googlemail.com (mailing list archive)
State Mainlined
Commit a6c94928261a307002c4f8f3c0875c4a655a3a50
Headers show
Series ARM: dts: meson: chip temperature (hwmon) support | expand

Commit Message

Martin Blumenstingl Jan. 18, 2019, 10:52 p.m. UTC
SAR ADC enabled channel 8 can be used to measure the chip temperature.
This can be made available to the hwmon subsystem by using iio-hwmon.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 arch/arm/boot/dts/meson8b-odroidc1.dts | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts
index 0f0a46ddf3ff..8c83590810a8 100644
--- a/arch/arm/boot/dts/meson8b-odroidc1.dts
+++ b/arch/arm/boot/dts/meson8b-odroidc1.dts
@@ -118,6 +118,11 @@ 
 			  1800000 1>;
 	};
 
+	iio-hwmon {
+		compatible = "iio-hwmon";
+		io-channels = <&saradc 8>;
+	};
+
 	vcc_1v8: regulator-vcc-1v8 {
 		/*
 		 * RICHTEK RT9179 configured for a fixed output voltage of