Skip to content

Commit cadfc14

Browse files
committed
boards: st: stm32mp135f_dk: add touchscreen and lvgl pointer
STM32MP135F_DK board embeds a LCD screen with touchscreen driven by I2C5. GT911 touchscreen already have driver support in Zephyr so just add necessary nodes here. Signed-off-by: Erwan SZYMANSKI <erwan.szymanski@st.com>
1 parent 354a63f commit cadfc14

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

boards/st/stm32mp135f_dk/stm32mp135f_dk.dts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
zephyr,console = &uart4;
2424
zephyr,shell-uart = &uart4;
2525
zephyr,display = &ltdc;
26+
zephyr,touch = &gt911;
2627
};
2728

2829
gpio_keys {
@@ -59,6 +60,11 @@
5960
};
6061
};
6162

63+
lvgl_pointer {
64+
compatible = "zephyr,lvgl-pointer-input";
65+
input = <&gt911>;
66+
};
67+
6268
aliases {
6369
led0 = &blue_led_1;
6470
led1 = &red_led_2;
@@ -181,6 +187,13 @@ csi_i2c: &i2c5 {
181187
};
182188
};
183189
};
190+
191+
gt911: gt911@5d {
192+
compatible = "goodix,gt911";
193+
reg = <0x5d>;
194+
reset-gpios = <&gpioh 2 GPIO_ACTIVE_LOW>;
195+
irq-gpios = <&gpiof 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
196+
};
184197
};
185198

186199
csi_interface: &dcmipp {

0 commit comments

Comments
 (0)