]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: meson8b: ec100: add iio-hwmon for the chip temperature
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Fri, 18 Jan 2019 22:52:25 +0000 (23:52 +0100)
committerKevin Hilman <khilman@baylibre.com>
Mon, 11 Feb 2019 20:52:26 +0000 (12:52 -0800)
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>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm/boot/dts/meson8b-ec100.dts

index 0872f6e3abf56f02c1f4d3f7423a3a6d17bda1a4..0cebe849a920bef0151289d9373cd172d2bab4e9 100644 (file)
@@ -64,6 +64,11 @@ gpio-poweroff {
                timeout-ms = <20000>;
        };
 
+       iio-hwmon {
+               compatible = "iio-hwmon";
+               io-channels = <&saradc 8>;
+       };
+
        leds {
                compatible = "gpio-leds";