-
Notifications
You must be signed in to change notification settings - Fork 8.2k
iMX RT full pinctrl enablement #44150
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
Conversation
|
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
|
@hakehuang Can you run CI against this PR? It should only need to be tested on iMX RT boards |
@danieldegrasse , I run regression on below boards, no issue found, all cases PASS. |
gmarull
left a comment
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.
Overall LGTM, I have a couple of minor questions
MaureenHelm
left a comment
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.
Nice work!
Update nxp hal revision in west.yml to include new pinctrl definition header files. Signed-off-by: Daniel DeGrasse <[email protected]>
Add pinctrl definitions for all iMX RT based boards Signed-off-by: Daniel DeGrasse <[email protected]>
iMX.RT parts use a GPR register for some pinmux settings. Update pinctrl driver to support this GPR register definition. Signed-off-by: Daniel DeGrasse <[email protected]>
RT11xx series has similar pin configuration peripheral to RT10xx, with some differences in register layout. Create new pinctrl definition header file, and reuse existing driver code for RT10xx. Signed-off-by: Daniel DeGrasse <[email protected]>
Enable pinctrl for mcux_12b1msps_sar adc driver Signed-off-by: Daniel DeGrasse <[email protected]>
enable pinctrl for mcux lpc lpadc driver Signed-off-by: Daniel DeGrasse <[email protected]>
Enable pinctrl for nxp imx_pwm driver Signed-off-by: Daniel DeGrasse <[email protected]>
Enable pinctrl for flexspi driver. Note that when flexspi is being using in XIP mode, pinctrl settings are not required and will not be applied. Pinctrl settings are only required when the flexspi device being used is not the one used for XIP. Signed-off-by: Daniel DeGrasse <[email protected]>
Enable pinctrl for mcux_csi video driver Signed-off-by: Daniel DeGrasse <[email protected]>
add pinctrl support for display_mcux_elcdif driver Signed-off-by: Daniel DeGrasse <[email protected]>
Enable pinctrl driver for usdhc. USDHC driver uses custom pinctrl states for fast, slow, and medium signal frequencies, as well as pin pull for SD detection. Signed-off-by: Daniel DeGrasse <[email protected]>
In order for pinctrl support to be complete, RT series GPIO driver must support pinmuxing within the driver level. RT series pinmux settings do not correspond directly to gpio port/pin numbers, so use DTS mappings to pinctrl nodes to select and apply pinmux settings in the gpio driver. Signed-off-by: Daniel DeGrasse <[email protected]>
Add backlight gpios property to mcux display driver, so that the driver can correctly initialize the backlight gpio control. Signed-off-by: Daniel DeGrasse <[email protected]>
add support for resetting phy at boot via GPIO reset pin. Signed-off-by: Daniel DeGrasse <[email protected]>
Enable soc ethernet ref clock output at the SOC level instead of board level, since it is required for all iMX.RT SOCs Signed-off-by: Daniel DeGrasse <[email protected]>
imx.rt boards support pinctrl. Remove pinmux settings Signed-off-by: Daniel DeGrasse <[email protected]>
All iMX RT 1xxx boards are now expected to use pin control, so the USDHC pinmuxing callbacks can be removed. Signed-off-by: Daniel DeGrasse <[email protected]>
40526f8
This PR enables the pin control API for all in tree iMX RT boards and drivers. It includes the following changes:
Dependent upon #43293 for missing GPIO definitions in RT1170 devicetree