]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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>
Thu, 19 Dec 2013 02:43:10 +0000 (10:43 +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 c96ceaef7ddf565b448f5b3ba707ff80824d3cf2..cd5e662d72f1d6c5e783f0d296abb6b9c1b4c96e 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>;
+       };
 };