[PATCH v3 1/4] dt-bindings: hwmon: fan-common: reject zero pulses per revolution
From: Robert Marko
Date: Wed Nov 11 2026 - 11:16:56 EST
A fan sensor cannot produce zero tachometer pulses per revolution.
Add a minimum of one to the shared fan schema so every user rejects
this invalid value.
Signed-off-by: Robert Marko <robert.marko@xxxxxxxxxx>
---
Changes in v3:
- New patch: require at least one pulse per revolution in fan-common.
Documentation/devicetree/bindings/hwmon/fan-common.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/hwmon/fan-common.yaml b/Documentation/devicetree/bindings/hwmon/fan-common.yaml
index 0fb7380816994..63a369628a3a1 100644
--- a/Documentation/devicetree/bindings/hwmon/fan-common.yaml
+++ b/Documentation/devicetree/bindings/hwmon/fan-common.yaml
@@ -27,6 +27,7 @@ properties:
description:
The number of pulse from fan sensor per revolution.
$ref: /schemas/types.yaml#/definitions/uint32
+ minimum: 1
maximum: 4
tach-div:
--
2.56.0