* [PATCH 0/2] thermal: Add support for R-Car V4H
@ 2023-02-09 16:11 Geert Uytterhoeven
2023-02-09 16:11 ` [PATCH 1/2] dt-bindings: thermal: rcar-gen3-thermal: Add r8a779g0 support Geert Uytterhoeven
2023-02-09 16:11 ` [PATCH 2/2] thermal/drivers/rcar_gen3: Add support for R-Car V4H Geert Uytterhoeven
0 siblings, 2 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2023-02-09 16:11 UTC (permalink / raw)
To: Niklas Söderlund, Rafael J . Wysocki, Daniel Lezcano,
Rob Herring, Krzysztof Kozlowski
Cc: Amit Kucheria, Zhang Rui, linux-renesas-soc, linux-pm,
devicetree, linux-kernel, Geert Uytterhoeven
Hi all,
This patch series adds support for the Thermal Sensor in the Renesas
R-Car V4H SoC.
Unfortunately early revisions of R-Car V4H may suffer from a hardware
issue with the thermal sensor, causing the values in
/sys/devices/virtual/thermal/thermal_zone*/temp to be off.
Thanks for your comments!
Geert Uytterhoeven (2):
dt-bindings: thermal: rcar-gen3-thermal: Add r8a779g0 support
thermal/drivers/rcar_gen3: Add support for R-Car V4H
.../devicetree/bindings/thermal/rcar-gen3-thermal.yaml | 3 +++
drivers/thermal/rcar_gen3_thermal.c | 4 ++++
2 files changed, 7 insertions(+)
--
2.34.1
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/2] dt-bindings: thermal: rcar-gen3-thermal: Add r8a779g0 support
2023-02-09 16:11 [PATCH 0/2] thermal: Add support for R-Car V4H Geert Uytterhoeven
@ 2023-02-09 16:11 ` Geert Uytterhoeven
2023-02-09 16:25 ` Wolfram Sang
` (2 more replies)
2023-02-09 16:11 ` [PATCH 2/2] thermal/drivers/rcar_gen3: Add support for R-Car V4H Geert Uytterhoeven
1 sibling, 3 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2023-02-09 16:11 UTC (permalink / raw)
To: Niklas Söderlund, Rafael J . Wysocki, Daniel Lezcano,
Rob Herring, Krzysztof Kozlowski
Cc: Amit Kucheria, Zhang Rui, linux-renesas-soc, linux-pm,
devicetree, linux-kernel, Geert Uytterhoeven
Document support for the Thermal Sensor/Chip Internal Voltage
Monitor/Core Voltage Monitor (THS/CIVM/CVM) on the Renesas R-Car V4H
(R8A779G0) SoC.
Unlike most other R-Car Gen3 and Gen4 SoCs, it has 4 instead of 3
sensors, so increase the maximum number of reg tuples.
Just like other R-Car Gen4 SoCs, interrupts are not routed to the
INTC-AP but to the ECM.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
.../devicetree/bindings/thermal/rcar-gen3-thermal.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml b/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml
index 0f05f5c886c5fe1d..ecf276fd155cfb27 100644
--- a/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml
+++ b/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml
@@ -28,6 +28,7 @@ properties:
- renesas,r8a77980-thermal # R-Car V3H
- renesas,r8a779a0-thermal # R-Car V3U
- renesas,r8a779f0-thermal # R-Car S4-8
+ - renesas,r8a779g0-thermal # R-Car V4H
reg: true
@@ -80,6 +81,7 @@ else:
- description: TSC1 registers
- description: TSC2 registers
- description: TSC3 registers
+ - description: TSC4 registers
if:
not:
properties:
@@ -87,6 +89,7 @@ else:
contains:
enum:
- renesas,r8a779f0-thermal
+ - renesas,r8a779g0-thermal
then:
required:
- interrupts
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] thermal/drivers/rcar_gen3: Add support for R-Car V4H
2023-02-09 16:11 [PATCH 0/2] thermal: Add support for R-Car V4H Geert Uytterhoeven
2023-02-09 16:11 ` [PATCH 1/2] dt-bindings: thermal: rcar-gen3-thermal: Add r8a779g0 support Geert Uytterhoeven
@ 2023-02-09 16:11 ` Geert Uytterhoeven
2023-02-09 22:48 ` Niklas Söderlund
1 sibling, 1 reply; 7+ messages in thread
From: Geert Uytterhoeven @ 2023-02-09 16:11 UTC (permalink / raw)
To: Niklas Söderlund, Rafael J . Wysocki, Daniel Lezcano,
Rob Herring, Krzysztof Kozlowski
Cc: Amit Kucheria, Zhang Rui, linux-renesas-soc, linux-pm,
devicetree, linux-kernel, Geert Uytterhoeven
Add support for the Thermal Sensor/Chip Internal Voltage Monitor/Core
Voltage Monitor (THS/CIVM/CVM) on the Renesas R-Car V4H (R8A779G0) SoC.
According to the R-Car V4H Hardware User's Manual Rev. 0.70, the
(preliminary) conversion formula for the thermal sensor is the same as
for most other R-Car Gen3 and Gen4 SoCs, while the (preliminary)
conversion formula for the chip internal voltage monitor differs.
As the driver only uses the former, no further changes are needed.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
drivers/thermal/rcar_gen3_thermal.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/thermal/rcar_gen3_thermal.c b/drivers/thermal/rcar_gen3_thermal.c
index 4ef927437842af74..04245393e78d02c5 100644
--- a/drivers/thermal/rcar_gen3_thermal.c
+++ b/drivers/thermal/rcar_gen3_thermal.c
@@ -403,6 +403,10 @@ static const struct of_device_id rcar_gen3_thermal_dt_ids[] = {
.compatible = "renesas,r8a779f0-thermal",
.data = &rcar_gen3_ths_tj_1,
},
+ {
+ .compatible = "renesas,r8a779g0-thermal",
+ .data = &rcar_gen3_ths_tj_1,
+ },
{},
};
MODULE_DEVICE_TABLE(of, rcar_gen3_thermal_dt_ids);
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: thermal: rcar-gen3-thermal: Add r8a779g0 support
2023-02-09 16:11 ` [PATCH 1/2] dt-bindings: thermal: rcar-gen3-thermal: Add r8a779g0 support Geert Uytterhoeven
@ 2023-02-09 16:25 ` Wolfram Sang
2023-02-09 22:44 ` Niklas Söderlund
2023-02-13 9:10 ` Krzysztof Kozlowski
2 siblings, 0 replies; 7+ messages in thread
From: Wolfram Sang @ 2023-02-09 16:25 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Niklas Söderlund, Rafael J . Wysocki, Daniel Lezcano,
Rob Herring, Krzysztof Kozlowski, Amit Kucheria, Zhang Rui,
linux-renesas-soc, linux-pm, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 665 bytes --]
On Thu, Feb 09, 2023 at 05:11:53PM +0100, Geert Uytterhoeven wrote:
> Document support for the Thermal Sensor/Chip Internal Voltage
> Monitor/Core Voltage Monitor (THS/CIVM/CVM) on the Renesas R-Car V4H
> (R8A779G0) SoC.
>
> Unlike most other R-Car Gen3 and Gen4 SoCs, it has 4 instead of 3
> sensors, so increase the maximum number of reg tuples.
Yep, no docs saying that it belongs to control domain this time (so
far).
> Just like other R-Car Gen4 SoCs, interrupts are not routed to the
> INTC-AP but to the ECM.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: thermal: rcar-gen3-thermal: Add r8a779g0 support
2023-02-09 16:11 ` [PATCH 1/2] dt-bindings: thermal: rcar-gen3-thermal: Add r8a779g0 support Geert Uytterhoeven
2023-02-09 16:25 ` Wolfram Sang
@ 2023-02-09 22:44 ` Niklas Söderlund
2023-02-13 9:10 ` Krzysztof Kozlowski
2 siblings, 0 replies; 7+ messages in thread
From: Niklas Söderlund @ 2023-02-09 22:44 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Rafael J . Wysocki, Daniel Lezcano, Rob Herring,
Krzysztof Kozlowski, Amit Kucheria, Zhang Rui, linux-renesas-soc,
linux-pm, devicetree, linux-kernel
Hi Geert,
Thanks for your work.
On 2023-02-09 17:11:53 +0100, Geert Uytterhoeven wrote:
> Document support for the Thermal Sensor/Chip Internal Voltage
> Monitor/Core Voltage Monitor (THS/CIVM/CVM) on the Renesas R-Car V4H
> (R8A779G0) SoC.
>
> Unlike most other R-Car Gen3 and Gen4 SoCs, it has 4 instead of 3
> sensors, so increase the maximum number of reg tuples.
> Just like other R-Car Gen4 SoCs, interrupts are not routed to the
> INTC-AP but to the ECM.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
> ---
> .../devicetree/bindings/thermal/rcar-gen3-thermal.yaml | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml b/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml
> index 0f05f5c886c5fe1d..ecf276fd155cfb27 100644
> --- a/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml
> +++ b/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml
> @@ -28,6 +28,7 @@ properties:
> - renesas,r8a77980-thermal # R-Car V3H
> - renesas,r8a779a0-thermal # R-Car V3U
> - renesas,r8a779f0-thermal # R-Car S4-8
> + - renesas,r8a779g0-thermal # R-Car V4H
>
> reg: true
>
> @@ -80,6 +81,7 @@ else:
> - description: TSC1 registers
> - description: TSC2 registers
> - description: TSC3 registers
> + - description: TSC4 registers
> if:
> not:
> properties:
> @@ -87,6 +89,7 @@ else:
> contains:
> enum:
> - renesas,r8a779f0-thermal
> + - renesas,r8a779g0-thermal
> then:
> required:
> - interrupts
> --
> 2.34.1
>
--
Kind Regards,
Niklas Söderlund
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] thermal/drivers/rcar_gen3: Add support for R-Car V4H
2023-02-09 16:11 ` [PATCH 2/2] thermal/drivers/rcar_gen3: Add support for R-Car V4H Geert Uytterhoeven
@ 2023-02-09 22:48 ` Niklas Söderlund
0 siblings, 0 replies; 7+ messages in thread
From: Niklas Söderlund @ 2023-02-09 22:48 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Rafael J . Wysocki, Daniel Lezcano, Rob Herring,
Krzysztof Kozlowski, Amit Kucheria, Zhang Rui, linux-renesas-soc,
linux-pm, devicetree, linux-kernel
Hi Geert,
Thanks for your work.
On 2023-02-09 17:11:54 +0100, Geert Uytterhoeven wrote:
> Add support for the Thermal Sensor/Chip Internal Voltage Monitor/Core
> Voltage Monitor (THS/CIVM/CVM) on the Renesas R-Car V4H (R8A779G0) SoC.
>
> According to the R-Car V4H Hardware User's Manual Rev. 0.70, the
> (preliminary) conversion formula for the thermal sensor is the same as
> for most other R-Car Gen3 and Gen4 SoCs, while the (preliminary)
> conversion formula for the chip internal voltage monitor differs.
> As the driver only uses the former, no further changes are needed.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
> ---
> drivers/thermal/rcar_gen3_thermal.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/thermal/rcar_gen3_thermal.c b/drivers/thermal/rcar_gen3_thermal.c
> index 4ef927437842af74..04245393e78d02c5 100644
> --- a/drivers/thermal/rcar_gen3_thermal.c
> +++ b/drivers/thermal/rcar_gen3_thermal.c
> @@ -403,6 +403,10 @@ static const struct of_device_id rcar_gen3_thermal_dt_ids[] = {
> .compatible = "renesas,r8a779f0-thermal",
> .data = &rcar_gen3_ths_tj_1,
> },
> + {
> + .compatible = "renesas,r8a779g0-thermal",
> + .data = &rcar_gen3_ths_tj_1,
> + },
> {},
> };
> MODULE_DEVICE_TABLE(of, rcar_gen3_thermal_dt_ids);
> --
> 2.34.1
>
--
Kind Regards,
Niklas Söderlund
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: thermal: rcar-gen3-thermal: Add r8a779g0 support
2023-02-09 16:11 ` [PATCH 1/2] dt-bindings: thermal: rcar-gen3-thermal: Add r8a779g0 support Geert Uytterhoeven
2023-02-09 16:25 ` Wolfram Sang
2023-02-09 22:44 ` Niklas Söderlund
@ 2023-02-13 9:10 ` Krzysztof Kozlowski
2 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-13 9:10 UTC (permalink / raw)
To: Geert Uytterhoeven, Niklas Söderlund, Rafael J . Wysocki,
Daniel Lezcano, Rob Herring, Krzysztof Kozlowski
Cc: Amit Kucheria, Zhang Rui, linux-renesas-soc, linux-pm,
devicetree, linux-kernel
On 09/02/2023 17:11, Geert Uytterhoeven wrote:
> Document support for the Thermal Sensor/Chip Internal Voltage
> Monitor/Core Voltage Monitor (THS/CIVM/CVM) on the Renesas R-Car V4H
> (R8A779G0) SoC.
>
> Unlike most other R-Car Gen3 and Gen4 SoCs, it has 4 instead of 3
> sensors, so increase the maximum number of reg tuples.
> Just like other R-Car Gen4 SoCs, interrupts are not routed to the
> INTC-AP but to the ECM.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-02-13 9:11 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-09 16:11 [PATCH 0/2] thermal: Add support for R-Car V4H Geert Uytterhoeven
2023-02-09 16:11 ` [PATCH 1/2] dt-bindings: thermal: rcar-gen3-thermal: Add r8a779g0 support Geert Uytterhoeven
2023-02-09 16:25 ` Wolfram Sang
2023-02-09 22:44 ` Niklas Söderlund
2023-02-13 9:10 ` Krzysztof Kozlowski
2023-02-09 16:11 ` [PATCH 2/2] thermal/drivers/rcar_gen3: Add support for R-Car V4H Geert Uytterhoeven
2023-02-09 22:48 ` Niklas Söderlund
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).