dt-bindings: hwmon: reference common hwmon schema
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 24 Feb 2024 10:14:54 +0000 (11:14 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 25 Feb 2024 20:37:47 +0000 (12:37 -0800)
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>
Documentation/devicetree/bindings/hwmon/adi,adm1177.yaml
Documentation/devicetree/bindings/hwmon/adi,ltc2945.yaml
Documentation/devicetree/bindings/hwmon/lltc,ltc4151.yaml
Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml
Documentation/devicetree/bindings/hwmon/ti,tmp513.yaml
Documentation/devicetree/bindings/hwmon/ti,tps23861.yaml

index 2e45364d05438d5af775818fdb4014aee7b26300..be7e9e91a3a8c39a270a761655154639bc75a3fb 100644 (file)
@@ -46,7 +46,10 @@ required:
   - compatible
   - reg
 
-additionalProperties: false
+allOf:
+  - $ref: hwmon-common.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |
index 5cb66e97e816c6a4ca832013efaa2e3b874e4d22..6401b0a9aff4d2d074b0ac6befd463eab5b3e515 100644 (file)
@@ -31,7 +31,10 @@ required:
   - compatible
   - reg
 
-additionalProperties: false
+allOf:
+  - $ref: hwmon-common.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |
index e62aff670478c475a87fc649c83f6ea7c49c382e..8f0095bb7f6eb237daaa0d5585d84d92225b276b 100644 (file)
@@ -25,7 +25,10 @@ required:
   - compatible
   - reg
 
-additionalProperties: false
+allOf:
+  - $ref: hwmon-common.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |
index 4373e9c86e545de2b12a67538f6e7e11fdb98588..a20f140dc79a66e83bcb2abf1cd4742aad98b27d 100644 (file)
@@ -50,7 +50,10 @@ required:
   - compatible
   - reg
 
-additionalProperties: false
+allOf:
+  - $ref: /schemas/hwmon/hwmon-common.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |
index cdd1489e0c54c1464ceb8ab2cb6fbfa6e4c73615..227858e7605876ef4a4ee4dc08f3fb95f2792756 100644 (file)
@@ -72,7 +72,10 @@ required:
   - compatible
   - reg
 
-additionalProperties: false
+allOf:
+  - $ref: hwmon-common.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |
index ebc8d466c1aaba7cacea0ce6d4458290a8605ce7..f58248c29e22ccadf3292af44b4ad65cea9af41e 100644 (file)
@@ -35,7 +35,10 @@ required:
   - compatible
   - reg
 
-additionalProperties: false
+allOf:
+  - $ref: hwmon-common.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |