Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

thermal/drivers/rcar_gen3: Add support for R-Car V4H default trim values

Add default trimming values for the four temperature sensors located
in Renesas R-Car V4H Working Sample SoC. The trimming values are
identical for all four THS temperature sensors.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://lore.kernel.org/r/20250625181739.28391-2-marek.vasut+renesas@mailbox.org

authored by

Marek Vasut and committed by
Daniel Lezcano
48bc3b33 84fd9e4a

+19 -1
+19 -1
drivers/thermal/renesas/rcar_gen3_thermal.c
··· 371 371 }, 372 372 }; 373 373 374 + static const struct rcar_gen3_thermal_fuse_default rcar_gen3_thermal_fuse_default_info_v4h = { 375 + .ptat = { 3274, 2164, 985 }, 376 + .thcodes = { /* All four THS units share the same trimming */ 377 + { 3218, 2617, 1980 }, 378 + { 3218, 2617, 1980 }, 379 + { 3218, 2617, 1980 }, 380 + { 3218, 2617, 1980 }, 381 + } 382 + }; 383 + 374 384 static const struct rcar_thermal_info rcar_m3w_thermal_info = { 375 385 .scale = 157, 376 386 .adj_below = -41, ··· 403 393 .adj_above = 126, 404 394 .fuses = &rcar_gen3_thermal_fuse_info_gen4, 405 395 .fuse_defaults = &rcar_gen3_thermal_fuse_default_info_gen3, 396 + }; 397 + 398 + static const struct rcar_thermal_info rcar_v4h_thermal_info = { 399 + .scale = 167, 400 + .adj_below = -41, 401 + .adj_above = 126, 402 + .fuses = &rcar_gen3_thermal_fuse_info_gen4, 403 + .fuse_defaults = &rcar_gen3_thermal_fuse_default_info_v4h, 406 404 }; 407 405 408 406 static const struct of_device_id rcar_gen3_thermal_dt_ids[] = { ··· 456 438 }, 457 439 { 458 440 .compatible = "renesas,r8a779g0-thermal", 459 - .data = &rcar_gen4_thermal_info, 441 + .data = &rcar_v4h_thermal_info, 460 442 }, 461 443 { 462 444 .compatible = "renesas,r8a779h0-thermal",