Skip to content

Commit c9ba87f

Browse files
markussmSTdanieldegrasse
authored andcommitted
board: st: stm32u5g9j-dk2: Add touchscreen driver
Use GT911 touchscreen driver on STM32U5G9J-DK2 Signed-off-by: Mathias Markussen <[email protected]>
1 parent 00733ce commit c9ba87f

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

boards/st/stm32u5g9j_dk2/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Default Zephyr Peripheral Mapping:
5353
- LD3 : PD4
5454
- User Button: PC13
5555
- I2C1 SCL/SDA : PG14/PG13
56-
- I2C2 SCL/SDA : PB10/PB11
56+
- I2C2 SCL/SDA : PF1/PF0
5757
- SPI1 SCK/MISO/MOSI/CS : PA5/PA6/PB5/PA3
5858
- ADC1 : channel5 PA0, channel12 PA7
5959
- ADC4 : channel4 PC3

boards/st/stm32u5g9j_dk2/stm32u5g9j_dk2.dts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
zephyr,flash = &flash0;
2222
zephyr,code-partition = &slot0_partition;
2323
zephyr,display = &ltdc;
24+
zephyr,touch = &gt911;
2425
};
2526

2627
leds {
@@ -175,10 +176,17 @@
175176
};
176177

177178
&i2c2 {
178-
pinctrl-0 = <&i2c2_scl_pb10 &i2c2_sda_pb11>;
179179
pinctrl-names = "default";
180+
pinctrl-0 = <&i2c2_scl_pf1 &i2c2_sda_pf0>;
180181
status = "okay";
181-
clock-frequency = <I2C_BITRATE_STANDARD>;
182+
clock-frequency = <I2C_BITRATE_FAST>;
183+
184+
gt911: gt911@5d {
185+
compatible = "goodix,gt911";
186+
reg = <0x5d>;
187+
irq-gpios = <&gpioe 5 GPIO_ACTIVE_HIGH>;
188+
reset-gpios = <&gpiod 2 GPIO_ACTIVE_LOW>;
189+
};
182190
};
183191

184192
&spi1 {

0 commit comments

Comments
 (0)