[PATCH v4 1/3] dt-bindings: hwmon: amc6821: Add cooling levels

João Paulo Gonçalves posted 3 patches 3 months, 4 weeks ago
[PATCH v4 1/3] dt-bindings: hwmon: amc6821: Add cooling levels
Posted by João Paulo Gonçalves 3 months, 4 weeks ago
From: João Paulo Gonçalves <joao.goncalves@toradex.com>

The fan can be used as a cooling device, add a description of the
`cooling-levels` property and restrict the maximum value to 255, which
is the highest PWM duty cycle supported by the AMC6821 fan controller.

Signed-off-by: João Paulo Gonçalves <joao.goncalves@toradex.com>
---
v4: Unchanged
v3: https://lore.kernel.org/lkml/20250612-b4-amc6821-cooling-device-support-v3-0-360681a7652c@toradex.com/
v2: https://lore.kernel.org/lkml/20250603-b4-amc6821-cooling-device-support-v2-0-74943c889a2d@toradex.com/
v1: https://lore.kernel.org/lkml/20250530-b4-v1-amc6821-cooling-device-support-b4-v1-0-7bb98496c969@toradex.com/
---
 Documentation/devicetree/bindings/hwmon/ti,amc6821.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/hwmon/ti,amc6821.yaml b/Documentation/devicetree/bindings/hwmon/ti,amc6821.yaml
index 9ca7356760a74b1ab5e6c5a4966ba30f050a1eed..eb00756988be158b104642707d96e371930c9fd7 100644
--- a/Documentation/devicetree/bindings/hwmon/ti,amc6821.yaml
+++ b/Documentation/devicetree/bindings/hwmon/ti,amc6821.yaml
@@ -32,6 +32,12 @@ properties:
     $ref: fan-common.yaml#
     unevaluatedProperties: false
 
+    properties:
+      cooling-levels:
+        description: PWM duty cycle values corresponding to thermal cooling states.
+        items:
+          maximum: 255
+
   "#pwm-cells":
     const: 2
     description: |

-- 
2.43.0

Re: [PATCH v4 1/3] dt-bindings: hwmon: amc6821: Add cooling levels
Posted by Guenter Roeck 3 months, 3 weeks ago
On Fri, Jun 13, 2025 at 10:42:38AM -0300, João Paulo Gonçalves wrote:
> From: João Paulo Gonçalves <joao.goncalves@toradex.com>
> 
> The fan can be used as a cooling device, add a description of the
> `cooling-levels` property and restrict the maximum value to 255, which
> is the highest PWM duty cycle supported by the AMC6821 fan controller.
> 
> Signed-off-by: João Paulo Gonçalves <joao.goncalves@toradex.com>
> Acked-by: Conor Dooley <conor.dooley@microchip.com>

Applied.

Thanks,
Guenter
Re: [PATCH v4 1/3] dt-bindings: hwmon: amc6821: Add cooling levels
Posted by Conor Dooley 3 months, 4 weeks ago
On Fri, Jun 13, 2025 at 10:42:38AM -0300, João Paulo Gonçalves wrote:
> From: João Paulo Gonçalves <joao.goncalves@toradex.com>
> 
> The fan can be used as a cooling device, add a description of the
> `cooling-levels` property and restrict the maximum value to 255, which
> is the highest PWM duty cycle supported by the AMC6821 fan controller.
> 
> Signed-off-by: João Paulo Gonçalves <joao.goncalves@toradex.com>

Acked-by: Conor Dooley <conor.dooley@microchip.com>