ARM: dts: stm32: add touchscreen on stm32f746-disco board
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Tue, 4 Jul 2023 17:34:07 +0000 (19:34 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Tue, 11 Jul 2023 10:54:26 +0000 (12:54 +0200)
The patch adds support for touchscreen on the stm32f746-disco board.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/st/stm32f746-disco.dts

index c11616ed5fc685394d7f473b7312682a9b25864c..a53da9c3a507836133d6244f897ed1e89b311201 100644 (file)
@@ -43,8 +43,9 @@
 /dts-v1/;
 #include "stm32f746.dtsi"
 #include "stm32f746-pinctrl.dtsi"
-#include <dt-bindings/input/input.h>
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/interrupt-controller/irq.h>
 
 / {
        model = "STMicroelectronics STM32F746-DISCO board";
        status = "okay";
 };
 
+&i2c3 {
+       pinctrl-0 = <&i2c3_pins_a>;
+       pinctrl-names = "default";
+       clock-frequency = <400000>;
+       status = "okay";
+
+       touchscreen@38 {
+               compatible = "edt,edt-ft5306";
+               reg = <0x38>;
+               interrupt-parent = <&gpioi>;
+               interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
+               touchscreen-size-x = <480>;
+               touchscreen-size-y = <272>;
+       };
+};
+
 &sdio1 {
        status = "okay";
        vmmc-supply = <&mmc_vcard>;