]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
thermal: renesas: rzg3e: add support for RZ/T2H and RZ/N2H
authorCosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Thu, 8 Jan 2026 19:52:23 +0000 (21:52 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 21 Jan 2026 18:06:57 +0000 (19:06 +0100)
commit0061030929e2d09398ade9fae320528bdcba2bed
tree4442e6a64f330d308520b536a92bf8d96cf888a0
parentf41eaaa5f2c9fb4fc816e45e2061d80c0b927d39
thermal: renesas: rzg3e: add support for RZ/T2H and RZ/N2H

The Renesas RZ/T2H (R9A09G077) and RZ/N2H (R9A09G087) SoCs expose the
temperature calibration via SMC SIP and do not have a reset for the
TSU peripheral, and use different minimum and maximum temperature values
compared to the already supported RZ/G3E.

Although the calibration data is stored in an OTP memory, the OTP itself
is not memory-mapped, access to it is done through an OTP controller.

The OTP controller is only accessible from the secure world,
but the temperature calibration data stored in the OTP is exposed via
SMC.

Add support for retrieving the calibration data using arm_smcc_smc().

Add a compatible for RZ/T2H, RZ/N2H can use it as a fallback.

Reviewed-by: John Madieu <john.madieu.xa@bp.renesas.com>
Tested-by: John Madieu <john.madieu.xa@bp.renesas.com>
Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://patch.msgid.link/20260108195223.193531-6-cosmin-gabriel.tanislav.xa@renesas.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/renesas/rzg3e_thermal.c