ARM: dts: rk3288: add the interrupts property for PWM
authorCaesar Wang <wxt@rock-chips.com>
Tue, 1 Sep 2015 08:50:20 +0000 (16:50 +0800)
committerCaesar Wang <wxt@rock-chips.com>
Tue, 1 Sep 2015 10:37:25 +0000 (18:37 +0800)
We are assuming that PWM need use the property, we can support the
SPI interrupts for PWM.

At the moment, we can find the remotectl pwm is needed on box.
We can add the property for all PWMs. AFAIK, the pwm driver don't use it
but the drivers/input/remotectl/rockchip_pwm_remotectl.c

Change-Id: Ia223e6cc0e882477614b555bd09c86fd4bf8dbd7
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
arch/arm/boot/dts/rk3288.dtsi

index ec1620797706cc98d4c77fc37b985c1bf5cdf978..f4f921895f9d7cc933c3d5d586619ff714b1ce3d 100755 (executable)
        vop1pwm: pwm@ff9401a0 {
                compatible = "rockchip,vop-pwm";
                reg = <0xff9401a0 0x10>;
+
+               /* used by driver on remotectl'pwm */
+               interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
                #pwm-cells = <2>;
                pinctrl-names = "default";
                pinctrl-0 = <&vop1_pwm_pin>;
        vop0pwm: pwm@ff9301a0 {
                compatible = "rockchip,vop-pwm";
                reg = <0xff9301a0 0x10>;
+
+               /* used by driver on remotectl'pwm */
+               interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
                #pwm-cells = <2>;
                pinctrl-names = "default";
                pinctrl-0 = <&vop0_pwm_pin>;
        pwm0: pwm@ff680000 {
                compatible = "rockchip,rk-pwm";
                reg = <0xff680000 0x10>;
+
+               /* used by driver on remotectl'pwm */
+               interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
                #pwm-cells = <2>;
                pinctrl-names = "default";
                pinctrl-0 = <&pwm0_pin>;
        pwm1: pwm@ff680010 {
                compatible = "rockchip,rk-pwm";
                reg = <0xff680010 0x10>;
+
+               /* used by driver on remotectl'pwm */
+               interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
                #pwm-cells = <2>;
                pinctrl-names = "default";
                pinctrl-0 = <&pwm1_pin>;
        pwm2: pwm@ff680020 {
                compatible = "rockchip,rk-pwm";
                reg = <0xff680020 0x10>;
+
+               /* used by driver on remotectl'pwm */
+               interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
                #pwm-cells = <2>;
                pinctrl-names = "default";
                pinctrl-0 = <&pwm2_pin>;
        pwm3: pwm@ff680030 {
                compatible = "rockchip,rk-pwm";
                reg = <0xff680030 0x10>;
+
+               /* used by driver on remotectl'pwm */
+               interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
                #pwm-cells = <2>;
                pinctrl-names = "default";
                pinctrl-0 = <&pwm3_pin>;