summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/meson8b-ec100.dts
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2019-01-18 23:52:25 +0100
committerKevin Hilman <khilman@baylibre.com>2019-02-11 21:52:26 +0100
commit1a4f28ab2556deacd34b925bf419432a59670af6 (patch)
tree76b34647b4605454a369a51a87ebe9c7b3bf2df5 /arch/arm/boot/dts/meson8b-ec100.dts
parentARM: dts: meson8b: add the temperature calibration data for the SAR ADC (diff)
downloadlinux-1a4f28ab2556deacd34b925bf419432a59670af6.tar.xz
linux-1a4f28ab2556deacd34b925bf419432a59670af6.zip
ARM: dts: meson8b: ec100: add iio-hwmon for the chip temperature
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>
Diffstat (limited to 'arch/arm/boot/dts/meson8b-ec100.dts')
-rw-r--r--arch/arm/boot/dts/meson8b-ec100.dts5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/meson8b-ec100.dts b/arch/arm/boot/dts/meson8b-ec100.dts
index 0872f6e3abf5..0cebe849a920 100644
--- a/arch/arm/boot/dts/meson8b-ec100.dts
+++ b/arch/arm/boot/dts/meson8b-ec100.dts
@@ -64,6 +64,11 @@
timeout-ms = <20000>;
};
+ iio-hwmon {
+ compatible = "iio-hwmon";
+ io-channels = <&saradc 8>;
+ };
+
leds {
compatible = "gpio-leds";