diff mbox series

[v2] arm64: dts: renesas: r8a77970: add thermal support

Message ID 575ebd1f-165a-756f-f76a-14a11bba7f19@cogentembedded.com (mailing list archive)
State Accepted
Commit f1487c19781a07144d8be88cca3c1c85a62f00da
Headers show
Series [v2] arm64: dts: renesas: r8a77970: add thermal support | expand

Commit Message

Sergei Shtylyov Oct. 9, 2018, 7:47 p.m. UTC
Describe THS/CIVM in the R8A77970 device tree.

Based on the original (and large) patches by Vladimir Barinov.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
This patch is against the 'renesas-devel-20181004-v4.19-rc6' tag of Simon
Horman's 'renesas.git' repo.

Changed in version 2:
- fix the "reg" prop in the thermal device node;
- fixed wrong plural in the patch description.

 arch/arm64/boot/dts/renesas/r8a77970.dtsi |   32 ++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Comments

Geert Uytterhoeven Oct. 10, 2018, 7:12 a.m. UTC | #1
On Tue, Oct 9, 2018 at 9:50 PM Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> Describe THS/CIVM in the R8A77970 device tree.
>
> Based on the original (and large) patches by Vladimir Barinov.
>
> Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>
> ---
> This patch is against the 'renesas-devel-20181004-v4.19-rc6' tag of Simon
> Horman's 'renesas.git' repo.
>
> Changed in version 2:
> - fix the "reg" prop in the thermal device node;
> - fixed wrong plural in the patch description.

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert
Simon Horman Oct. 12, 2018, 11:21 a.m. UTC | #2
On Wed, Oct 10, 2018 at 09:12:54AM +0200, Geert Uytterhoeven wrote:
> On Tue, Oct 9, 2018 at 9:50 PM Sergei Shtylyov
> <sergei.shtylyov@cogentembedded.com> wrote:
> > Describe THS/CIVM in the R8A77970 device tree.
> >
> > Based on the original (and large) patches by Vladimir Barinov.
> >
> > Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
> > Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> >
> > ---
> > This patch is against the 'renesas-devel-20181004-v4.19-rc6' tag of Simon
> > Horman's 'renesas.git' repo.
> >
> > Changed in version 2:
> > - fix the "reg" prop in the thermal device node;
> > - fixed wrong plural in the patch description.
> 
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Thanks, applied for v4.21.
Sergei Shtylyov Oct. 12, 2018, 2:36 p.m. UTC | #3
On 10/12/2018 02:21 PM, Simon Horman wrote:

>>> Describe THS/CIVM in the R8A77970 device tree.
>>>
>>> Based on the original (and large) patches by Vladimir Barinov.
>>>
>>> Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
>>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>>>
>>> ---
>>> This patch is against the 'renesas-devel-20181004-v4.19-rc6' tag of Simon
>>> Horman's 'renesas.git' repo.
>>>
>>> Changed in version 2:
>>> - fix the "reg" prop in the thermal device node;
>>> - fixed wrong plural in the patch description.
>>
>> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> 
> Thanks, applied for v4.21.

   Not seeing any updates -- forgot to push?

MBR, Sergei
Simon Horman Oct. 15, 2018, 3:43 p.m. UTC | #4
On Fri, Oct 12, 2018 at 05:36:55PM +0300, Sergei Shtylyov wrote:
> On 10/12/2018 02:21 PM, Simon Horman wrote:
> 
> >>> Describe THS/CIVM in the R8A77970 device tree.
> >>>
> >>> Based on the original (and large) patches by Vladimir Barinov.
> >>>
> >>> Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
> >>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> >>>
> >>> ---
> >>> This patch is against the 'renesas-devel-20181004-v4.19-rc6' tag of Simon
> >>> Horman's 'renesas.git' repo.
> >>>
> >>> Changed in version 2:
> >>> - fix the "reg" prop in the thermal device node;
> >>> - fixed wrong plural in the patch description.
> >>
> >> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > 
> > Thanks, applied for v4.21.
> 
>    Not seeing any updates -- forgot to push?

Yes, sorry. I noticed that this morning and pushed
renesas-devel-20181012-v4.19-rc7.
diff mbox series

Patch

Index: renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================
--- renesas.orig/arch/arm64/boot/dts/renesas/r8a77970.dtsi
+++ renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
@@ -300,6 +300,19 @@ 
 			#power-domain-cells = <1>;
 		};
 
+		thermal: thermal@e6190000 {
+			compatible = "renesas,thermal-r8a77970";
+			reg =  <0 0xe6190000 0 0x10
+				0 0xe6190100 0 0x120>;
+			interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 522>;
+			power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
+			resets = <&cpg 522>;
+			#thermal-sensor-cells = <0>;
+		};
+
 		intc_ex: interrupt-controller@e61c0000 {
 			compatible = "renesas,intc-ex-r8a77970", "renesas,irqc";
 			#interrupt-cells = <2>;
@@ -1033,6 +1046,25 @@ 
 		};
 	};
 
+	thermal-zones {
+		cpu-thermal {
+			polling-delay-passive = <250>;
+			polling-delay = <1000>;
+			thermal-sensors = <&thermal>;
+
+			trips {
+				cpu-crit {
+					temperature = <120000>;
+					hysteresis = <2000>;
+					type = "critical";
+				};
+			};
+
+			cooling-maps {
+			};
+		};
+	};
+
 	timer {
 		compatible = "arm,armv8-timer";
 		interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,