Skip to content

Commit a095d8c

Browse files
krzkgroeck
authored andcommitted
dt-bindings: hwmon: reference common hwmon schema
Reference common hwmon schema in the bindings which have and customize the "shunt-resistor-micro-ohms" property. While this does not make the binding smaller, it brings common definition of that property and also allows generic "label" (parsed by Linux hwmon core code). Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240224-dt-bindings-hwmon-common-v2-5-b446eecf5480@linaro.org Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 2988ce5 commit a095d8c

File tree

6 files changed

+24
-6
lines changed

6 files changed

+24
-6
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ required:
4646
- compatible
4747
- reg
4848

49-
additionalProperties: false
49+
allOf:
50+
- $ref: hwmon-common.yaml#
51+
52+
unevaluatedProperties: false
5053

5154
examples:
5255
- |

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ required:
3131
- compatible
3232
- reg
3333

34-
additionalProperties: false
34+
allOf:
35+
- $ref: hwmon-common.yaml#
36+
37+
unevaluatedProperties: false
3538

3639
examples:
3740
- |

Documentation/devicetree/bindings/hwmon/lltc,ltc4151.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ required:
2525
- compatible
2626
- reg
2727

28-
additionalProperties: false
28+
allOf:
29+
- $ref: hwmon-common.yaml#
30+
31+
unevaluatedProperties: false
2932

3033
examples:
3134
- |

Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ required:
5050
- compatible
5151
- reg
5252

53-
additionalProperties: false
53+
allOf:
54+
- $ref: /schemas/hwmon/hwmon-common.yaml#
55+
56+
unevaluatedProperties: false
5457

5558
examples:
5659
- |

Documentation/devicetree/bindings/hwmon/ti,tmp513.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ required:
7272
- compatible
7373
- reg
7474

75-
additionalProperties: false
75+
allOf:
76+
- $ref: hwmon-common.yaml#
77+
78+
unevaluatedProperties: false
7679

7780
examples:
7881
- |

Documentation/devicetree/bindings/hwmon/ti,tps23861.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ required:
3535
- compatible
3636
- reg
3737

38-
additionalProperties: false
38+
allOf:
39+
- $ref: hwmon-common.yaml#
40+
41+
unevaluatedProperties: false
3942

4043
examples:
4144
- |

0 commit comments

Comments
 (0)