-
Notifications
You must be signed in to change notification settings - Fork 7.6k
NXP LPSPI: Add support for Peripheral (slave) mode #87144
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
NXP LPSPI: Add support for Peripheral (slave) mode #87144
Conversation
67f58c1
to
8ee79a0
Compare
8ee79a0
to
513dc46
Compare
put DNM because there are some timing issues with CPHA=0, need to debug |
peripheral-cs = <1>; | ||
}; | ||
}; | ||
|
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.
It would be useful for testing if you could include the connection setup in a comment here.
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.
its in the board level dts , also its just the only two standard spi headers on the board which are labelled on silk screen, mikrobus and arduino
513dc46
to
205c571
Compare
update: rebased on top of #90182 . Still WIP, so moved to draft |
205c571
to
d10716a
Compare
d10716a
to
decb325
Compare
command : connecting the lpspis used in the overlay, result:
|
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.
The zephyr,user addition is fine I think
Add rudimentary slave mode support to the interrupt based LPSPI driver. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
Add overlay for a reworked board that breaks out LPSPI1 to the arduino header. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
Add an overlay to the spi_controller_peripheral test for the frdm_mcxa156. Since this IP has multiple CS, need to introduce a way to configure the correct CS to the test; just going to use zephyr,user for now instead of refactoring to be less nordic-specific, keeping the usage optional. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
decb325
to
057a46e
Compare
|
This PR adds support for Peripheral mode into the NXP LPSPI interrupt-based driver.
So far, it is only tested on MCXA156, but this is a great start because due to the small fifo, it is probably the most difficult to enable on.
Fixes #57747