]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: mxs: Add iio-hwmon to mx28 soc
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 18 Dec 2013 18:50:55 +0000 (19:50 +0100)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 31 Dec 2013 03:09:27 +0000 (11:09 +0800)
This allows to read the SoC on-die temperature sensor available on the LRADC by
using:
 cat /sys/class/hwmon/hwmon0/device/temp1_input

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx28.dtsi

index 8a2a70d24d148ad6eade597920fc91983cee5120..40176f44b513d0ce612cfcdb7b08315e39eb537c 100644 (file)
                        status = "disabled";
                };
        };
+
+       iio_hwmon {
+               compatible = "iio-hwmon";
+               io-channels = <&lradc 8>;
+       };
 };