-
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
board: MIMXRT1062-FMURT6: Add pinmux support for uart ports used for gps and telemtry. #58047
board: MIMXRT1062-FMURT6: Add pinmux support for uart ports used for gps and telemtry. #58047
Conversation
57f3e09
to
bb6b964
Compare
e07c27a
to
affb7d4
Compare
@@ -33,6 +33,9 @@ | |||
zephyr,console = &lpuart7; | |||
zephyr,shell-uart = &lpuart7; | |||
zephyr,canbus = &flexcan1; | |||
zephyr,gps1 = &lpuart2; |
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.
Are these well known Zephyr chosen node names? I don't see them being used anywhere in the tree. I would rather see these node names be devicetree aliases if these UART connections are being used in a downstream project
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.
Changed from Chosen to Aliases as suggested
drivers/ethernet/eth_mcux.c
Outdated
/* Set ENET2 ref clock to be generated by External OSC,*/ | ||
/* direction as output and frequency to 50MHz */ | ||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet2), okay) | ||
IOMUXC_GPR->GPR1 |= (IOMUXC_GPR_GPR1_ENET2_CLK_SEL_MASK | |
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.
This looks like it should be handled at the soc_rt10xx.c
level, not within the driver. Also, is there an IOMUXC
API present for this bit, like kIOMUXC_GPR_ENET1TxClkOutputDir
for ENET1?
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.
Thanks @danieldegrasse .. I have modified as per your recommendation.. please check now..
e4d2baf
to
e8c4565
Compare
@danieldegrasse .. can you please re-check.. |
19b49b3
to
7b6d353
Compare
251e5e6
to
bb7e50c
Compare
bb7e50c
to
951b3d8
Compare
951b3d8
to
7b6d353
Compare
@danieldegrasse we added the issues for the bug report fixs and linked them. |
d6c09e9
to
58be408
Compare
gps1 = &lpuart2; | ||
telem1 = &lpuart3; | ||
telem4-gps2 = &lpuart5; | ||
}; | ||
|
||
pwm_shell: pwm_shell { |
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.
the commit title MIMXRT1062-FMURT6: Fix PWM device names.
Should be updated to something like the following:
soc: arm: nxp_imx: fix PWM node names
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.
Changed !!
a375f58
to
460e409
Compare
552ad79
to
d1c9f52
Compare
used for gps and telemtry. This patch configures the correct pinmux settings for lpuart2, lpuart3, lpuart5 ports used for gps and telemetry modules. It also adds software pull up for the UART console port lpuart7. Signed-off-by: Sumit Batra <[email protected]> Co-authored-by: Benjamin Perseghetti <[email protected]> Co-authored-by: Iain Galloway <[email protected]>
…ists This patch removes an unncessary message for presence or absence of DISPLAY Signed-off-by: Sumit Batra <[email protected]>
d1c9f52
to
87796aa
Compare
@@ -66,7 +66,12 @@ const clock_enet_pll_config_t ethPllConfig = { | |||
#else | |||
.enableClkOutput25M = false, | |||
#endif | |||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay) |
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.
Commit message here needs to be to something like- soc: rt10xx: fix the sequence of Enet2 ref clk enablement
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.
Commit title/message now updated.
@@ -143,6 +142,7 @@ | |||
pinctrl-0 = <&pinmux_flexcan3>; | |||
pinctrl-names = "default"; | |||
bus-speed = <125000>; | |||
bus-speed-data = <1000000>; |
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.
Please move the board changes for bus speed and prescaler settings to another commit, since this one is titled soc: arm: nxp_imxrt1062: fix PWM node names.
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.
Done. Split it out into:
- board: MIMXRT1062-FMURT6: Set CANFD bus-speed-data
- board: MIMXRT1062-FMURT6: correct PWM prescaler
and renamed it to be more proper with:
- soc: nxp_rt10xx: add unique PWM names.
This patch sets ENET2 ref clock to be generated by External OSC ENET2 ref clock direction as output ENET2 ref clk frequency to 50MHz Signed-off-by: Sumit Batra <[email protected]>
Enable PWM to use unique device names. Signed-off-by: Benjamin Perseghetti <[email protected]>
This commit adds the Pinmux and Pad settings for FMU PPM Input Pin Signed-off-by: Sumit Batra <[email protected]>
This patch adds the pinmux and pad settings for I2C3 SDA and SCL pins Signed-off-by: Sumit Batra <[email protected]>
Set the PWM clock prescaler values to 64 for controlling standard servo 50Hz carrier frequency. Signed-off-by: Benjamin Perseghetti <[email protected]>
Set the flexcan3 bus-speed-data to allow for correct CANFD data-speed. Signed-off-by: Benjamin Perseghetti <[email protected]>
87796aa
to
3e41f15
Compare
@mmahadevan108 .. Can you kindly review, as we need a second approver as well. |
This patch configures the correct pinmux settings for -
lpuart2, lpuart3, lpuart5 ports used for gps and telemetry modules.
It also adds software pull up for the UART console port lpuart7 to
It fixes an issue in ref clock configuration for ETH2 module
It also increases the RAM size
Fixes #59005
Fixes #59010
Fixes #59013