mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] Thermal support for BCM74110
@ 2025-01-16 19:38 Florian Fainelli
  2025-01-16 19:38 ` [PATCH 1/2] dt-bindings: thermal: Update " Florian Fainelli
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Florian Fainelli @ 2025-01-16 19:38 UTC (permalink / raw)
  To: linux-kernel
  Cc: Florian Fainelli, Markus Mayer,
	Broadcom internal kernel review list, Rafael J. Wysocki,
	Daniel Lezcano, Zhang Rui, Lukasz Luba, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley,
	open list:BROADCOM STB AVS TMON DRIVER,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE

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(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] dt-bindings: thermal: Update for BCM74110
  2025-01-16 19:38 [PATCH 0/2] Thermal support for BCM74110 Florian Fainelli
@ 2025-01-16 19:38 ` Florian Fainelli
  2025-01-18 16:12   ` Krzysztof Kozlowski
  2025-01-16 19:38 ` [PATCH 2/2] thermal: brcmstb_thermal: Add support " Florian Fainelli
  2025-02-11  8:53 ` [PATCH 0/2] Thermal " Daniel Lezcano
  2 siblings, 1 reply; 5+ messages in thread
From: Florian Fainelli @ 2025-01-16 19:38 UTC (permalink / raw)
  To: linux-kernel
  Cc: Florian Fainelli, Markus Mayer,
	Broadcom internal kernel review list, Rafael J. Wysocki,
	Daniel Lezcano, Zhang Rui, Lukasz Luba, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley,
	open list:BROADCOM STB AVS TMON DRIVER,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE

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.

Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
---
 Documentation/devicetree/bindings/thermal/brcm,avs-tmon.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/thermal/brcm,avs-tmon.yaml b/Documentation/devicetree/bindings/thermal/brcm,avs-tmon.yaml
index 081486b44382..2f62551a49c1 100644
--- a/Documentation/devicetree/bindings/thermal/brcm,avs-tmon.yaml
+++ b/Documentation/devicetree/bindings/thermal/brcm,avs-tmon.yaml
@@ -18,6 +18,7 @@ properties:
   compatible:
     items:
       - enum:
+          - brcm,avs-tmon-bcm74110
           - brcm,avs-tmon-bcm7216
           - brcm,avs-tmon-bcm7445
       - const: brcm,avs-tmon
-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 2/2] thermal: brcmstb_thermal: Add support for BCM74110
  2025-01-16 19:38 [PATCH 0/2] Thermal support for BCM74110 Florian Fainelli
  2025-01-16 19:38 ` [PATCH 1/2] dt-bindings: thermal: Update " Florian Fainelli
@ 2025-01-16 19:38 ` Florian Fainelli
  2025-02-11  8:53 ` [PATCH 0/2] Thermal " Daniel Lezcano
  2 siblings, 0 replies; 5+ messages in thread
From: Florian Fainelli @ 2025-01-16 19:38 UTC (permalink / raw)
  To: linux-kernel
  Cc: Florian Fainelli, Markus Mayer,
	Broadcom internal kernel review list, Rafael J. Wysocki,
	Daniel Lezcano, Zhang Rui, Lukasz Luba, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley,
	open list:BROADCOM STB AVS TMON DRIVER,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE

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>
---
 drivers/thermal/broadcom/brcmstb_thermal.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/drivers/thermal/broadcom/brcmstb_thermal.c b/drivers/thermal/broadcom/brcmstb_thermal.c
index 270982740fde..f46f2ddc174e 100644
--- a/drivers/thermal/broadcom/brcmstb_thermal.c
+++ b/drivers/thermal/broadcom/brcmstb_thermal.c
@@ -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 },
 	{},
-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] dt-bindings: thermal: Update for BCM74110
  2025-01-16 19:38 ` [PATCH 1/2] dt-bindings: thermal: Update " Florian Fainelli
@ 2025-01-18 16:12   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2025-01-18 16:12 UTC (permalink / raw)
  To: Florian Fainelli
  Cc: linux-kernel, Markus Mayer, Broadcom internal kernel review list,
	Rafael J. Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	open list:BROADCOM STB AVS TMON DRIVER,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE

On Thu, Jan 16, 2025 at 11:38:41AM -0800, Florian Fainelli wrote:
> 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.
> 
> Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
> ---
>  Documentation/devicetree/bindings/thermal/brcm,avs-tmon.yaml | 1 +
>  1 file changed, 1 insertion(+)

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/2] Thermal support for BCM74110
  2025-01-16 19:38 [PATCH 0/2] Thermal support for BCM74110 Florian Fainelli
  2025-01-16 19:38 ` [PATCH 1/2] dt-bindings: thermal: Update " Florian Fainelli
  2025-01-16 19:38 ` [PATCH 2/2] thermal: brcmstb_thermal: Add support " Florian Fainelli
@ 2025-02-11  8:53 ` Daniel Lezcano
  2 siblings, 0 replies; 5+ messages in thread
From: Daniel Lezcano @ 2025-02-11  8:53 UTC (permalink / raw)
  To: Florian Fainelli, linux-kernel
  Cc: Markus Mayer, Broadcom internal kernel review list,
	Rafael J. Wysocki, Zhang Rui, Lukasz Luba, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley,
	open list:BROADCOM STB AVS TMON DRIVER,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE

On 16/01/2025 20:38, Florian Fainelli wrote:
> 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(-)
> 

Applied, thanks

   -- D.

-- 
<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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-02-11  8:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-16 19:38 [PATCH 0/2] Thermal support for BCM74110 Florian Fainelli
2025-01-16 19:38 ` [PATCH 1/2] dt-bindings: thermal: Update " Florian Fainelli
2025-01-18 16:12   ` Krzysztof Kozlowski
2025-01-16 19:38 ` [PATCH 2/2] thermal: brcmstb_thermal: Add support " Florian Fainelli
2025-02-11  8:53 ` [PATCH 0/2] Thermal " Daniel Lezcano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®