-
Notifications
You must be signed in to change notification settings - Fork 7.7k
drivers: i3c: Add MAX32657 I3C driver #92171
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
Add I3C driver for ADI MAX32 microcontrollers. Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
Add I3C instance to max32657.dtsi. Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
Enables shell support for MAX32 I3C driver. Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
Add I3C node to MAX32657EVKIT board devicetree and add I3C to the list of supported drivers. Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
Add support for ADXL367 accelerometer connected to I3C bus. Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
|
# Enable I3C | ||
CONFIG_I3C=y |
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 enables I3C for all applications built for this board, even hello world. Should be removed
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.
Fails to build sensor samples that is why I added it. I will think of a better solution.
https://github.com/zephyrproject-rtos/zephyr/actions/runs/15874279583/job/44758423761
# Enable I3C | ||
CONFIG_I3C=y |
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.
ditto
* | ||
*/ | ||
static void max32_i3c_interrupt_enable(mxc_i3c_regs_t *regs, uint32_t mask) | ||
{ |
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.
why this function isn't defined as 'inline' ? any specific reason ?
static int max32_i3c_do_one_xfer_read(mxc_i3c_regs_t *regs, uint8_t *buf, uint8_t buf_sz, bool ibi) | ||
{ | ||
int ret = 0; | ||
int offset = 0; |
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.
Is negative offset execpected in this function ? if not define this as uint ?
int ret = 0; | ||
int offset = 0; | ||
int readb = 0; | ||
|
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.
Is negative "readb" execpected in this function ? if not define this as uint ?
Adds I3C controller driver for MAX32657. Only controller mode is supported at the moment. Based on existing MCUX I3C driver.