diff mbox

[1/2] ARM: dts: mxs: Add iio-hwmon to mx28 soc

Message ID 1387392656-28037-1-git-send-email-alexandre.belloni@free-electrons.com (mailing list archive)
State New, archived
Headers show

Commit Message

Alexandre Belloni Dec. 18, 2013, 6:50 p.m. UTC
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>
---
 arch/arm/boot/dts/imx28.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Shawn Guo Dec. 19, 2013, 2:44 a.m. UTC | #1
On Wed, Dec 18, 2013 at 07:50:55PM +0100, Alexandre Belloni wrote:
> 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>

Applied both, thanks.
diff mbox

Patch

diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi
index 92d9f9e33bf1..3036241c4d57 100644
--- a/arch/arm/boot/dts/imx28.dtsi
+++ b/arch/arm/boot/dts/imx28.dtsi
@@ -1130,4 +1130,9 @@ 
 			status = "disabled";
 		};
 	};
+
+	iio_hwmon {
+		compatible = "iio-hwmon";
+		io-channels = <&lradc 8>;
+	};
 };