Skip to content

Commit 6fbd72d

Browse files
committed
dt-bindings: hwmon: add adi,max42500.yaml
Add EN0 and EN1 gpio ports in documentation for devicetree bindings for MAX42500. Signed-off-by: Kent Libetario <Kent.Libetario@analog.com>
1 parent 5920e35 commit 6fbd72d

File tree

1 file changed

+31
-12
lines changed

1 file changed

+31
-12
lines changed

Documentation/devicetree/bindings/hwmon/adi,max42500.yaml

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,45 @@ properties:
1717
compatible:
1818
enum:
1919
- adi,max42500
20-
2120
reg:
22-
description: I2C address of slave device.
23-
minimum: 0x28
24-
maximum: 0x2B
21+
type: array
22+
items:
23+
anyOf:
24+
- type: integer
25+
- type: array
26+
items:
27+
- type: integer
28+
- type: integer
29+
30+
gpios:
31+
type: array
32+
items:
33+
type: object
34+
properties:
35+
gpio:
36+
$ref: /schemas/types.yaml#/definitions/phandle
37+
flags:
38+
type: integer
39+
required:
40+
- gpio
41+
- flags
42+
43+
i2c-bus:
44+
$ref: /schemas/types.yaml#/definitions/phandle
2545

2646
required:
2747
- compatible
2848
- reg
49+
- gpios
50+
- i2c-bus
2951

3052
additionalProperties: false
3153

3254
examples:
3355
- |
34-
i2c {
35-
#address-cells = <1>;
36-
#size-cells = <0>;
37-
38-
hwmon@28 {
39-
reg = <0x28>;
40-
compatible = "adi,max42500";
41-
};
56+
hwmon@28 {
57+
compatible = "adi,max42500";
58+
reg = <0x28>;
59+
i2c-bus = <&i2c1>;
60+
gpios = <&gpio 0 0>, <&gpio 1 0>;
4261
};

0 commit comments

Comments
 (0)