diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2013-12-18 19:50:56 +0100 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2014-02-09 21:33:28 +0800 |
commit | bd798f9c7b30bb7d9d9163fa9090c95d1b8e5fa4 (patch) | |
tree | 9d3a8270ba3b913ae2613b5f855bfdb0922dd8cf /arch/arm/boot/dts/imx23.dtsi | |
parent | f92dfb02961ed196571870599ebe46aa80b86f44 (diff) | |
download | blackbird-op-linux-bd798f9c7b30bb7d9d9163fa9090c95d1b8e5fa4.tar.gz blackbird-op-linux-bd798f9c7b30bb7d9d9163fa9090c95d1b8e5fa4.zip |
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 <alexandre.belloni@free-electrons.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/imx23.dtsi')
-rw-r--r-- | arch/arm/boot/dts/imx23.dtsi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/imx23.dtsi b/arch/arm/boot/dts/imx23.dtsi index 581b75433be6..9935e97fef66 100644 --- a/arch/arm/boot/dts/imx23.dtsi +++ b/arch/arm/boot/dts/imx23.dtsi @@ -428,7 +428,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>; @@ -526,4 +526,9 @@ status = "disabled"; }; }; + + iio_hwmon { + compatible = "iio-hwmon"; + io-channels = <&lradc 8>; + }; }; |