Skip to content

Commit f8f70c2

Browse files
danieldegrassefabiobaltieri
authored andcommitted
boards: shields: lcd_par_s035: enable reset gpio within input module
The LCD_PAR_S035 display module shares the reset pin between the display module and the touchscreen controller. The touchscreen controller needs the reset pin to be toggled low during boot in order to select the expected I2C address. However, the reset sequence must occur before the display is initialized. To enable this, set a custom INPUT driver init priority when using this display module, so that INPUT drivers start after MIPI DBI drivers but before DISPLAY drivers. Since the reset sequence is now operating as expected, we no longer need to use the alt-addr probing method. This method was previously only working correctly because boards using this display were configuring the display INT pin using the pin control API prior to resetting the display, so when the display was reset it would select the alt-addr I2C address. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 22a922f commit f8f70c2

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

boards/shields/lcd_par_s035/Kconfig.defconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,13 @@ config INPUT_GT911_INTERRUPT
2828

2929
endif # LVGL
3030

31+
if INPUT
32+
33+
# GT911 driver drives reset pin low, so it needs to initialize before
34+
# the display driver but after the MIPI DBI driver
35+
config INPUT_INIT_PRIORITY
36+
default 82
37+
38+
endif # INPUT
39+
3140
endif # SHIELD_LCD_PAR_S035

boards/shields/lcd_par_s035/lcd_par_s035_8080.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
gt911_lcd_par_s035: gt911-lcd_par_s035@5d {
2525
compatible = "goodix,gt911";
2626
reg = <0x5d>;
27-
alt-addr = <0x14>;
2827
irq-gpios = <&nxp_lcd_8080_connector 9 GPIO_ACTIVE_HIGH>;
28+
reset-gpios = <&nxp_lcd_8080_connector 11 GPIO_ACTIVE_LOW>;
2929
};
3030
};
3131

0 commit comments

Comments
 (0)