public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: hwmon: pwm-fan: Document target-pwm property
@ 2024-04-24  9:04 Peter Korsgaard
  2024-04-24  9:04 ` [PATCH 2/2] hwmon: (pwm-fan): support target-pwm property to set default PWM value Peter Korsgaard
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Peter Korsgaard @ 2024-04-24  9:04 UTC (permalink / raw)
  To: linux-hwmon, devicetree, Guenter Roeck
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Peter Korsgaard

Similar to target-rpm from fan-common.yaml but for the PWM setting
(0..255).

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 Documentation/devicetree/bindings/hwmon/pwm-fan.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Documentation/devicetree/bindings/hwmon/pwm-fan.yaml b/Documentation/devicetree/bindings/hwmon/pwm-fan.yaml
index 4e5abf7580cc..58513ff732af 100644
--- a/Documentation/devicetree/bindings/hwmon/pwm-fan.yaml
+++ b/Documentation/devicetree/bindings/hwmon/pwm-fan.yaml
@@ -46,6 +46,14 @@ properties:
 
   "#cooling-cells": true
 
+  target-pwm:
+    description:
+      The default desired fan PWM.
+    $ref: /schemas/types.yaml#/definitions/uint32
+    minimum: 0
+    maximum: 255
+    default: 255
+
 required:
   - compatible
   - pwms
-- 
2.39.2


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

end of thread, other threads:[~2024-04-24 22:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-24  9:04 [PATCH 1/2] dt-bindings: hwmon: pwm-fan: Document target-pwm property Peter Korsgaard
2024-04-24  9:04 ` [PATCH 2/2] hwmon: (pwm-fan): support target-pwm property to set default PWM value Peter Korsgaard
2024-04-24 14:10   ` Guenter Roeck
2024-04-24 14:12   ` Guenter Roeck
2024-04-24 14:10 ` [PATCH 1/2] dt-bindings: hwmon: pwm-fan: Document target-pwm property Guenter Roeck
2024-04-24 20:24   ` Peter Korsgaard
2024-04-24 22:04 ` Rob Herring
2024-04-24 22:40   ` Guenter Roeck

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