imx8mm Real-time-edge-baremetal

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8mm Real-time-edge-baremetal

202 Views
saurabhprajapati
Contributor I

Hello,

I am using imx8mm-evk board I have made a yocto build for Real-time-edge-baremetal,

Yocto build Details

Branch:- real-time-edge-2.8.0.xml
DISTRO:- nxp-real-time-edge-baremetal
MACHINE:- imx8mm-lpddr4-evk
 
By Default after booting the kernel I not able to detect uart3, its address is 0x30880000
 
In Device-tree  the uart3 is already configured by default, But still I am got able to get UART3 to the kernel after boot, as per configuration.
 
 
Labels (1)
0 Kudos
Reply
2 Replies

165 Views
saurabhprajapati
Contributor I

Hello,

Below is the default configuration I saw in the device tree for the uart

uart2 -> is been used as Debug port

 

/ {
chosen {
stdout-path = &uart2;
};

&uart1 { /* BT */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart1>;
assigned-clocks = <&clk IMX8MM_CLK_UART1>;
assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_80M>;
fsl,uart-has-rtscts;
status = "okay";

bluetooth {
compatible = "nxp,88w8987-bt";
};
};

&uart2 { /* console */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart2>;
status = "okay";
};

&uart3 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart3>;
assigned-clocks = <&clk IMX8MM_CLK_UART3>;
assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_80M>;
fsl,uart-has-rtscts;
status = "okay";
};

pinctrl_uart1: uart1grp {
fsl,pins = <
MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140
MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140
MX8MM_IOMUXC_UART3_RXD_UART1_DCE_CTS_B 0x140
MX8MM_IOMUXC_UART3_TXD_UART1_DCE_RTS_B 0x140
>;
};

pinctrl_uart2: uart2grp {
fsl,pins = <
MX8MM_IOMUXC_UART2_RXD_UART2_DCE_RX 0x140
MX8MM_IOMUXC_UART2_TXD_UART2_DCE_TX 0x140
>;
};

pinctrl_uart3: uart3grp {
fsl,pins = <
MX8MM_IOMUXC_ECSPI1_SCLK_UART3_DCE_RX 0x140
MX8MM_IOMUXC_ECSPI1_MOSI_UART3_DCE_TX 0x140
MX8MM_IOMUXC_ECSPI1_SS0_UART3_DCE_RTS_B 0x140
MX8MM_IOMUXC_ECSPI1_MISO_UART3_DCE_CTS_B 0x140
>;
};

 

After kernel boot I am checking tty available for access as below

/dev/ttymxc1 -> only present 

I am giving echo command to the port as below and I am getting output in same terminal

echo "Hello" >> /dev/ttymxc1

baremetal.png

0 Kudos
Reply

179 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

The default is uart1 check the dtb:

&fec1 {
status = "disabled";
};
&gpio5
{
status = "disabled";
};
&uart3 {
status = "disabled";
};

Regards

0 Kudos
Reply