]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: sun8i: a33: add thermal sensor
authorQuentin Schulz <quentin.schulz@free-electrons.com>
Wed, 5 Apr 2017 09:06:31 +0000 (11:06 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 5 Apr 2017 12:06:54 +0000 (14:06 +0200)
This adds the DT node for the thermal sensor present in the Allwinner
A33 GPADC.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-a33.dtsi

index 6ebd55d345b323553955114d01e9cffece8d352d..0ee3e18659cf34febe46e1bdacabb6373252bed3 100644 (file)
                status = "disabled";
        };
 
+       iio-hwmon {
+               compatible = "iio-hwmon";
+               io-channels = <&ths>;
+       };
+
        mali_opp_table: gpu-opp-table {
                compatible = "operating-points-v2";
 
                        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>;