All of lore.kernel.org
 help / color / mirror / Atom feed
From: Biju Das <biju.das.jz@bp.renesas.com>
To: Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: Biju Das <biju.das.jz@bp.renesas.com>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Magnus Damm <magnus.damm@gmail.com>,
	linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org,
	Chris Paterson <Chris.Paterson2@renesas.com>,
	Biju Das <biju.das@bp.renesas.com>,
	Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: [PATCH 4/6] arm64: dts: renesas: r9a07g043: Add TSU node
Date: Sun,  1 May 2022 12:29:24 +0100	[thread overview]
Message-ID: <20220501112926.47024-5-biju.das.jz@bp.renesas.com> (raw)
In-Reply-To: <20220501112926.47024-1-biju.das.jz@bp.renesas.com>

Add TSU node to RZ/G2UL SoC DTSI.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
---
 arch/arm64/boot/dts/renesas/r9a07g043.dtsi | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r9a07g043.dtsi b/arch/arm64/boot/dts/renesas/r9a07g043.dtsi
index 49f549587bdf..c0a57055af49 100644
--- a/arch/arm64/boot/dts/renesas/r9a07g043.dtsi
+++ b/arch/arm64/boot/dts/renesas/r9a07g043.dtsi
@@ -486,6 +486,16 @@ adc: adc@10059000 {
 			/* place holder */
 		};
 
+		tsu: thermal@10059400 {
+			compatible = "renesas,r9a07g043-tsu",
+				     "renesas,rzg2l-tsu";
+			reg = <0 0x10059400 0 0x400>;
+			clocks = <&cpg CPG_MOD R9A07G043_TSU_PCLK>;
+			resets = <&cpg R9A07G043_TSU_PRESETN>;
+			power-domains = <&cpg>;
+			#thermal-sensor-cells = <1>;
+		};
+
 		sbc: spi@10060000 {
 			compatible = "renesas,r9a07g043-rpc-if",
 				     "renesas,rzg2l-rpc-if";
@@ -834,6 +844,22 @@ ostm2: timer@12801800 {
 		};
 	};
 
+	thermal-zones {
+		cpu-thermal {
+			polling-delay-passive = <250>;
+			polling-delay = <1000>;
+			thermal-sensors = <&tsu 0>;
+
+			trips {
+				sensor_crit: sensor-crit {
+					temperature = <125000>;
+					hysteresis = <1000>;
+					type = "critical";
+				};
+			};
+		};
+	};
+
 	timer {
 		compatible = "arm,armv8-timer";
 		interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
-- 
2.25.1


  parent reply	other threads:[~2022-05-01 11:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-01 11:29 [PATCH 0/6] Add OPP, TSU, RSPI and SPI Multi I/O Bus controller node Biju Das
2022-05-01 11:29 ` [PATCH 1/6] arm64: dts: renesas: r9a07g043: Add " Biju Das
2022-05-02 16:00   ` Geert Uytterhoeven
2022-05-02 16:18     ` Biju Das
2022-05-02 16:53       ` Geert Uytterhoeven
2022-05-01 11:29 ` [PATCH 2/6] arm64: dts: renesas: r9a07g043: Add RSPI{0,1,2} nodes Biju Das
2022-05-02 16:09   ` Geert Uytterhoeven
2022-05-01 11:29 ` [PATCH 3/6] arm64: dts: renesas: r9a07g043: Add OPP table Biju Das
2022-05-02 16:57   ` Geert Uytterhoeven
2022-05-01 11:29 ` Biju Das [this message]
2022-05-02 16:10   ` [PATCH 4/6] arm64: dts: renesas: r9a07g043: Add TSU node Geert Uytterhoeven
2022-05-01 11:29 ` [PATCH 5/6] arm64: dts: renesas: r9a07g043: Create thermal zone to support IPA Biju Das
2022-05-02 16:14   ` Geert Uytterhoeven
2022-05-01 11:29 ` [PATCH 6/6] arm64: dts: renesas: r9a07g043: Add ADC node Biju Das

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220501112926.47024-5-biju.das.jz@bp.renesas.com \
    --to=biju.das.jz@bp.renesas.com \
    --cc=Chris.Paterson2@renesas.com \
    --cc=biju.das@bp.renesas.com \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.