dt-bindings: add document for rk3399-vop
[firefly-linux-kernel-4.4.55.git] / Documentation / devicetree / bindings / pwm / rockchip-pwm.txt
1 Rockchip PWM controller
2
3 Required properties:
4 - compatible: should be "rockchip,<name>-pwm"
5 - reg: physical base address and length of the controller's registers
6 - #pwm-cells: should be 2.  The first cell specifies the per-chip index
7   of the PWM to use and the second cell is the period in nanoseconds.
8 - pinctrl-names: must contain a "default" entry.
9 - pinctrl-0: the pincontrol settings to configurethe.
10 - clocks: phandle to the PWM source clock
11 - clock-names: list of clock names sorted in the same order as the clocks.
12 - status: for device state control (enabled/disabled).
13
14 Example:
15
16 pwm1: pwm@53fb4000 {
17         #pwm-cells = <2>;
18         compatible = "fsl,imx53-pwm", "fsl,imx27-pwm";
19         reg = <0x53fb4000 0x4000>;
20         interrupts = <61>;
21 };
22 pwm0: pwm@ff680000 {
23         compatible = "rockchip,rk-pwm";                                                                                                                                    
24         reg = <0xff680000 0x10>;                                                                                                                                           
25         #pwm-cells = <2>;                                                                                                                                                  
26         pinctrl-names = "default";                                                                                                                                         
27         pinctrl-0 = <&pwm0_pin>;                                                                                                                                           
28         clocks = <&clk_gates11 11>;                                                                                                                                        
29         clock-names = "pclk_pwm";                                                                                                                                          
30         status = "disabled";                                                                                                                                               
31 };