xref: /freebsd/sys/contrib/device-tree/Bindings/pwm/pwm-rockchip.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotRockchip PWM controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot - compatible: should be "rockchip,<name>-pwm"
5*c66ec88fSEmmanuel Vadot   "rockchip,rk2928-pwm": found on RK29XX,RK3066 and RK3188 SoCs
6*c66ec88fSEmmanuel Vadot   "rockchip,rk3288-pwm": found on RK3288 SOC
7*c66ec88fSEmmanuel Vadot   "rockchip,rv1108-pwm", "rockchip,rk3288-pwm": found on RV1108 SoC
8*c66ec88fSEmmanuel Vadot   "rockchip,vop-pwm": found integrated in VOP on RK3288 SoC
9*c66ec88fSEmmanuel Vadot - reg: physical base address and length of the controller's registers
10*c66ec88fSEmmanuel Vadot - clocks: See ../clock/clock-bindings.txt
11*c66ec88fSEmmanuel Vadot   - For older hardware (rk2928, rk3066, rk3188, rk3228, rk3288, rk3399):
12*c66ec88fSEmmanuel Vadot     - There is one clock that's used both to derive the functional clock
13*c66ec88fSEmmanuel Vadot       for the device and as the bus clock.
14*c66ec88fSEmmanuel Vadot   - For newer hardware (rk3328 and future socs): specified by name
15*c66ec88fSEmmanuel Vadot     - "pwm": This is used to derive the functional clock.
16*c66ec88fSEmmanuel Vadot     - "pclk": This is the APB bus clock.
17*c66ec88fSEmmanuel Vadot - #pwm-cells: must be 2 (rk2928) or 3 (rk3288). See pwm.yaml in this directory
18*c66ec88fSEmmanuel Vadot   for a description of the cell format.
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel VadotExample:
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel Vadot	pwm0: pwm@20030000 {
23*c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk2928-pwm";
24*c66ec88fSEmmanuel Vadot		reg = <0x20030000 0x10>;
25*c66ec88fSEmmanuel Vadot		clocks = <&cru PCLK_PWM01>;
26*c66ec88fSEmmanuel Vadot		#pwm-cells = <2>;
27*c66ec88fSEmmanuel Vadot	};
28