pwm: rockchip: add individual clocks supported for APB and function
[firefly-linux-kernel-4.4.55.git] / Documentation / devicetree / bindings / pwm / pwm-rockchip.txt
1 Rockchip PWM controller
2
3 Required 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,vop-pwm": found integrated in VOP on RK3288 SoC
8    "rockchip,rk3328-pwm", "rockchip,rk3288-pwm": found on RK3328 SoC
9    "rockchip,rk3399-pwm", "rockchip,rk3288-pwm": found on RK3399 SoC
10  - reg: physical base address and length of the controller's registers
11  - clocks: See ../clock/clock-bindings.txt
12    - For older hardware (rk2928, rk3066, rk3188, rk3228, rk3288, rk3399):
13      - There is one clock that's used both to derive the functional clock
14        for the device and as the bus clock.
15    - For newer hardware (rk3328): specified by name
16      - "pwm": This is used to derive the functional clock.
17      - "pclk": This is the bus clock.
18  - #pwm-cells: must be 2 (rk2928) or 3 (rk3288). See pwm.txt in this directory
19    for a description of the cell format.
20
21 Example:
22
23         pwm0: pwm@20030000 {
24                 compatible = "rockchip,rk2928-pwm";
25                 reg = <0x20030000 0x10>;
26                 clocks = <&cru PCLK_PWM01>;
27                 #pwm-cells = <2>;
28         };