Skip to contentSkip to conversation

Thermal support for BCM74110

PATCH Applied Florian Fainelli 3 participants 5 messages Jan 16, 2025 – Feb 11, 2025

Subsystems (4)
lore
Share & tools
lore

Florian Fainelli

author maintainer
#0 lore raw

cover Thermal support for BCM74110

This small patch series updates the existing brcmstb_thermal driver to support the BCM74110 chip which uses a different process node requiring an update to the thermal equation.

Florian Fainelli (2):
dt-bindings: thermal: Update for BCM74110
thermal: brcmstb_thermal: Add support for BCM74110

 .../devicetree/bindings/thermal/brcm,avs-tmon.yaml    |  1 +
 drivers/thermal/broadcom/brcmstb_thermal.c            | 11 +++++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)
Signature · 1 line
2.43.0
author maintainer
#1 lore raw

PATCH 1/2 dt-bindings: thermal: Update for BCM74110

Update the binding with the BCM74110 compatible string which denotes the first device we need to support in a different process node requiring an updated thermal equation.

---
 Documentation/devicetree/bindings/thermal/brcm,avs-tmon.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/thermal/brcm,avs-tmon.yaml +1 -0
index 081486b44382..2f62551a49c1 100644
@@ -18,6 +18,7 @@ properties:
   compatible:
     items:
       - enum:
+          - brcm,avs-tmon-bcm74110
           - brcm,avs-tmon-bcm7216
           - brcm,avs-tmon-bcm7445
       - const: brcm,avs-tmon
Signature · 1 line
2.43.0
Acked-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] dt-bindings: thermal: Update for BCM74110

Quoted 8 lines · Florian Fainelli

Update the binding with the BCM74110 compatible string which denotes the first device we need to support in a different process node requiring an updated thermal equation.

---
 Documentation/devicetree/bindings/thermal/brcm,avs-tmon.yaml | 1 +
 1 file changed, 1 insertion(+)

Best regards,
Krzysztof

author maintainer
#3 lore raw

PATCH 2/2 thermal: brcmstb_thermal: Add support for BCM74110

In reply to Florian Fainelli

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

---
 drivers/thermal/broadcom/brcmstb_thermal.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
drivers/thermal/broadcom/brcmstb_thermal.c +9 -2
index 270982740fde..f46f2ddc174e 100644
@@ -286,14 +286,20 @@ static int brcmstb_set_trips(struct thermal_zone_device *tz, int low, int high)
 	return 0;
 }
 
-static const struct thermal_zone_device_ops brcmstb_16nm_of_ops = {
+static const struct thermal_zone_device_ops brcmstb_of_ops = {
 	.get_temp	= brcmstb_get_temp,
 };
 
+static const struct brcmstb_thermal_params brcmstb_8nm_params = {
+	.offset	= 418670,
+	.mult	= 509,
+	.of_ops	= &brcmstb_of_ops,
+};
+
 static const struct brcmstb_thermal_params brcmstb_16nm_params = {
 	.offset	= 457829,
 	.mult	= 557,
-	.of_ops	= &brcmstb_16nm_of_ops,
+	.of_ops	= &brcmstb_of_ops,
 };
 
 static const struct thermal_zone_device_ops brcmstb_28nm_of_ops = {
@@ -308,6 +314,7 @@ static const struct brcmstb_thermal_params brcmstb_28nm_params = {
 };
 
 static const struct of_device_id brcmstb_thermal_id_table[] = {
+	{ .compatible = "brcm,avs-tmon-bcm74110", .data = &brcmstb_8nm_params },
 	{ .compatible = "brcm,avs-tmon-bcm7216", .data = &brcmstb_16nm_params },
 	{ .compatible = "brcm,avs-tmon", .data = &brcmstb_28nm_params },
 	{},
Signature · 1 line
2.43.0
#4 lore raw
In reply to Florian Fainelli
Quoted 4 lines · Florian Fainelli

This small patch series updates the existing brcmstb_thermal driver to support the BCM74110 chip which uses a different process node requiring an update to the thermal equation.

Quoted 8 lines

Florian Fainelli (2):
dt-bindings: thermal: Update for BCM74110
thermal: brcmstb_thermal: Add support for BCM74110

  .../devicetree/bindings/thermal/brcm,avs-tmon.yaml    |  1 +
  drivers/thermal/broadcom/brcmstb_thermal.c            | 11 +++++++++--
  2 files changed, 10 insertions(+), 2 deletions(-)

Applied, thanks

-- D.

Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog