Skip to content

Commit f021544

Browse files
passgatAlexandre Torgue
authored andcommitted
ARM: dts: stm32: add touchscreen on stm32f746-disco board
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>
1 parent 0637e66 commit f021544

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

arch/arm/boot/dts/st/stm32f746-disco.dts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@
4343
/dts-v1/;
4444
#include "stm32f746.dtsi"
4545
#include "stm32f746-pinctrl.dtsi"
46-
#include <dt-bindings/input/input.h>
4746
#include <dt-bindings/gpio/gpio.h>
47+
#include <dt-bindings/input/input.h>
48+
#include <dt-bindings/interrupt-controller/irq.h>
4849

4950
/ {
5051
model = "STMicroelectronics STM32F746-DISCO board";
@@ -99,6 +100,22 @@
99100
status = "okay";
100101
};
101102

103+
&i2c3 {
104+
pinctrl-0 = <&i2c3_pins_a>;
105+
pinctrl-names = "default";
106+
clock-frequency = <400000>;
107+
status = "okay";
108+
109+
touchscreen@38 {
110+
compatible = "edt,edt-ft5306";
111+
reg = <0x38>;
112+
interrupt-parent = <&gpioi>;
113+
interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
114+
touchscreen-size-x = <480>;
115+
touchscreen-size-y = <272>;
116+
};
117+
};
118+
102119
&sdio1 {
103120
status = "okay";
104121
vmmc-supply = <&mmc_vcard>;

0 commit comments

Comments
 (0)