From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
To: Geert Uytterhoeven <geert+renesas@glider.be>,
Wolfram Sang <wsa+renesas@sang-engineering.com>,
Rob Herring <robh+dt@kernel.org>,
Wolfgang Grandegger <wg@grandegger.com>,
Marc Kleine-Budde <mkl@pengutronix.de>,
"David S. Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Mark Brown <broonie@kernel.org>,
Niklas <niklas.soderlund@ragnatech.se>,
Zhang Rui <rui.zhang@intel.com>,
Wim Van Sebroeck <wim@linux-watchdog.org>,
Guenter Roeck <linux@roeck-us.net>,
Magnus Damm <magnus.damm@gmail.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>,
Amit Kucheria <amit.kucheria@verdurent.com>,
Thomas Gleixner <tglx@linutronix.de>,
Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org, linux-can@vger.kernel.org,
netdev@vger.kernel.org, linux-spi@vger.kernel.org,
linux-renesas-soc@vger.kernel.org, linux-pm@vger.kernel.org,
linux-watchdog@vger.kernel.org,
Prabhakar <prabhakar.csengg@gmail.com>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: [PATCH 04/20] arm64: dts: renesas: r8a774e1: Add RZ/G2H thermal support
Date: Wed, 15 Jul 2020 12:08:54 +0100 [thread overview]
Message-ID: <1594811350-14066-5-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> (raw)
In-Reply-To: <1594811350-14066-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com>
From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
Add thermal support for R8A774E1 (RZ/G2H) SoC.
Based on the work done for r8a774a1 SoC.
Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
arch/arm64/boot/dts/renesas/r8a774e1.dtsi | 81 +++++++++++++++++++++++
1 file changed, 81 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
index 588de69734ef..885b2b03fffc 100644
--- a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
@@ -442,6 +442,20 @@
#power-domain-cells = <1>;
};
+ tsc: thermal@e6198000 {
+ compatible = "renesas,r8a774e1-thermal";
+ reg = <0 0xe6198000 0 0x100>,
+ <0 0xe61a0000 0 0x100>,
+ <0 0xe61a8000 0 0x100>;
+ 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 R8A774E1_PD_ALWAYS_ON>;
+ resets = <&cpg 522>;
+ #thermal-sensor-cells = <1>;
+ };
+
intc_ex: interrupt-controller@e61c0000 {
compatible = "renesas,intc-ex-r8a774b1", "renesas,irqc";
#interrupt-cells = <2>;
@@ -1003,6 +1017,73 @@
};
};
+ thermal-zones {
+ sensor_thermal1: sensor-thermal1 {
+ polling-delay-passive = <250>;
+ polling-delay = <1000>;
+ thermal-sensors = <&tsc 0>;
+ sustainable-power = <6313>;
+
+ trips {
+ sensor1_crit: sensor1-crit {
+ temperature = <120000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ sensor_thermal2: sensor-thermal2 {
+ polling-delay-passive = <250>;
+ polling-delay = <1000>;
+ thermal-sensors = <&tsc 1>;
+ sustainable-power = <6313>;
+
+ trips {
+ sensor2_crit: sensor2-crit {
+ temperature = <120000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ sensor_thermal3: sensor-thermal3 {
+ polling-delay-passive = <250>;
+ polling-delay = <1000>;
+ thermal-sensors = <&tsc 2>;
+ sustainable-power = <6313>;
+
+ trips {
+ target: trip-point1 {
+ temperature = <100000>;
+ hysteresis = <1000>;
+ type = "passive";
+ };
+
+ sensor3_crit: sensor3-crit {
+ temperature = <120000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+
+ cooling-maps {
+ map0 {
+ trip = <&target>;
+ cooling-device = <&a57_0 0 2>;
+ contribution = <1024>;
+ };
+
+ map1 {
+ trip = <&target>;
+ cooling-device = <&a53_0 0 2>;
+ contribution = <1024>;
+ };
+ };
+ };
+ };
+
timer {
compatible = "arm,armv8-timer";
interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
--
2.17.1
next prev parent reply other threads:[~2020-07-15 11:09 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-15 11:08 [PATCH 00/20] Add support for [H]SCIF/TMU/CMT/THS/SDHI/MSIOF/CAN[FD]/I2C/IIC/RWDT on R8A774E1 Lad Prabhakar
2020-07-15 11:08 ` [PATCH 01/20] arm64: dts: renesas: r8a774e1: Add operating points Lad Prabhakar
2020-07-16 15:38 ` Geert Uytterhoeven
2020-07-15 11:08 ` [PATCH 02/20] dt-bindings: thermal: rcar-gen3-thermal: Add r8a774e1 support Lad Prabhakar
2020-07-16 14:16 ` Geert Uytterhoeven
2020-07-17 13:22 ` Niklas
2020-07-21 2:42 ` Rob Herring
2020-08-27 16:52 ` Lad, Prabhakar
2020-09-19 11:05 ` Lad, Prabhakar
2020-09-19 11:25 ` Daniel Lezcano
2020-07-15 11:08 ` [PATCH 03/20] thermal: rcar_gen3_thermal: " Lad Prabhakar
2020-07-16 14:37 ` Geert Uytterhoeven
2020-07-17 4:44 ` Daniel Lezcano
2020-07-17 13:23 ` Niklas
2020-07-15 11:08 ` Lad Prabhakar [this message]
2020-07-16 15:38 ` [PATCH 04/20] arm64: dts: renesas: r8a774e1: Add RZ/G2H thermal support Geert Uytterhoeven
2020-07-15 11:08 ` [PATCH 05/20] dt-bindings: timer: renesas,cmt: Document r8a774e1 CMT support Lad Prabhakar
2020-07-16 14:17 ` Geert Uytterhoeven
2020-07-21 2:42 ` Rob Herring
2020-08-27 17:00 ` Lad, Prabhakar
2020-09-19 11:00 ` Lad, Prabhakar
2020-09-19 11:13 ` Daniel Lezcano
2020-07-15 11:08 ` [PATCH 06/20] arm64: dts: renesas: r8a774e1: Add CMT device nodes Lad Prabhakar
2020-07-16 15:38 ` Geert Uytterhoeven
2020-07-15 11:08 ` [PATCH 07/20] dt-bindings: timer: renesas,tmu: Document r8a774e1 bindings Lad Prabhakar
2020-07-16 14:24 ` Geert Uytterhoeven
2020-07-15 11:08 ` [PATCH 08/20] arm64: dts: renesas: r8a774e1: Add TMU device nodes Lad Prabhakar
2020-07-16 15:38 ` Geert Uytterhoeven
2020-07-15 11:08 ` [PATCH 09/20] arm64: dts: renesas: r8a774e1: Add SCIF and HSCIF nodes Lad Prabhakar
2020-07-16 15:38 ` Geert Uytterhoeven
2020-07-15 11:09 ` [PATCH 10/20] arm64: dts: renesas: r8a774e1: Add SDHI nodes Lad Prabhakar
2020-07-16 15:39 ` Geert Uytterhoeven
2020-07-15 11:09 ` [PATCH 11/20] dt-bindings: i2c: renesas,i2c: Document r8a774e1 support Lad Prabhakar
2020-07-16 14:25 ` Geert Uytterhoeven
2020-07-21 2:44 ` Rob Herring
2020-07-26 12:35 ` Wolfram Sang
2020-07-15 11:09 ` [PATCH 12/20] dt-bindings: i2c: renesas,iic: " Lad Prabhakar
2020-07-16 14:28 ` Geert Uytterhoeven
2020-07-21 2:44 ` Rob Herring
2020-07-26 12:35 ` Wolfram Sang
2020-07-15 11:09 ` [PATCH 13/20] arm64: dts: renesas: r8a774e1: Add I2C and IIC-DVFS support Lad Prabhakar
2020-07-16 15:39 ` Geert Uytterhoeven
2020-07-15 11:09 ` [PATCH 14/20] dt-bindings: spi: renesas,sh-msiof: Add r8a774e1 support Lad Prabhakar
2020-07-16 14:29 ` Geert Uytterhoeven
2020-07-17 11:59 ` Mark Brown
2020-07-17 12:15 ` Lad, Prabhakar
2020-07-17 12:22 ` Mark Brown
2020-07-21 2:51 ` Rob Herring
2020-07-21 2:51 ` Rob Herring
2020-07-15 11:09 ` [PATCH 15/20] arm64: dts: renesas: r8a774e1: Add MSIOF nodes Lad Prabhakar
2020-07-16 15:39 ` Geert Uytterhoeven
2020-07-15 11:09 ` [PATCH 16/20] dt-bindings: watchdog: renesas,wdt: Document r8a774e1 support Lad Prabhakar
2020-07-16 14:30 ` Geert Uytterhoeven
2020-07-19 13:59 ` Guenter Roeck
2020-07-21 2:52 ` Rob Herring
2020-07-15 11:09 ` [PATCH 17/20] arm64: dts: renesas: r8a774e1: Add RWDT node Lad Prabhakar
2020-07-16 15:39 ` Geert Uytterhoeven
2020-07-15 11:09 ` [PATCH 18/20] dt-bindings: can: rcar_can: Document r8a774e1 support Lad Prabhakar
2020-07-16 14:34 ` Geert Uytterhoeven
2020-07-21 2:52 ` Rob Herring
2020-07-15 11:09 ` [PATCH 19/20] dt-bindings: can: rcar_canfd: " Lad Prabhakar
2020-07-16 14:35 ` Geert Uytterhoeven
2020-07-21 2:53 ` Rob Herring
2020-07-15 11:09 ` [PATCH 20/20] arm64: dts: renesas: r8a774e1: Add CAN[FD] support Lad Prabhakar
2020-07-16 15:39 ` Geert Uytterhoeven
2020-07-20 11:12 ` [PATCH 00/20] Add support for [H]SCIF/TMU/CMT/THS/SDHI/MSIOF/CAN[FD]/I2C/IIC/RWDT on R8A774E1 Mark Brown
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=1594811350-14066-5-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com \
--to=prabhakar.mahadev-lad.rj@bp.renesas.com \
--cc=amit.kucheria@verdurent.com \
--cc=broonie@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=kuba@kernel.org \
--cc=laurent.pinchart+renesas@ideasonboard.com \
--cc=linux-can@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=magnus.damm@gmail.com \
--cc=mkl@pengutronix.de \
--cc=netdev@vger.kernel.org \
--cc=niklas.soderlund@ragnatech.se \
--cc=prabhakar.csengg@gmail.com \
--cc=robh+dt@kernel.org \
--cc=rui.zhang@intel.com \
--cc=tglx@linutronix.de \
--cc=wg@grandegger.com \
--cc=wim@linux-watchdog.org \
--cc=wsa+renesas@sang-engineering.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).