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

thermal/drivers/brcmstb_thermal: Add support for BCM74110

BCM74110 uses a different process node compared to previous chips that
requires a different equation, account for that.

Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20250116193842.758788-3-florian.fainelli@broadcom.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Florian Fainelli and committed by
Daniel Lezcano
09daf8f0 2395a028

+9 -2
+9 -2
drivers/thermal/broadcom/brcmstb_thermal.c
··· 286 286 return 0; 287 287 } 288 288 289 - static const struct thermal_zone_device_ops brcmstb_16nm_of_ops = { 289 + static const struct thermal_zone_device_ops brcmstb_of_ops = { 290 290 .get_temp = brcmstb_get_temp, 291 + }; 292 + 293 + static const struct brcmstb_thermal_params brcmstb_8nm_params = { 294 + .offset = 418670, 295 + .mult = 509, 296 + .of_ops = &brcmstb_of_ops, 291 297 }; 292 298 293 299 static const struct brcmstb_thermal_params brcmstb_16nm_params = { 294 300 .offset = 457829, 295 301 .mult = 557, 296 - .of_ops = &brcmstb_16nm_of_ops, 302 + .of_ops = &brcmstb_of_ops, 297 303 }; 298 304 299 305 static const struct thermal_zone_device_ops brcmstb_28nm_of_ops = { ··· 314 308 }; 315 309 316 310 static const struct of_device_id brcmstb_thermal_id_table[] = { 311 + { .compatible = "brcm,avs-tmon-bcm74110", .data = &brcmstb_8nm_params }, 317 312 { .compatible = "brcm,avs-tmon-bcm7216", .data = &brcmstb_16nm_params }, 318 313 { .compatible = "brcm,avs-tmon", .data = &brcmstb_28nm_params }, 319 314 {},