Skip to content

Commit

Permalink
ARM: dts: mxs: Add iio-hwmon to mx23 soc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
alexandrebelloni authored and shawnguo2 committed Feb 9, 2014
1 parent f92dfb0 commit bd798f9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arch/arm/boot/dts/imx23.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down Expand Up @@ -526,4 +526,9 @@
status = "disabled";
};
};

iio_hwmon {
compatible = "iio-hwmon";
io-channels = <&lradc 8>;
};
};

0 comments on commit bd798f9

Please sign in to comment.