thermal/drivers/rcar_gen3: Fix mapping SoCs to generic Gen4 entry

S4 was added first so it was assumed to be the blueprint for R-Car Gen4.
It turned out now, that S4 is a special mix between Gen3 and Gen4. V4H
and V4M are the similar ones as confirmed by HW engineers.

So, rename the S4 entry to be specific instead of generic. Rename the
V4H entry to be the new generic one, so V4M will use it as well now.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20250911070254.2214-2-wsa+renesas@sang-engineering.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
This commit is contained in:
Wolfram Sang 2025-09-11 09:00:13 +02:00 committed by Daniel Lezcano
parent 9d522a877b
commit 117bdda24d

View File

@ -371,7 +371,7 @@ static const struct rcar_gen3_thermal_fuse_default rcar_gen3_thermal_fuse_defaul
},
};
static const struct rcar_gen3_thermal_fuse_default rcar_gen3_thermal_fuse_default_info_v4h = {
static const struct rcar_gen3_thermal_fuse_default rcar_gen3_thermal_fuse_default_info_gen4 = {
.ptat = { 3274, 2164, 985 },
.thcodes = { /* All four THS units share the same trimming */
{ 3218, 2617, 1980 },
@ -397,7 +397,7 @@ static const struct rcar_thermal_info rcar_gen3_thermal_info = {
.fuse_defaults = &rcar_gen3_thermal_fuse_default_info_gen3,
};
static const struct rcar_thermal_info rcar_gen4_thermal_info = {
static const struct rcar_thermal_info rcar_s4_thermal_info = {
.scale = 167,
.adj_below = -41,
.adj_above = 126,
@ -405,12 +405,12 @@ static const struct rcar_thermal_info rcar_gen4_thermal_info = {
.fuse_defaults = &rcar_gen3_thermal_fuse_default_info_gen3,
};
static const struct rcar_thermal_info rcar_v4h_thermal_info = {
static const struct rcar_thermal_info rcar_gen4_thermal_info = {
.scale = 167,
.adj_below = -41,
.adj_above = 126,
.fuses = &rcar_gen3_thermal_fuse_info_gen4,
.fuse_defaults = &rcar_gen3_thermal_fuse_default_info_v4h,
.fuse_defaults = &rcar_gen3_thermal_fuse_default_info_gen4,
};
static const struct of_device_id rcar_gen3_thermal_dt_ids[] = {
@ -452,11 +452,11 @@ static const struct of_device_id rcar_gen3_thermal_dt_ids[] = {
},
{
.compatible = "renesas,r8a779f0-thermal",
.data = &rcar_gen4_thermal_info,
.data = &rcar_s4_thermal_info,
},
{
.compatible = "renesas,r8a779g0-thermal",
.data = &rcar_v4h_thermal_info,
.data = &rcar_gen4_thermal_info,
},
{
.compatible = "renesas,r8a779h0-thermal",