-
Notifications
You must be signed in to change notification settings - Fork 7.8k
enable i2c of imx943 #93653
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
enable i2c of imx943 #93653
Conversation
b75f722
to
7624fa7
Compare
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.
I don't think this new sample is needed at all, it has no code in it and adds no value over just building the shell sample with the i2c shell enabled.
7624fa7
to
31221a9
Compare
It sames with the sample sensor_shell. It's used to test i2c bus and any i2c slave devices on the i2c bus with simplest way. It can be used to detect any i2c slave devices on the bus. It can be used by any platform that include i2c ip. |
Well, the sensor shell sample is also unneeded then. But I also see in that sample they put pytest stuff in it to validate the commands actually work. So it should have been a test and not a sample. |
31221a9
to
43c460d
Compare
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
sure, updated. |
776949d
to
d7730ae
Compare
d7730ae
to
ae670aa
Compare
boards/nxp/imx943_evk/doc/index.rst
Outdated
I2C | ||
--- | ||
|
||
Enable lpi2c6 defaultly for M33(In NETC MIX). | ||
|
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 grammatically correct and doesn't need to go in the doc page, its already captured on supported feature table which is generated
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 grammatically correct and doesn't need to go in the doc page, its already captured on supported feature table which is generated
sure.
@mmahadevan108 , |
ae670aa
to
ba608f8
Compare
@decsny Can you confirm that your change request was addressed? |
Add i2c support for m33(in NETCMIX) of imx943_evk Signed-off-by: Biwen Li <[email protected]>
5c3e1ba
to
ebf48ed
Compare
|
@@ -186,6 +186,12 @@ endif() | |||
set_variable_ifdef(CONFIG_HAS_MCUX_XCACHE CONFIG_MCUX_COMPONENT_driver.cache_xcache) | |||
|
|||
if((${MCUX_DEVICE} MATCHES "MIMX9596") OR (${MCUX_DEVICE} MATCHES "MIMX8UD7") OR (${MCUX_DEVICE} MATCHES "MIMXRT118") OR (CONFIG_SOC_MIMX94398) OR (CONFIG_SOC_MIMXRT798S)) | |||
|
|||
if(CONFIG_SOC_MIMX94398_M33) | |||
set(CONFIG_MCUX_COMPONENT_driver.irqsteer_1 ON) |
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 is this change needed if you do not have a dependency on the new irq_steer 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.
Why is this change needed if you do not have a dependency on the new irq_steer driver?
This is a irqsteer driver(CONFIG_MCUX_COMPONENT_driver.irqsteer_1) in mcux sdk. It needs to be enabled by default.
The i2c driver(drivers/i2c/i2c_mcux_lpi2c.c) of zephyr will use lpi2c driver(drivers/lpi2c/fsl_lpi2c.c) of mcux sdk,
the lpi2c driver of mcux sdk will can api EnableIRQ(drivers/common/fsl_common_arm.h) of mcux sdk,
EnableIRQ -> IRQSTEER_EnableInterrupt

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.
Need clarification on a change
Enable i2c of imx943