Skip to contentSkip to conversation

dt-bindings: pwm: rockchip: add RK3506 and RK3576 PWM

PATCH In review ZhuXiangyu 3 participants 3 messages Nov 21 – Nov 24 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: pwm: rockchip: add RK3506 and RK3576 PWM

Document the PWM v4 controllers found on RK3506 and RK3576. They use the pwm/pclk clocks and may additionally provide the osc and rc clocks used by the extended features.

---
 .../devicetree/bindings/pwm/pwm-rockchip.yaml | 54 +++++++++++++++----
 1 file changed, 45 insertions(+), 9 deletions(-)
Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml +45 -9
index c8cdfb72..ea6622d9 100644
@@ -15,6 +15,8 @@ properties:
       - const: rockchip,rk2928-pwm
       - const: rockchip,rk3288-pwm
       - const: rockchip,rk3328-pwm
+      - const: rockchip,rk3506-pwm
+      - const: rockchip,rk3576-pwm
       - const: rockchip,vop-pwm
       - items:
           - const: rockchip,rk3036-pwm
@@ -42,10 +44,16 @@ properties:
 
   clocks:
     minItems: 1
-    maxItems: 2
+    maxItems: 4
 
   clock-names:
-    maxItems: 2
+    minItems: 1
+    maxItems: 4
+    items:
+      - const: pwm
+      - const: pclk
+      - const: osc
+      - const: rc
 
   "#pwm-cells":
     enum: [2, 3]
@@ -66,25 +74,50 @@ allOf:
           contains:
             enum:
               - rockchip,rk3328-pwm
+              - rockchip,rk3506-pwm
+              - rockchip,rk3576-pwm
               - rockchip,rv1108-pwm
 
     then:
       properties:
         clocks:
-          items:
-            - description: Used to derive the functional clock for the device.
-            - description: Used as the APB bus clock.
+          minItems: 2
 
         clock-names:
-          items:
-            - const: pwm
-            - const: pclk
+          minItems: 2
 
       required:
         - clocks
         - clock-names
 
-    else:
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - rockchip,rk3328-pwm
+              - rockchip,rv1108-pwm
+
+    then:
+      properties:
+        clocks:
+          maxItems: 2
+
+        clock-names:
+          maxItems: 2
+
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              enum:
+                - rockchip,rk3328-pwm
+                - rockchip,rk3506-pwm
+                - rockchip,rk3576-pwm
+                - rockchip,rv1108-pwm
+
+    then:
       properties:
         clocks:
           maxItems: 1
@@ -92,6 +125,9 @@ allOf:
             Used both to derive the functional clock
             for the device and as the bus clock.
 
+        clock-names:
+          maxItems: 1
+
       required:
         - clocks
 
Signature · 1 line
2.47.3
maintainer
#2 lore raw

Am Samstag, 21. November 2026, 07:59:36 Mitteleuropäische Normalzeit schrieb ZhuXiangyu:

Quoted 5 lines

Document the PWM v4 controllers found on RK3506 and RK3576. They use the pwm/pclk clocks and may additionally provide the osc and rc clocks used by the extended features.

please check mailing lists, before submitting duplicate work. There is already a better (yet unfinished implementation pending, that also incorporates the counter input).

Especially as this is a new IP block - including a different hardware structure, this should most likely not live inside the previous binding.

All the process issues, Krzysztof pointed out in another thread still apply too.

Heiko

#3 lore raw
In reply to ZhuXiangyu
Quoted 8 lines · ZhuXiangyu

Document the PWM v4 controllers found on RK3506 and RK3576. They use the pwm/pclk clocks and may additionally provide the osc and rc clocks used by the extended features.

---
 .../devicetree/bindings/pwm/pwm-rockchip.yaml | 54 +++++++++++++++----
 1 file changed, 45 insertions(+), 9 deletions(-)

I will mark everything you as changes requested. This is all half broken, b4 review cannot even fetch for review.

If you keep sending such poor submissions with that speed, I will be moving everything from you to /dev/null.

Best regards,
Krzysztof