Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd798f9c authored by Alexandre Belloni's avatar Alexandre Belloni Committed by Shawn Guo
Browse files

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: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
parent f92dfb02
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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>;
	};
};