Hi guys
I want to use UART5 instead of SPI2 (the processor is IMX6G2C (IMXUL):
/ {
chosen {
stdout-path = &uart4;
bootargs = "console=ttymxc3,115200";
};
// (...)
};
&iomuxc {
// (...)
pinctrl_uart5: uart5grp {
fsl,pins = <
MX6UL_PAD_CSI_DATA00__UART5_DCE_TX 0x1b0b1
MX6UL_PAD_CSI_DATA01__UART5_DCE_RX 0x1b0b1
>;
};
pinctrl_uart4: uart4grp {
fsl,pins = <
MX6UL_PAD_UART4_TX_DATA__UART4_DCE_TX 0x1b0b1
MX6UL_PAD_UART4_RX_DATA__UART4_DCE_RX 0x1b0b1
>;
};
// (...)
};
// (...)
&uart4 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart4>;
status = "okay";
};
&uart5 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart5>;
compatible = "fsl,imx21-uart";
status = "okay";
};
Adding or removing "compatible = "fsl,imx21-uart";" from uart5 changes nothing.
Solved! Go to Solution.
Thanks, Igor,
I've checked everything again and the problem was that:
MX6UL_PAD_CSI_DATA01__UART5_DCE_RX
was defined elsewhere.
I just want to confirm that the rest of the configuration was ok.
Thanks, Igor,
I've checked everything again and the problem was that:
MX6UL_PAD_CSI_DATA01__UART5_DCE_RX
was defined elsewhere.
I just want to confirm that the rest of the configuration was ok.
Hi Maciej
one can try to rebuild image from scratch, also look at uart5 examples:
Best regards
igor