From: Alexandre Belloni Date: Wed, 18 Dec 2013 18:50:56 +0000 (+0100) Subject: ARM: dts: mxs: Add iio-hwmon to mx23 soc X-Git-Tag: next-20140106~108^2~26 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fc31a8c84752646fa9ff4153cb68df0b34d17849;p=karo-tx-linux.git ARM: dts: mxs: Add iio-hwmon to mx23 soc 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 Signed-off-by: Shawn Guo --- diff --git a/arch/arm/boot/dts/imx23.dtsi b/arch/arm/boot/dts/imx23.dtsi index c96ceaef7ddf..cd5e662d72f1 100644 --- a/arch/arm/boot/dts/imx23.dtsi +++ b/arch/arm/boot/dts/imx23.dtsi @@ -426,7 +426,7 @@ status = "disabled"; }; - lradc@80050000 { + lradc: lradc@80050000 { compatible = "fsl,imx23-lradc"; reg = <0x80050000 0x2000>; interrupts = <36 37 38 39 40 41 42 43 44>; @@ -524,4 +524,9 @@ status = "disabled"; }; }; + + iio_hwmon { + compatible = "iio-hwmon"; + io-channels = <&lradc 8>; + }; };