Skip to content

Commit 6ccdb97

Browse files
committed
boards: st: stm32h7s78_dk: add support for touch input
Add support for the touch input controller on the STM32H7S78-DK: - Enable I2C1 on the board - Add device tree node for the touch controller in the display panel Signed-off-by: Titouan Christophe <[email protected]>
1 parent c9d3a01 commit 6ccdb97

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

boards/st/stm32h7s78_dk/Kconfig.defconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,11 @@ config STM32_LTDC_FB_USE_SHARED_MULTI_HEAP
3131
default y
3232
endif # DISPLAY
3333

34+
if INPUT
35+
36+
config INPUT_GT911_INTERRUPT
37+
default y
38+
39+
endif # INPUT
40+
3441
endif # BOARD_STM32H7S78_DK

boards/st/stm32h7s78_dk/doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ Default Zephyr Peripheral Mapping:
179179
- ADC1 channel 6 input : PF12
180180
- USB OTG FS DM/DP : PM12/PM11
181181
- XSPI1 NCS/DQS0/DQS1/CLK/IO: PO0/PO2/PO3/PO4/PP0..15
182+
- I2C1 SCL/SDA: PB6/PB9
182183

183184
System Clock
184185
------------

boards/st/stm32h7s78_dk/stm32h7s78_dk.dts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
zephyr,flash = &flash0;
2222
zephyr,sram = &sram0;
2323
zephyr,display = &ltdc;
24+
zephyr,touch = &display_ctp;
2425
};
2526

2627
psram: memory@90000000 {
@@ -202,6 +203,14 @@
202203
&i2c1 {
203204
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb9>;
204205
pinctrl-names = "default";
206+
status = "okay";
207+
208+
display_ctp: gt911@5d {
209+
compatible = "goodix,gt911";
210+
reg = <0x5d>;
211+
irq-gpios = <&gpioe 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
212+
status = "okay";
213+
};
205214
};
206215

207216
&xspi1 {

0 commit comments

Comments
 (0)