diff mbox series

[v2,1/4] dt-bindings: thermal: allow more resets for tsadc node in rockchip-thermal.yaml

Message ID 20210930110517.14323-1-jbx6244@gmail.com (mailing list archive)
State New, archived
Headers show
Series [v2,1/4] dt-bindings: thermal: allow more resets for tsadc node in rockchip-thermal.yaml | expand

Commit Message

Johan Jonker Sept. 30, 2021, 11:05 a.m. UTC
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>
---

Changed V2:
  Remove deprecated
---
 .../devicetree/bindings/thermal/rockchip-thermal.yaml      | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Comments

Rob Herring (Arm) Oct. 6, 2021, 9:13 p.m. UTC | #1
On Thu, 30 Sep 2021 13:05:14 +0200, Johan Jonker wrote:
> 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>
> ---
> 
> Changed V2:
>   Remove deprecated
> ---
>  .../devicetree/bindings/thermal/rockchip-thermal.yaml      | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 

Reviewed-by: Rob Herring <robh@kernel.org>
Heiko Stuebner Oct. 18, 2021, 6:20 p.m. UTC | #2
On Thu, 30 Sep 2021 13:05:14 +0200, Johan Jonker wrote:
> 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.

Applied, thanks!

Fixed the patch subject to the regular prefixes.

[4/4] arm64: dts: fix resets in tsadc node for rk356x.dtsi
      commit: 5c9e66c6b75a754025c74bde7b7a6c52674d8aa1

Best regards,
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml b/Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml
index b96ea277b..3c074706e 100644
--- a/Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml
+++ b/Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml
@@ -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