diff mbox series

[v4,5/8] ARM: sun8i: a33: add thermal sensor

Message ID 20170405090634.4649-6-quentin.schulz@free-electrons.com
State New
Headers show
Series add thermal throttling to Allwinner A33 SoC | expand

Commit Message

Quentin Schulz April 5, 2017, 9:06 a.m. UTC
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>

---

v3:
  - switched compatible to allwinner,sun8i-a33-ths,
  - renamed DT node name and label to ths to better match datasheet's name,

 arch/arm/boot/dts/sun8i-a33.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

-- 
2.9.3

Comments

Maxime Ripard April 5, 2017, 12:12 p.m. UTC | #1
Hi,

On Wed, Apr 05, 2017 at 11:06:31AM +0200, Quentin Schulz wrote:
> 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>

> ---

> 

> v3:

>   - switched compatible to allwinner,sun8i-a33-ths,

>   - renamed DT node name and label to ths to better match datasheet's name,

> 

>  arch/arm/boot/dts/sun8i-a33.dtsi | 12 ++++++++++++

>  1 file changed, 12 insertions(+)

> 

> diff --git a/arch/arm/boot/dts/sun8i-a33.dtsi b/arch/arm/boot/dts/sun8i-a33.dtsi

> index 077db22..9734e63 100644

> --- a/arch/arm/boot/dts/sun8i-a33.dtsi

> +++ b/arch/arm/boot/dts/sun8i-a33.dtsi

> @@ -266,6 +266,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>;

> @@ -376,6 +383,11 @@

>  			};

>  		};

>  	};

> +

> +	iio-hwmon {

> +		compatible = "iio-hwmon";

> +		io-channels = <&ths>;

> +	};


This wasn't sorted properly (iio is before soc in the alphabetical order).
Fixed it and applied, thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/sun8i-a33.dtsi b/arch/arm/boot/dts/sun8i-a33.dtsi
index 077db22..9734e63 100644
--- a/arch/arm/boot/dts/sun8i-a33.dtsi
+++ b/arch/arm/boot/dts/sun8i-a33.dtsi
@@ -266,6 +266,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>;
@@ -376,6 +383,11 @@ 
 			};
 		};
 	};
+
+	iio-hwmon {
+		compatible = "iio-hwmon";
+		io-channels = <&ths>;
+	};
 };
 
 &ccu {