Skip to content

Conversation

titouanc
Copy link
Contributor

@titouanc titouanc commented Oct 8, 2025

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

Tested with samples/subsys/input/draw_touch_events

Copy link
Contributor

@etienne-lms etienne-lms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since I2C1 is now default enabled, could you add the I2C1 mapping info into thee board doc (.../doc/index.rst)?

 Default Zephyr Peripheral Mapping:
 ----------------------------------
 
 - USART_4 TX/RX : PD1/PD0 (VCP)
 (...)
 - XSPI1 NCS/DQS0/DQS1/CLK/IO: PO0/PO2/PO3/PO4/PP0..15
+- I2C1 SCL/SDA: PB6/PB9

CI build failure seems related to b1d6252:

/__w/zephyr/zephyr/samples/subsys/usb/midi/src/main.c:49:16: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
   49 |         .dev = midi,
      |                ^~~~

Comment on lines 34 to 39
if INPUT
config INPUT_GT911_INTERRUPT
default y
endif # INPUT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually prefer with empty lines after if / before endif:

if INPUT

config INPUT_GT911_INTERRUPT
	default y

endif # INPUT


display_ctp: gt911@5d {
compatible = "goodix,gt911";
status = "okay";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer status last among the node properties:

	display_ctp: gt911@5d {
		compatible = "goodix,gt911";
		reg = <0x5d>;
		irq-gpios = <&gpioe 3 GPIO_ACTIVE_HIGH>;
		status = "okay";
	};

compatible = "goodix,gt911";
status = "okay";
reg = <0x5d>;
irq-gpios = <&gpioe 3 GPIO_ACTIVE_HIGH>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs GPIO_PULL_DOWN?

@titouanc
Copy link
Contributor Author

titouanc commented Oct 8, 2025

Thanks for your initial review @etienne-lms !

I just rebased on top of the latest main, and applied your suggestions:

  • Add entry in the board's documentation about I2C1 pins assignment
  • Add empty lines in if/endif block within the defconfig
  • Add GPIO_PULL_DOWN attribute to the irq-gpio
  • Move status = "okay" to the end of dt properties

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]>
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants