Skip to contentSkip to conversation

ARM: dts: stm32: add focaltech touchscreen on stm32mp157c-dk2 board

PATCH In review Yannick Fertré 2 participants 3 messages Sep 30, 2019 – Oct 4, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: stm32: add focaltech touchscreen on stm32mp157c-dk2 board

Enable focaltech ft6236 touchscreen on STM32MP157C-DK2 board. This device supports 2 different addresses (0x2a and 0x38) depending on the display board version (MB1407).

---
 arch/arm/boot/dts/stm32mp157c-dk2.dts | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
arch/arm/boot/dts/stm32mp157c-dk2.dts +23 -0
index 20ea601..527bb75 100644
@@ -61,6 +61,29 @@
 	};
 };
 
+&i2c1 {
+	touchscreen@2a {
+		compatible = "focaltech,ft6236";
+		reg = <0x2a>;
+		interrupts = <2 2>;
+		interrupt-parent = <&gpiof>;
+		interrupt-controller;
+		touchscreen-size-x = <480>;
+		touchscreen-size-y = <800>;
+		status = "okay";
+	};
+	touchscreen@38 {
+		compatible = "focaltech,ft6236";
+		reg = <0x38>;
+		interrupts = <2 2>;
+		interrupt-parent = <&gpiof>;
+		interrupt-controller;
+		touchscreen-size-x = <480>;
+		touchscreen-size-y = <800>;
+		status = "okay";
+	};
+};
+
 &ltdc {
 	status = "okay";
 
Signature · 1 line
2.7.4
#1 lore raw

Hi Yannick

Quoted 29 lines · Yannick Fertré

Enable focaltech ft6236 touchscreen on STM32MP157C-DK2 board. This device supports 2 different addresses (0x2a and 0x38) depending on the display board version (MB1407).

---
  arch/arm/boot/dts/stm32mp157c-dk2.dts | 23 +++++++++++++++++++++++
  1 file changed, 23 insertions(+)
arch/arm/boot/dts/stm32mp157c-dk2.dts +12 -0
index 20ea601..527bb75 100644
@@ -61,6 +61,29 @@
  	};
  };
 
+&i2c1 {
+	touchscreen@2a {
+		compatible = "focaltech,ft6236";
+		reg = <0x2a>;
+		interrupts = <2 2>;
+		interrupt-parent = <&gpiof>;
+		interrupt-controller;
+		touchscreen-size-x = <480>;
+		touchscreen-size-y = <800>;
+		status = "okay";
+	};
+	touchscreen@38 {

arch/arm/boot/dts/stm32mp157c-dk2.dts line 85

Quoted 10 lines
arch/arm/boot/dts/stm32mp157c-dk2.dts +10 -0
+		compatible = "focaltech,ft6236";
+		reg = <0x38>;
+		interrupts = <2 2>;
+		interrupt-parent = <&gpiof>;
+		interrupt-controller;
+		touchscreen-size-x = <480>;
+		touchscreen-size-y = <800>;
+		status = "okay";
+	};
+};

I'm not confident by this duplication. We should only support the latest revision of the MB1407. I understand the need but my fear is to duplicate this node each time we have a new revision (and imagine if we do that for all i2c devices).

regards
alex

Quoted 4 lines
arch/arm/boot/dts/stm32mp157c-dk2.dts +0 -0
  &ltdc {
  	status = "okay";
 
#2 lore raw

Hi Alex,

ok, i'll push only the dt patch link to the last version of driver touchscreen on display board MB1407.

BR

Yannick Fertré

Quoted 48 lines · Alexandre Torgue

Hi Yannick

Quoted 29 lines · Yannick Fertré

Enable focaltech ft6236 touchscreen on STM32MP157C-DK2 board. This device supports 2 different addresses (0x2a and 0x38) depending on the display  board version (MB1407).

---
  arch/arm/boot/dts/stm32mp157c-dk2.dts | 23 +++++++++++++++++++++++

  1 file changed, 23 insertions(+)
arch/arm/boot/dts/stm32mp157c-dk2.dts +11 -0
index 20ea601..527bb75 100644
@@ -61,6 +61,29 @@
       };
   };
   +&i2c1 {
+    touchscreen@2a {
+        compatible = "focaltech,ft6236";
+        reg = <0x2a>;
+        interrupts = <2 2>;
+        interrupt-parent = <&gpiof>;
+        interrupt-controller;
+        touchscreen-size-x = <480>;
+        touchscreen-size-y = <800>;
+        status = "okay";
+    };
+    touchscreen@38 {

arch/arm/boot/dts/stm32mp157c-dk2.dts line 84

Quoted 10 lines
arch/arm/boot/dts/stm32mp157c-dk2.dts +10 -0
+        compatible = "focaltech,ft6236";
+        reg = <0x38>;
+        interrupts = <2 2>;
+        interrupt-parent = <&gpiof>;
+        interrupt-controller;
+        touchscreen-size-x = <480>;
+        touchscreen-size-y = <800>;
+        status = "okay";
+    };
+};

I'm not confident by this duplication. We should only support the latest revision of the MB1407. I understand the need but my fear is to duplicate this node each time we have a new revision (and imagine if we do that for all i2c devices).

Quoted 6 lines

regards
alex

Quoted 2 lines
arch/arm/boot/dts/stm32mp157c-dk2.dts +0 -0
   &ltdc {
       status = "okay"; 

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel