File tree Expand file tree Collapse file tree 1 file changed +31
-12
lines changed
Documentation/devicetree/bindings/hwmon Expand file tree Collapse file tree 1 file changed +31
-12
lines changed Original file line number Diff line number Diff line change @@ -17,26 +17,45 @@ properties:
17
17
compatible :
18
18
enum :
19
19
- adi,max42500
20
-
21
20
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
25
45
26
46
required :
27
47
- compatible
28
48
- reg
49
+ - gpios
50
+ - i2c-bus
29
51
30
52
additionalProperties : false
31
53
32
54
examples :
33
55
- |
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>;
42
61
};
You can’t perform that action at this time.
0 commit comments