-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Alternative pin group based pinctrl implementation for RT1062 #42238
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
Alternative pin group based pinctrl implementation for RT1062 #42238
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. |
tejlmand
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.
lgtm - re-approved
|
@dleach02 ping |
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.
Seeing that you add pinctrl support to the lpuart driver, I tried testing this on the twr_ke18f board (west build -b twr_ke18f samples/hello_world/ -- -DCONFIG_PINCTRL=y), which uses the Kinetis pinctrl driver along with the lpuart driver - but compilation of the lpuart driver is now failing (see #43486).
@henrikbrixandersen, just to confirm: #43486 fixed pinctrl support on the |
e00e356
NXP hal will define constants for pinmux options in RT pinctrl implementation. Update hal revision to pull in dtsi file. Signed-off-by: Daniel DeGrasse <[email protected]>
Add dts binding for rt1xxx pinctrl driver settings. A binding file is present for the pinctrl node itself, and for the pinctrl child node that defines all pinmux options Signed-off-by: Hake Huang <[email protected]> Signed-off-by: Daniel DeGrasse <[email protected]>
enable pinctrl in i2s and lpuart driver bindings Signed-off-by: Hake Huang <[email protected]> Signed-off-by: Daniel DeGrasse <[email protected]>
Pinctrl requires header file with Z_PINCTRL_STATE_PINS_INIT macro defined. Add header file for mcux RT pinctrl implementation. Signed-off-by: Hake Huang <[email protected]> Signed-off-by: Daniel DeGrasse <[email protected]>
add dtsi settings for rt series dtsi use gpr to replace pinmux nxp iomuxc has gpr which has more settings than mux and io settings current solution is to export gpr separately and access then directly Signed-off-by: Hake Huang <[email protected]> Signed-off-by: Daniel DeGrasse <[email protected]>
Add pinctrl driver for rt1xxx Signed-off-by: Hake Huang <[email protected]> Signed-off-by: Daniel DeGrasse <[email protected]>
enable pinctrl in lpuart driver, and clean up driver instance definition macros Signed-off-by: Hake Huang <[email protected]>
enable i2s pinctrl Signed-off-by: Hake Huang <[email protected]>
enable pin control for RT1060 EVK. Signed-off-by: Hake Huang <[email protected]> Signed-off-by: Daniel DeGrasse <[email protected]>
rename pinmux to gpr different from pinmux and io settings gpr will do more IO settings. Signed-off-by: Hake Huang <[email protected]>
@danieldegrasse Sorry, I somehow missed your question. Yes, the problem was in the Kinetis pinctrl implementation and was fixed by #43486. |
This PR is an alternative approach from #41810 which uses pin groups instead of pin nodes defined at the SOC level. An SOC level header file is still included for readability and so that the user is aware of all pinmux options present on the SOC.
The pin groups approach offers the following benefits: