thermal/drivers/rcar_gen3: Add support for R-Car V4M
Subsystems (4)
Geert Uytterhoeven
maintainercover thermal/drivers/rcar_gen3: Add support for R-Car V4M
Hi all,
This patch series adds support for the Thermal Sensor/Chip Internal Voltage Monitor/Core Voltage Monitor (THS/CIVM/CVM) on the Renesas R-Car V4M (R8A779H0) SoC.
It has been tested on the Renesas Gray Hawk Single development board, with an R-Car V4M SoC that has unfortunately no calibration values fused.
Thanks for your comments!
Duy Nguyen (1):
dt-bindings: thermal: rcar-gen3-thermal: Add r8a779h0 support
Geert Uytterhoeven (1):
thermal/drivers/rcar_gen3: Add support for R-Car V4M
.../devicetree/bindings/thermal/rcar-gen3-thermal.yaml | 2 ++ drivers/thermal/rcar_gen3_thermal.c | 4 ++++ 2 files changed, 6 insertions(+)
Signature · 12 lines
2.34.1
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
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 TorvaldsGeert Uytterhoeven
maintainerPATCH 1/2 dt-bindings: thermal: rcar-gen3-thermal: Add r8a779h0 support
From: Duy Nguyen <[email protected]>
Document support for the Thermal Sensor/Chip Internal Voltage Monitor/Core Voltage Monitor (THS/CIVM/CVM) on the Renesas R-Car V4M (R8A779H0) SoC.
Just like on other R-Car Gen4 SoCs, interrupts are not routed to the INTC-AP (GIC) but to the Error Control Module (ECM).
---
Changes compared to the BSP:
- No interrupts property, as interrupts are routed to the ECM.
--- .../devicetree/bindings/thermal/rcar-gen3-thermal.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml +2 -0
@@ -29,6 +29,7 @@ properties: - renesas,r8a779a0-thermal # R-Car V3U - renesas,r8a779f0-thermal # R-Car S4-8 - renesas,r8a779g0-thermal # R-Car V4H + - renesas,r8a779h0-thermal # R-Car V4M reg: true
@@ -90,6 +91,7 @@ else: enum: - renesas,r8a779f0-thermal - renesas,r8a779g0-thermal + - renesas,r8a779h0-thermal then: required: - interrupts
Signature · 1 line
2.34.1
Re: [PATCH 1/2] dt-bindings: thermal: rcar-gen3-thermal: Add r8a779h0 support
Hi Geert,
Thanks for your work.
Quoted 11 lines · Geert Uytterhoeven
From: Duy Nguyen <[email protected]>
Document support for the Thermal Sensor/Chip Internal Voltage Monitor/Core Voltage Monitor (THS/CIVM/CVM) on the Renesas R-Car V4M (R8A779H0) SoC.
Just like on other R-Car Gen4 SoCs, interrupts are not routed to the INTC-AP (GIC) but to the Error Control Module (ECM).
Signed-off-by Duy Nguyen <[email protected]>Signed-off-by Geert Uytterhoeven <[email protected]>
Quoted 30 lines
---
Changes compared to the BSP:
- No interrupts property, as interrupts are routed to the ECM.--- .../devicetree/bindings/thermal/rcar-gen3-thermal.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml +2
-0@@ -29,6 +29,7 @@ properties: - renesas,r8a779a0-thermal # R-Car V3U - renesas,r8a779f0-thermal # R-Car S4-8 - renesas,r8a779g0-thermal # R-Car V4H + - renesas,r8a779h0-thermal # R-Car V4M reg: true@@ -90,6 +91,7 @@ else: enum: - renesas,r8a779f0-thermal - renesas,r8a779g0-thermal + - renesas,r8a779h0-thermal then: required: - interruptsSignature · 1 line
2.34.1
Signature · 2 lines
Kind Regards, Niklas Söderlund
Re: [PATCH 1/2] dt-bindings: thermal: rcar-gen3-thermal: Add r8a779h0 support
In reply to Geert UytterhoevenQuoted 11 lines · Geert Uytterhoeven
From: Duy Nguyen <[email protected]>
Document support for the Thermal Sensor/Chip Internal Voltage Monitor/Core Voltage Monitor (THS/CIVM/CVM) on the Renesas R-Car V4M (R8A779H0) SoC.
Just like on other R-Car Gen4 SoCs, interrupts are not routed to the INTC-AP (GIC) but to the Error Control Module (ECM).
Signed-off-by Duy Nguyen <[email protected]>Signed-off-by Geert Uytterhoeven <[email protected]>
Geert Uytterhoeven
maintainerPATCH 2/2 thermal/drivers/rcar_gen3: Add support for R-Car V4M
In reply to Geert UytterhoevenAdd support for the Thermal Sensor/Chip Internal Voltage Monitor/Core Voltage Monitor (THS/CIVM/CVM) on the Renesas R-Car V4M (R8A779H0) SoC.
The conversion formulas for R-Car V4M are the same as for other R-Car Gen4 SoCs.
Based on a patch in the BSP by Duy Nguyen.
---
Changes compared to the BSP:
- Use existing rcar_gen4_thermal_info instead of new data_v4m.
--- drivers/thermal/rcar_gen3_thermal.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/thermal/rcar_gen3_thermal.c +4 -0
@@ -428,6 +428,10 @@ static const struct of_device_id rcar_gen3_thermal_dt_ids[] = { .compatible = "renesas,r8a779g0-thermal", .data = &rcar_gen4_thermal_info, }, + { + .compatible = "renesas,r8a779h0-thermal", + .data = &rcar_gen4_thermal_info, + }, {}, };MODULE_DEVICE_TABLE (of, rcar_gen3_thermal_dt_ids);
Signature · 1 line
2.34.1
Hello Geert,
Thanks for your patch.
Quoted 9 lines · Geert Uytterhoeven
Add support for the Thermal Sensor/Chip Internal Voltage Monitor/Core Voltage Monitor (THS/CIVM/CVM) on the Renesas R-Car V4M (R8A779H0) SoC.
The conversion formulas for R-Car V4M are the same as for other R-Car Gen4 SoCs.
Based on a patch in the BSP by Duy Nguyen.
Signed-off-by Geert Uytterhoeven <[email protected]>
Quoted 25 lines
---
Changes compared to the BSP:
- Use existingrcar_gen4_thermal_infoinstead of newdata_v4m.--- drivers/thermal/rcar_gen3_thermal.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/thermal/rcar_gen3_thermal.c +4
-0@@ -428,6 +428,10 @@ static const struct of_device_id rcar_gen3_thermal_dt_ids[] = { .compatible = "renesas,r8a779g0-thermal", .data = &rcar_gen4_thermal_info, }, + { + .compatible = "renesas,r8a779h0-thermal", + .data = &rcar_gen4_thermal_info, + }, {}, };MODULE_DEVICE_TABLE (of, rcar_gen3_thermal_dt_ids);Signature · 1 line
2.34.1
Signature · 2 lines
Kind Regards, Niklas Söderlund