Hello ;
I ' m working on Wandboard Quad which has iMX6Q processor on it . I opened it 's UART2 features from it 's imx6q-wandboard.dts but I have some problem about it and my mind is confused if I did right or missed something while enabling the UART2 .
I can send data from the UART2_TX but even if I set up the both console and ttymxc1 (UART2) baudrates same , I recieve nonsense character 's .
And I enabled from im6q-wandboard.dts adding ;
&uart2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart2_1>;
status = "okay" ;
};
Did I missing something or did I do something wrong about it ?
Thanks for your help ...
I couldnt attach the file sorry @igorpadykov :smileygrin:
Hi Mustafa
issue with receiving may be related to settings in register
IOMUXC_UART2_UART_RX_DATA_SELECT_INPUT, sect.36.4.581 i.MX6DQRM
one can attach jtag debugger or printf to check if correct settings were provided.
http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
I found the imx6q_pins.h file :smileyhappy:
the uart2
MX6_PAD_DECL(EIM_D26__UART2_TX_DATA, 0x03D0, 0x00BC, 4, 0x0000, 0, 0)
MX6_PAD_DECL(EIM_D26__UART2_RX_DATA, 0x03D0, 0x00BC, 4, 0x0928, 0, 0)
MX6_PAD_DECL(EIM_D27__UART2_TX_DATA, 0x03D4, 0x00C0, 4, 0x0000, 0, 0)
MX6_PAD_DECL(EIM_D27__UART2_RX_DATA, 0x03D4, 0x00C0, 4, 0x0928, 1, 0)
Hi igorpadykov ;
Firstly thank you for your response ,
uart2 {
pinctrl_uart2_1: uart2grp-1 {
fsl,pins = <
MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1
MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1
>;
};
actually I this register configuration for uart2 , I still searching how I can reach this IOMUXC definitions from files but when this settings are involved I getting confused actually ALT Modes are confusing me can you explain it briefly if you have time ? Or can you give me any example about how to make IOMUX or usage ALT modes .
I m attaching the definition dtsi file if you want to check it
Thank you igorpadykov
Best regards
Mustafa