board: st: stm32u5g9j-dk2: Add touchscreen driver

Use GT911 touchscreen driver on STM32U5G9J-DK2

Signed-off-by: Mathias Markussen <mathias.markussen@st.com>
This commit is contained in:
Mathias Markussen 2025-06-10 15:10:10 +02:00 committed by Daniel DeGrasse
commit c9ba87f47e
2 changed files with 11 additions and 3 deletions

View file

@ -53,7 +53,7 @@ Default Zephyr Peripheral Mapping:
- LD3 : PD4
- User Button: PC13
- I2C1 SCL/SDA : PG14/PG13
- I2C2 SCL/SDA : PB10/PB11
- I2C2 SCL/SDA : PF1/PF0
- SPI1 SCK/MISO/MOSI/CS : PA5/PA6/PB5/PA3
- ADC1 : channel5 PA0, channel12 PA7
- ADC4 : channel4 PC3

View file

@ -21,6 +21,7 @@
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,display = &ltdc;
zephyr,touch = &gt911;
};
leds {
@ -175,10 +176,17 @@
};
&i2c2 {
pinctrl-0 = <&i2c2_scl_pb10 &i2c2_sda_pb11>;
pinctrl-names = "default";
pinctrl-0 = <&i2c2_scl_pf1 &i2c2_sda_pf0>;
status = "okay";
clock-frequency = <I2C_BITRATE_STANDARD>;
clock-frequency = <I2C_BITRATE_FAST>;
gt911: gt911@5d {
compatible = "goodix,gt911";
reg = <0x5d>;
irq-gpios = <&gpioe 5 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpiod 2 GPIO_ACTIVE_LOW>;
};
};
&spi1 {