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