Skip to content

Conversation

@JiafeiPan
Copy link
Contributor

@JiafeiPan JiafeiPan commented May 13, 2025

This PR is to add GPIO support for i.MX 943 EVK A-Core and with some minimal board document fix.

@github-actions
Copy link

github-actions bot commented May 13, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff

All manifest checks OK

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@github-actions github-actions bot added manifest manifest-hal_nxp DNM (manifest) This PR should not be merged (controlled by action-manifest) labels May 13, 2025
Added all GPIO device nodes in i.MX 943 Cortex-A Core SoC dts.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
@JiafeiPan JiafeiPan force-pushed the develop/imx943-gpio branch from e93f1aa to 552b9d4 Compare June 5, 2025 02:31
@JiafeiPan JiafeiPan force-pushed the develop/imx943-gpio branch from 552b9d4 to 881ce19 Compare June 5, 2025 02:40
@JiafeiPan JiafeiPan marked this pull request as ready for review June 5, 2025 02:41
@JiafeiPan JiafeiPan requested review from yangbolu1991 and removed request for decsny June 5, 2025 02:42
@JiafeiPan JiafeiPan added this to the v4.2.0 milestone Jun 5, 2025
@yangbolu1991
Copy link
Member

May I know the reason to use default pad config value? Better to add in commit message.

drivers: gpio: rgpio: use default pad config value for SCMI platform

Thanks.

@JiafeiPan JiafeiPan force-pushed the develop/imx943-gpio branch from 881ce19 to 3d3d42c Compare June 6, 2025 03:05
@JiafeiPan
Copy link
Contributor Author

May I know the reason to use default pad config value? Better to add in commit message.

drivers: gpio: rgpio: use default pad config value for SCMI platform

Thanks.

If the platform uses SCMI pinctrl driver, pinctrl regitster can't accessed by
CPU Core directly, and currently SCMI pinctrl driver has no API to read back
the register value, so use default pad config value for GPIO pad configuration,
and in theory we could use a fixed pad config value in this driver as each
new GPIO configuration has no relation with previous configuration.

Updated commit message.

@JiafeiPan JiafeiPan force-pushed the develop/imx943-gpio branch from 3d3d42c to 3e4f7f3 Compare June 6, 2025 09:02
JiafeiPan added 6 commits June 6, 2025 17:20
If the platform uses SCMI pinctrl driver, pinctrl regitster can't accessed
by CPU Core directly, and currently SCMI pinctrl driver has no API to read
back the register value, so use default pad config value for GPIO pad
configuration, and in theory we could use a fixed pad config value in this
driver as each new GPIO configuration has no relation with previous
configuration.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
The hardware don't support GPIO_DISCONNECTED.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
…orted

If GPIO_DISCONNECTED is not supported by GPIO driver, then try to configure
the pin to be input, otherwise there will be some unstable signal between
two test pins.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Add board overlay for i.MX943 EVK Cortex-A Core.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Fixed the document format issue.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Add GPIO in board yaml's supported list

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
yangbolu1991
yangbolu1991 previously approved these changes Jun 6, 2025
If gpio-reserved-ranges to reserve some pins which used by other CPU
Core's OS, we could only handle usable pins owned by current CPU
Core in interrupt handler.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
@sonarqubecloud
Copy link

@JiafeiPan JiafeiPan requested a review from yangbolu1991 June 11, 2025 01:47
@dkalowsk dkalowsk merged commit 47d6f02 into zephyrproject-rtos:main Jun 12, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants