]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
thermal/drivers/rcar_gen3: Fix mapping SoCs to generic Gen4 entry
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 11 Sep 2025 07:00:13 +0000 (09:00 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 25 Sep 2025 20:11:00 +0000 (22:11 +0200)
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>
drivers/thermal/renesas/rcar_gen3_thermal.c

index e4201098556b287857e1e9ae4794251f525b182c..3223de238d01441f94c2a8e2ec5ef78ffd141b3e 100644 (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",