Devicetree
 help / color / mirror / Atom feed
* [PATCH v3 1/4] dt-bindings: hwmon: fan-common: reject zero pulses per revolution
@ 2026-11-11 16:12 Robert Marko
  2026-11-11 16:12 ` [PATCH v3 2/4] dt-bindings: hwmon: add Microchip LAN969x fan controller Robert Marko
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Robert Marko @ 2026-11-11 16:12 UTC (permalink / raw)
  To: linux, robh, krzk+dt, conor+dt, corbet, skhan, rdunlap,
	nicolas.ferre, claudiu.beznea, linux-hwmon, devicetree,
	linux-kernel, linux-doc, linux-arm-kernel
  Cc: luka.perkov, Robert Marko

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


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

end of thread, other threads:[~2026-11-12  1:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-11 16:12 [PATCH v3 1/4] dt-bindings: hwmon: fan-common: reject zero pulses per revolution Robert Marko
2026-11-11 16:12 ` [PATCH v3 2/4] dt-bindings: hwmon: add Microchip LAN969x fan controller Robert Marko
2026-11-12  1:06   ` Rob Herring (Arm)
2026-11-11 16:12 ` [PATCH v3 3/4] hwmon: Add Microchip LAN969x fan controller driver Robert Marko
2026-11-11 16:51   ` sashiko-bot
2026-11-11 16:12 ` [PATCH v3 4/4] arm64: dts: microchip: lan969x: add fan controller Robert Marko
2026-11-12  1:05 ` [PATCH v3 1/4] dt-bindings: hwmon: fan-common: reject zero pulses per revolution Rob Herring

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