Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: hwmon: max31790: Use addressed fan nodes

Since fan properties can include reg, the fan controller should be
able to specify address-cells and size-cells properties and use
an addressed fan child node.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20251001144441.310950-6-eajames@linux.ibm.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Eddie James and committed by
Guenter Roeck
f1ba3c5f 1a254111

+13 -3
+13 -3
Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml
··· 35 35 resets: 36 36 maxItems: 1 37 37 38 + '#address-cells': 39 + const: 1 40 + 41 + '#size-cells': 42 + const: 0 43 + 38 44 "#pwm-cells": 39 45 const: 1 40 46 41 47 patternProperties: 42 - "^fan-[0-9]+$": 48 + "^fan@[0-9]+$": 43 49 $ref: fan-common.yaml# 44 50 unevaluatedProperties: false 45 51 ··· 66 60 reg = <0x20>; 67 61 clocks = <&sys_clk>; 68 62 resets = <&reset 0>; 63 + #address-cells = <1>; 69 64 #pwm-cells = <1>; 65 + #size-cells = <0>; 70 66 71 - fan-0 { 67 + fan@0 { 68 + reg = <0x0>; 72 69 pwms = <&pwm_provider 1>; 73 70 }; 74 71 75 - fan-1 { 72 + fan@1 { 73 + reg = <0x1>; 76 74 pwms = <&pwm_provider 2>; 77 75 }; 78 76 };