]> git.openfabrics.org - ~emulex/infiniband.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>
Sun, 9 Feb 2014 13:33:27 +0000 (21:33 +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 2575dd8342243f045906b6cc4de76a17f75f33ed..f60ed820b40a53fc18ddc2bb57aa1407c45b0b32 100644 (file)
                        status = "disabled";
                };
        };
+
+       iio_hwmon {
+               compatible = "iio-hwmon";
+               io-channels = <&lradc 8>;
+       };
 };