pwm: rockchip: add pwm supported for rk3228
authorDavid Wu <wdc@rock-chips.com>
Thu, 22 Oct 2015 08:38:25 +0000 (16:38 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 26 Oct 2015 03:11:32 +0000 (11:11 +0800)
Change-Id: I30d816d4bca2fb532b009505947d1465732a2f07
Signed-off-by: David Wu <wdc@rock-chips.com>
arch/arm/boot/dts/rk3228.dtsi

index cdee2e5221e5f01d23c6d78fb5003a090d814505..7b8a842cd2b09151115b6c00762edacd1a696816 100644 (file)
                compatible = "rockchip,screen";
        };
 
+       pwm0: pwm@110b0000 {
+               compatible = "rockchip,rk-pwm";
+               reg = <0x110b0000 0x10>;
+               #pwm-cells = <2>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pwm0_pin>;
+               clocks = <&clk_gates9 7>;
+               clock-names = "pclk_pwm";
+               status = "disabled";
+       };
+
+       pwm1: pwm@110b0010 {
+               compatible = "rockchip,rk-pwm";
+               reg = <0x110b0010 0x10>;
+               #pwm-cells = <2>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pwm1_pin>;
+               clocks = <&clk_gates9 7>;
+               clock-names = "pclk_pwm";
+               status = "disabled";
+       };
+
+       pwm2: pwm@110b0020 {
+               compatible = "rockchip,rk-pwm";
+               reg = <0x110b0020 0x10>;
+               #pwm-cells = <2>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pwm2_pin>;
+               clocks = <&clk_gates9 7>;
+               clock-names = "pclk_pwm";
+               status = "disabled";
+       };
+
+       pwm3: pwm@110b0030 {
+               compatible = "rockchip,rk-pwm";
+               reg = <0x110b0030 0x10>;
+               #pwm-cells = <2>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pwmir_pin>;
+               clocks = <&clk_gates9 7>;
+               clock-names = "pclk_pwm";
+               status = "disabled";
+       };
+
        vop: vop@20050000 {
                compatible = "rockchip,rk3228-lcdc";