aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSekhar Nori2016-03-04 11:37:46 -0600
committerVishal Mahaveer2016-03-04 11:41:41 -0600
commitcb0be57bb221063a21ec56c99888dc27c1da5872 (patch)
treee79028d45e7306c47fb90d8e71c73f0f12236df6
parentd8d0e6c2bb7e3d14367e06933a69aaf4f0ba6827 (diff)
downloadkernel-video-cb0be57bb221063a21ec56c99888dc27c1da5872.tar.gz
kernel-video-cb0be57bb221063a21ec56c99888dc27c1da5872.tar.xz
kernel-video-cb0be57bb221063a21ec56c99888dc27c1da5872.zip
ARM: dts: dra72-evm: fix touchscreen on OSD LCD
dra7x-evm-lcd-osd.dtsi has touchscreen interrupt set to line #2 of GPIO1. However, this is incorrect for DRA72 EVM. Since the irq line differs between different boards, move it from the generic OSD LCD device-tree include file to board specific .dts file. This fixes touchscreen working on DRA72x EVM. Change-Id: I15f0ab58e8d343876ba73ff768af9dc033f2a5ef Signed-off-by: Sekhar Nori <nsekhar@ti.com> [Back ported from LCPD Kernel 4.1] Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
-rw-r--r--arch/arm/boot/dts/dra7-evm-lcd-osd.dts5
-rw-r--r--arch/arm/boot/dts/dra72-evm-lcd-osd.dts5
-rw-r--r--arch/arm/boot/dts/dra7x-evm-lcd-osd.dtsi5
3 files changed, 11 insertions, 4 deletions
diff --git a/arch/arm/boot/dts/dra7-evm-lcd-osd.dts b/arch/arm/boot/dts/dra7-evm-lcd-osd.dts
index db5fc4ab88f..00610912ff0 100644
--- a/arch/arm/boot/dts/dra7-evm-lcd-osd.dts
+++ b/arch/arm/boot/dts/dra7-evm-lcd-osd.dts
@@ -12,3 +12,8 @@
12&ldc3001 { 12&ldc3001 {
13 status = "disabled"; 13 status = "disabled";
14}; 14};
15
16&touchscreen {
17 interrupt-parent = <&gpio1>;
18 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
19};
diff --git a/arch/arm/boot/dts/dra72-evm-lcd-osd.dts b/arch/arm/boot/dts/dra72-evm-lcd-osd.dts
index fbf1e96ca9b..2b8082503a8 100644
--- a/arch/arm/boot/dts/dra72-evm-lcd-osd.dts
+++ b/arch/arm/boot/dts/dra72-evm-lcd-osd.dts
@@ -12,3 +12,8 @@
12&ldc3001 { 12&ldc3001 {
13 status = "disabled"; 13 status = "disabled";
14}; 14};
15
16&touchscreen {
17 interrupt-parent = <&gpio1>;
18 interrupts = <15 IRQ_TYPE_EDGE_FALLING>;
19};
diff --git a/arch/arm/boot/dts/dra7x-evm-lcd-osd.dtsi b/arch/arm/boot/dts/dra7x-evm-lcd-osd.dtsi
index 20200111e74..01388e0b15d 100644
--- a/arch/arm/boot/dts/dra7x-evm-lcd-osd.dtsi
+++ b/arch/arm/boot/dts/dra7x-evm-lcd-osd.dtsi
@@ -35,15 +35,12 @@
35 enable-gpios = <&pcf_lcd 13 GPIO_ACTIVE_LOW>; /* P15, CON_LCD_PWR_DN */ 35 enable-gpios = <&pcf_lcd 13 GPIO_ACTIVE_LOW>; /* P15, CON_LCD_PWR_DN */
36 }; 36 };
37 37
38 edt-ft5506@38 { 38 touchscreen: edt-ft5506@38 {
39 status = "okay"; 39 status = "okay";
40 compatible = "edt,edt-ft5506", "edt,edt-ft5x06"; 40 compatible = "edt,edt-ft5506", "edt,edt-ft5x06";
41 41
42 reg = <0x38>; 42 reg = <0x38>;
43 43
44 interrupt-parent = <&gpio1>;
45 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
46
47 /* GPIO line is inverted before going to touch panel */ 44 /* GPIO line is inverted before going to touch panel */
48 enable-gpios = <&pcf_lcd_tc3587x 5 GPIO_ACTIVE_HIGH>; 45 enable-gpios = <&pcf_lcd_tc3587x 5 GPIO_ACTIVE_HIGH>;
49 46