Skip to contentSkip to conversation

dt-bindings: thermal: rockchip: add RK3506 TSADC

PATCH In review ZhuXiangyu 1 participant 1 message Nov 21 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

ZhuXiangyu

author
#1 lore raw

PATCH 2/2 dt-bindings: thermal: rockchip: add RK3506 TSADC

Document the RK3506 TSADC, which uses the TSADCV13 register layout and requires the TSEN clock in addition to the controller and APB clocks. Like the other newer Rockchip TSADCs it needs the GRF to enable the sensor analog front-end.

---
 .../bindings/thermal/rockchip-thermal.yaml    | 23 ++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml +22 -1
index 9fa5c4c4..f7fa4b60 100644
@@ -20,6 +20,7 @@ properties:
       - rockchip,rk3328-tsadc
       - rockchip,rk3368-tsadc
       - rockchip,rk3399-tsadc
+      - rockchip,rk3506-tsadc
       - rockchip,rk3568-tsadc
       - rockchip,rk3576-tsadc
       - rockchip,rk3588-tsadc
@@ -33,12 +34,14 @@ properties:
 
   clocks:
     minItems: 2
-    maxItems: 2
+    maxItems: 3
 
   clock-names:
+    minItems: 2
     items:
       - const: tsadc
       - const: apb_pclk
+      - const: tsen
 
   nvmem-cells:
     items:
@@ -127,6 +130,7 @@ allOf:
               - rockchip,px30-tsadc
               - rockchip,rk3366-tsadc
               - rockchip,rk3399-tsadc
+              - rockchip,rk3506-tsadc
               - rockchip,rk3568-tsadc
     then:
       required:
@@ -155,6 +159,23 @@ allOf:
     then:
       patternProperties:
         "@[0-9a-f]+$": false
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: rockchip,rk3506-tsadc
+    then:
+      properties:
+        clocks:
+          minItems: 3
+        clock-names:
+          minItems: 3
+    else:
+      properties:
+        clocks:
+          maxItems: 2
+        clock-names:
+          maxItems: 2
 
 unevaluatedProperties: false
 
Signature · 1 line
2.47.3