dt-bindings: thermal: allow more resets for tsadc node in rockchip-thermal.yaml
authorJohan Jonker <jbx6244@gmail.com>
Thu, 30 Sep 2021 11:05:14 +0000 (13:05 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sat, 16 Oct 2021 22:14:55 +0000 (00:14 +0200)
The tsadc node in rk356x.dtsi has more resets defined then currently
allowed by rockchip-thermal.yaml, so fix that in the documentation.
The driver now uses the devm_reset_control_array_get() function,
so reset-names is no longer required, but keep it for legacy reasons.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210930110517.14323-1-jbx6244@gmail.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml

index b96ea277b5583e6314bcf4aa38befc4512b3f733..3c074706e95f1b0f323f343c215d2e10f5622c60 100644 (file)
@@ -37,11 +37,15 @@ properties:
       - const: apb_pclk
 
   resets:
-    maxItems: 1
+    minItems: 1
+    maxItems: 3
 
   reset-names:
+    minItems: 1
     items:
       - const: tsadc-apb
+      - const: tsadc
+      - const: tsadc-phy
 
   "#thermal-sensor-cells":
     const: 1
@@ -71,7 +75,6 @@ required:
   - clocks
   - clock-names
   - resets
-  - reset-names
   - "#thermal-sensor-cells"
 
 additionalProperties: false