AnsweredAssumed Answered

UART2 issue in wandboard quad!!

Question asked by harsh basarikodi on Dec 4, 2017
Latest reply on Dec 5, 2017 by harsh basarikodi

I'm trying to use the UART-2 Ports on Wand Board Quad(Ver C1). I have modified the imx6qdl.dtsi and imx6qdl-wandboard.dtsi file for enabling the UART2 port on the Wandboard-Quad.After executing commands
--> cat /dev/ttymxc1 &
-->echo 1234567890 > /dev/ttymxc1
But I'm not getting the echo response for the command executed.(pin 6 --U2_RXand pin 14-U2_TX are shorted ).

*************************************

below path location of git where the changes were made
************************************************************
/home/lablinux/fsl-community-bsp/build/tmp/work/wandboard_quad-poky-linux-gnueabi/linux-wandboard/3.10.17-r0/git/arch/arm/boot/dts

 

Below Changes done in sourcefile --> imx6qdl.dtsi
--------------------------------------------
pinctrl_uart2_3: uart2grp-3 { /* DTE mode */
            fsl,pins = <
                MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
                MX6QDL_PAD_SD4_DAT5__UART2_RTS_B   0x1b0b1
                MX6QDL_PAD_SD4_DAT6__UART2_CTS_B   0x1b0b1
                MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
            >;
        };

 

below path location of git where the changes were made (imx6qdl-wandboard.dtsi)
------------------------------------------------------
pinctrl_gpio: commented this two pins.
/*MX6QDL_PAD_EIM_D27__GPIO3_IO27 0x4001b0b0 /* GPIO3_27 EDM pin 258 */
/*MX6QDL_PAD_EIM_D26__GPIO3_IO26 0x4001b0b0 /* GPIO3_26 EDM pin 259 */

added below to support uart2

&uart2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart2_3>;
status = "okay";
};

 

After making the above changes i executed the below commands

-->bitbake -c devshell virtual/kernel (From build directory /home/lablinux/fsl-community-bsp/build)

-->make dtbs (from /home/lablinux/fsl-community-bsp/build/tmp/work/wandboard_quad-poky-linux-gnueabi/linux-wandboard/3.10.17-r0/git/)

-->bitbake -c deploy -f virtual/kernel (From build directory /home/lablinux/fsl-community-bsp/build).

then executed

-->bitbake core-image-minimal (From build directory /home/lablinux/fsl-community-bsp/build)

After this loaded the core-image-minimal.sdcard on the SD card using the dd command.

I am able to see the ttymxc1 after executing ls /dev.

But after executing below commands

--> cat /dev/ttymxc1 &
-->echo 1234567890 > /dev/ttymxc1

i am not seeing the echoing (Shorting of tx and rx taken care).(Also ran a serial test and observed the TX(14 pin) line on Oscilloscope no signals are appearing).

Used as reference the below link-->Wandboard Discussion Forums • View topic - Enable Second UART (Kernel 3.10 with Device Tree) 

Please let me know above steps followed for dtsi changes are correct.??and why tthe communication is not happening..

Outcomes