-
Notifications
You must be signed in to change notification settings - Fork 8.1k
drivers: mipi-dbi-spi: use the SPI_CS_CONTROL_INIT macro for CS #97318
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.
This should go through the public API change process
https://docs.zephyrproject.org/latest/develop/api/api_lifecycle.html#introducing-breaking-api-changes
https://docs.zephyrproject.org/latest/glossary.html#term-public-API
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.
Thanks, I've created an RFC for the proposed API changes. An alternative approach to fix the immediate issue introduced in #87427 which caused hardware CS to no longer work would be to set .cs_is_gpio = DT_SPI_DEV_HAS_CS_GPIOS(node_id)
in the macro instead of always true. I can create a new PR for just that if it is better in the short term
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.
Yes if a fix is possible without API change, it's better.
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.
Standalone PR is #97366. Will keep this RFC open since the delay parameter has been deprecated for SPI CS, so should probably be removed from MIPI DBI SPI
32dd097
to
3412c41
Compare
b83c86d
to
cd82299
Compare
Remove the delay parameter from the MIPI_DBI_SPI_CONFIG macros and use the SPI_CS_CONTROL_INIT macro to create the SPI CS, which will pull the values for delay and cs_is_gpio from the devicetree This fixes incorrectly trying to use a GPIO CS when there isn't one Signed-off-by: Jeremy Dick <[email protected]>
cd82299
to
3d9b496
Compare
|
Remove the delay parameter from the MIPI_DBI_SPI_CONFIG macros and use the SPI_CS_CONTROL_INIT macro to create the SPI CS, which will pull the values for delay from the devicetree
See RFC #97348