Skip to contentSkip to conversation

ARM: dts: am437x-gp-evm: Add wakeup interrupt source for pixcir_i2c_ts

PATCH In review Vignesh R 2 participants 2 messages Oct 14, 2015 – Oct 20, 2015 Device tree bindings

lore
Share & tools
lore

Vignesh R

author
#0 lore raw

PATCH v2 1/1 ARM: dts: am437x-gp-evm: Add wakeup interrupt source for pixcir_i2c_ts

On am437x-gp-evm, pixcir_i2c_ts can wakeup the system from low power state via pinctrl and IO daisy chain using generic wakeirq framework. With commit 3fffd1283927 ("i2c: allow specifying separate wakeup interrupt in device tree") i2c core allows optional wakeirq to be specified via device tree. Add wakeup irq entry to enable pixcir_i2c_ts to wake the system from low power state.

---

Since v1:
- correct interrupt flag.
- add comment wrt wakeup interrupt.

 arch/arm/boot/dts/am437x-gp-evm.dts | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm/boot/dts/am437x-gp-evm.dts +9 -0
index 22038f21f228..9c324b5f09ac 100644
@@ -581,8 +581,17 @@
 
 		attb-gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
 
+		/*
+		 * 0x264 represents the offset of padconf register of
+		 * gpio3_22 from am43xx_pinmux base.
+		 */
+		interrupts-extended = <&gpio3 22 IRQ_TYPE_NONE>,
+				      <&am43xx_pinmux 0x264>;
+		interrupt-names = "tsc", "wakeup";
+
 		touchscreen-size-x = <1024>;
 		touchscreen-size-y = <600>;
+		wakeup-source;
 	};
 
 	ov2659 at 30 {
Signature · 1 line
2.6.1
#1 lore raw
Quoted 6 lines · Vignesh R

On am437x-gp-evm, pixcir_i2c_ts can wakeup the system from low power state via pinctrl and IO daisy chain using generic wakeirq framework. With commit 3fffd1283927 ("i2c: allow specifying separate wakeup interrupt in device tree") i2c core allows optional wakeirq to be specified via device tree. Add wakeup irq entry to enable pixcir_i2c_ts to wake the system from low power state.

Applying into omap-for-v4.4/dt thanks.

Tony