From: Quentin Schulz Date: Wed, 5 Apr 2017 09:06:31 +0000 (+0200) Subject: ARM: sun8i: a33: add thermal sensor X-Git-Tag: v4.14-rc1~952^2~21^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a424f635a7a521102f8427a3fc2e6d251f388557;p=platform%2Fkernel%2Flinux-rpi.git ARM: sun8i: a33: add thermal sensor This adds the DT node for the thermal sensor present in the Allwinner A33 GPADC. Signed-off-by: Quentin Schulz Signed-off-by: Maxime Ripard --- diff --git a/arch/arm/boot/dts/sun8i-a33.dtsi b/arch/arm/boot/dts/sun8i-a33.dtsi index 6ebd55d..0ee3e18 100644 --- a/arch/arm/boot/dts/sun8i-a33.dtsi +++ b/arch/arm/boot/dts/sun8i-a33.dtsi @@ -154,6 +154,11 @@ status = "disabled"; }; + iio-hwmon { + compatible = "iio-hwmon"; + io-channels = <&ths>; + }; + mali_opp_table: gpu-opp-table { compatible = "operating-points-v2"; @@ -266,6 +271,13 @@ status = "disabled"; }; + ths: ths@01c25000 { + compatible = "allwinner,sun8i-a33-ths"; + reg = <0x01c25000 0x100>; + #thermal-sensor-cells = <0>; + #io-channel-cells = <0>; + }; + fe0: display-frontend@01e00000 { compatible = "allwinner,sun8i-a33-display-frontend"; reg = <0x01e00000 0x20000>;