mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
Guenter Roeck
parent
1a25411199
commit
f1ba3c5f55
@@ -35,11 +35,17 @@ properties:
|
||||
resets:
|
||||
maxItems: 1
|
||||
|
||||
'#address-cells':
|
||||
const: 1
|
||||
|
||||
'#size-cells':
|
||||
const: 0
|
||||
|
||||
"#pwm-cells":
|
||||
const: 1
|
||||
|
||||
patternProperties:
|
||||
"^fan-[0-9]+$":
|
||||
"^fan@[0-9]+$":
|
||||
$ref: fan-common.yaml#
|
||||
unevaluatedProperties: false
|
||||
|
||||
@@ -60,13 +66,17 @@ examples:
|
||||
reg = <0x20>;
|
||||
clocks = <&sys_clk>;
|
||||
resets = <&reset 0>;
|
||||
#address-cells = <1>;
|
||||
#pwm-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
fan-0 {
|
||||
fan@0 {
|
||||
reg = <0x0>;
|
||||
pwms = <&pwm_provider 1>;
|
||||
};
|
||||
|
||||
fan-1 {
|
||||
fan@1 {
|
||||
reg = <0x1>;
|
||||
pwms = <&pwm_provider 2>;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user