Skip to content

Commit

Permalink
ARM: dts: rk3288: add the interrupts property for PWM
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Caesar-github committed Sep 1, 2015
1 parent 6f24014 commit 16b7b28
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions arch/arm/boot/dts/rk3288.dtsi
Expand Up @@ -838,6 +838,9 @@
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>;
Expand All @@ -849,6 +852,9 @@
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>;
Expand All @@ -860,6 +866,9 @@
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>;
Expand All @@ -871,6 +880,9 @@
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>;
Expand All @@ -882,6 +894,9 @@
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>;
Expand All @@ -893,6 +908,9 @@
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>;
Expand Down

0 comments on commit 16b7b28

Please sign in to comment.