summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/meson8b-odroidc1.dts
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2019-01-19 01:52:26 +0300
committerKevin Hilman <khilman@baylibre.com>2019-02-11 23:52:26 +0300
commita6c94928261a307002c4f8f3c0875c4a655a3a50 (patch)
treebab51528b82fa24bb4ca3080c8dd2809c70b64f0 /arch/arm/boot/dts/meson8b-odroidc1.dts
parent1a4f28ab2556deacd34b925bf419432a59670af6 (diff)
downloadlinux-a6c94928261a307002c4f8f3c0875c4a655a3a50.tar.xz
ARM: dts: meson8b: odroidc1: 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-odroidc1.dts')
-rw-r--r--arch/arm/boot/dts/meson8b-odroidc1.dts5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts
index 58669abda259..9251dc102fcc 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