[PATCH 2/2] dt-bindings: pwm: rockchip: add RK3506 and RK3576 PWM

From: ZhuXiangyu

Date: Sat Nov 21 2026 - 02:00:38 EST


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.

Signed-off-by: ZhuXiangyu <1194781887@xxxxxx>
---
.../devicetree/bindings/pwm/pwm-rockchip.yaml | 54 +++++++++++++++----
1 file changed, 45 insertions(+), 9 deletions(-)

diff --git a/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml b/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml
index c8cdfb72..ea6622d9 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml
+++ b/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml
@@ -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

--
2.47.3