ARM: dts: mxs: Add iio-hwmon to mx23 soc
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 18 Dec 2013 18:50:56 +0000 (19:50 +0100)
committerShawn Guo <shawn.guo@linaro.org>
Sun, 9 Feb 2014 13:33:28 +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/imx23.dtsi

index 581b75433be68b8bf01c44a48a8d8299cac95285..9935e97fef66d6b43c278cb90fbe392ff3155064 100644 (file)
                                status = "disabled";
                        };
 
-                       lradc@80050000 {
+                       lradc: lradc@80050000 {
                                compatible = "fsl,imx23-lradc";
                                reg = <0x80050000 0x2000>;
                                interrupts = <36 37 38 39 40 41 42 43 44>;
                        status = "disabled";
                };
        };
+
+       iio_hwmon {
+               compatible = "iio-hwmon";
+               io-channels = <&lradc 8>;
+       };
 };