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
CHSC6X driver #71073
CHSC6X driver #71073
Conversation
Hi, I opened this PR in order to add the driver for the touch controller on the Seeed Studio Round display ( https://wiki.seeedstudio.com/get_start_round_display/ ), but my final goal is to add the display as a shield in Zephyr. |
Separate PR is ideal, you can either wait or open the shield one already and just point out that this has to go in first, but if you are not in a hurry just do one at a time. |
@nicogou you have few compliance errors and a missing copyright line, you can also run compliance locally with |
b476daf
to
cad2bfb
Compare
I made some changes that should resolve these. |
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.
could you also add an entry for this in tests/drivers/build_all/input/app.overlay
? thanks
d25be07
to
32e1272
Compare
@fabiobaltieri Changes made, tested and pushed |
7566696
to
191bab0
Compare
drivers/input/Kconfig.chsc6x
Outdated
bool "Use out of tree CHSC6X capacitive touch panel driver" | ||
default y | ||
depends on DT_HAS_CHIPSEMI_CHSC6X_ENABLED | ||
select GPIO | ||
select I2C | ||
help | ||
Enable out of tree driver for CHSC6X touch panel. |
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.
bool "Use out of tree CHSC6X capacitive touch panel driver" | |
default y | |
depends on DT_HAS_CHIPSEMI_CHSC6X_ENABLED | |
select GPIO | |
select I2C | |
help | |
Enable out of tree driver for CHSC6X touch panel. | |
bool "Use CHSC6X capacitive touch panel driver" | |
default y | |
depends on DT_HAS_CHIPSEMI_CHSC6X_ENABLED | |
select GPIO | |
select I2C | |
help | |
Enable driver for CHSC6X touch panel. |
drivers/input/input_chsc6x.c
Outdated
/* These events are generated for the LVGL touch implementation. */ | ||
input_report_abs(dev, INPUT_ABS_X, col, false, K_FOREVER); | ||
input_report_abs(dev, INPUT_ABS_Y, row, false, K_FOREVER); | ||
input_report_key(dev, INPUT_BTN_TOUCH, 1, true, K_FOREVER); | ||
} else { | ||
/* This event is generated for the LVGL touch implementation. */ | ||
input_report_key(dev, INPUT_BTN_TOUCH, 0, true, K_FOREVER); |
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.
Not sure I understand the mentions to LVGL?
dts/bindings/input/seeed,chsc6x.yaml
Outdated
The irq signal defaults to active low as produced by the | ||
sensor. The property value should ensure the flags properly | ||
describe the signal that is presented to the driver. |
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.
This might have been copy-pasted from somewhere else but it looks like it's missing an actual description of the property?
See ex. https://docs.zephyrproject.org/latest/build/dts/api/bindings/input/focaltech%2Cft5336.html#dtbinding-focaltech-ft5336 or https://docs.zephyrproject.org/latest/build/dts/api/bindings/input/sitronix%2Ccf1133.html#dtbinding-sitronix-cf1133
dts/bindings/input/seeed,chsc6x.yaml
Outdated
@@ -0,0 +1,14 @@ | |||
description: CHSC6X touchscreen sensor |
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.
File has the wrong vendor in its name
Made the requested changes |
You might not have pushed them correctly, though :) |
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
Added a driver for the CHSC6X chip used on the Seeed Studio Round Display for Xiao Signed-off-by: Nicolas Goualard <nicolas.goualard@sfr.fr>
Indeed, just redid it, sorry |
Hi @nicogou! To celebrate this milestone and showcase your contribution, we'd love to award you the Zephyr Technical Contributor badge. If you're interested, please claim your badge by filling out this form: Claim Your Zephyr Badge. Thank you for your valuable input, and we look forward to seeing more of your contributions in the future! 🪁 |
Added a driver for the CHSC6X chip used on the Seeed Studio Round Display for Xiao