[PATCH v3 1/4] dt-bindings: hwmon: fan-common: reject zero pulses per revolution
Robert Marko
robert.marko at sartura.hr
Wed Nov 11 08:12:45 PST 2026
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 at sartura.hr>
---
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
More information about the linux-arm-kernel
mailing list