-
Notifications
You must be signed in to change notification settings - Fork 8k
boards: st: stm32h7s78_dk: add support for touch input #97175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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,
| ^~~~
if INPUT | ||
config INPUT_GT911_INTERRUPT | ||
default y | ||
endif # INPUT |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs GPIO_PULL_DOWN
?
ab11b53
to
d64c719
Compare
Thanks for your initial review @etienne-lms ! I just rebased on top of the latest main, and applied your suggestions:
|
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]>
d64c719
to
6ccdb97
Compare
|
Add support for the touch input controller on the STM32H7S78-DK:
Tested with
samples/subsys/input/draw_touch_events