-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
[TOPIC-GPIO] gpio: Update imx gpio driver to use new gpio api #19571
[TOPIC-GPIO] gpio: Update imx gpio driver to use new gpio api #19571
Conversation
Are you able to test with the |
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.
Should convert boards/arm/96b_meerkat96/96b_meerkat96.dts & boards/arm/warp7_m4/warp7_m4.dts
Updated the code, added the udoo_neo_full_m4 board configuration and pin mux code into the
Done. |
@stanislav-poboril |
Fix interrupt number for gpio5 Signed-off-by: Stanislav Poboril <stanislav.poboril@nxp.com>
Added configuration for the udoo_neo_full_m4 board and the initialization of its GPIO test pins via IOMUX controller. Signed-off-by: Stanislav Poboril <stanislav.poboril@nxp.com>
Updates the imx gpio driver and all associated boards to use new device tree compatible gpio configuration flags. Implements new port get/set/clear/toggle and pin_interrupt_configure functions recently added to the gpio api. Assumes the gpio api layer handles translating logical flags to physical flags. Tested with: - samples/basic/blinky - samples/basic/button - tests/drivers/gpio/gpio_api_1pin - tests/drivers/gpio/gpio_basic_api On boards: - udoo_neo_full_m4 Signed-off-by: Stanislav Poboril <stanislav.poboril@nxp.com>
Rebased and retested. |
Updates the NXP i.MX gpio driver and all associated boards to use new
device tree compatible gpio configuration flags. Implements new port
get/set/clear/toggle and pin_interrupt_configure functions recently
added to the gpio api.
Assumes the gpio api layer handles translating logical flags to physical
flags.
Tested with:
On boards:
The udoo_neo_full_m4 board does not have a user button, so I temporarily modified the samples/basic/button code and board dts file to use second pin to simulate the button.
The test tests/drivers/gpio/gpio_api_1pin skips most of the tests, since it relies on pin to be configured as both input/output at the same time. i.MX gpio can be either input or output. However it is possible to read back the data from the output pins, so I temporarily modified the code to be able to test some of the cases.
I don't have colibri_imx7d_m4 board, only verified that the samples/basic/blinky and samples/basic/button examples build. The test tests/drivers/gpio/gpio_api_1pin compiles but does not link since it does not fit into board's flash.