-
Notifications
You must be signed in to change notification settings - Fork 8.2k
drivers: Update MCUX I2C RTIO driver with SDK changes #88315
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
drivers: Update MCUX I2C RTIO driver with SDK changes #88315
Conversation
Update the driver to account for variations in the SDK driver when it uses the instance number instead of the base address. Applying 49bdcd2 on RTIO-version. Co-authored-by: Mahesh Mahadevan <[email protected]> Signed-off-by: Luis Ubieda <[email protected]>
Some NXP SoC's have a FlexComm interface that manages the interrupts. Applying 482e39e on RTIO-version. Authored-by: Mahesh Mahadevan <[email protected]> Signed-off-by: Luis Ubieda <[email protected]>
The Low Power Flexcomm driver manages the interrupt handling and provides an API to register interrupt callbacks. Register the NXP LPI2C interrupt handler. Applying dca6e64 on RTIO-version. Authored-by: Mahesh Mahadevan <[email protected]> Signed-off-by: Luis Ubieda <[email protected]>
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 PR is reverting #83704 , I don't understand the point
@decsny I'm confused, please ellaborate:
Please provide feedback so we're on the same page before iterating. |
I see, I confused them for the same file. In that case please follow the same paradigm as is being done for the other file. (or if you're feeling really ambitious, make some common file to share this, but I don't suggest that for this PR) |
Determine if lpflexcomm wrapped lpi2c by instance and connect irq differently dependending on that to support platforms with both flexcomm wrapped and unwrapped lpi2c's. Applying c1286a8 to RTIO version. Authored-by: Declan Snyder <[email protected]> Signed-off-by: Luis Ubieda <[email protected]>
|
just ran into this myself, thanks for fixing |
Description
Update the driver to account for variations in the SDK driver
when it uses the instance number instead of the base address.
Changes come from #70866 and #83704 applied to I2C RTIO.
Fixes #88319.
Testing
Built for MCXN947 and tested I2C commands work.
Output: