AnsweredAssumed Answered

how to enable UART4 and UART5 ??

Question asked by Changwook Lee on Jul 9, 2019
Latest reply on Jul 9, 2019 by CarlosCasillas

Hi, all

I added configuraion to enable UART4 / UART5.

 

(Ref: http://variwiki.com/index.php?title=DART-6UL_UART)

 

It's not working if I use imx6ull-var-dart-5g-emmc_wifi.dtb (ttymxc3, ttymxc4 are not loaded)

But it's working if I use imx6ull-var-dart-5g-sd-emmc.dtb (ttymxc3, ttymxc4 are loaded)

 

do you know why?

please check my dtsi file.

 

I added only below for UART4 / UART5

 

--------------------------------------------------------

/* ttymxc3 UART  */
&uart4 {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_uart4>;
   fsl,uart-has-rtscts;
    status = "okay";
};

/* ttymxc4 UART  */
&uart5 {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_uart5>;
   fsl,uart-has-rtscts;
    status = "okay";
};

    pinctrl_uart4: uart4grp {
        fsl,pins = <
            MX6UL_PAD_LCD_CLK__UART4_DCE_TX      0x1b0b1
            MX6UL_PAD_LCD_ENABLE__UART4_DCE_RX   0x1b0b1
MX6UL_PAD_LCD_HSYNC__UART4_DCE_CTS   0x1b0b1
MX6UL_PAD_LCD_VSYNC__UART4_DCE_RTS   0x1b0b1
        >;     
    };
  
    pinctrl_uart5: uart5grp {
        fsl,pins = <
            MX6UL_PAD_CSI_DATA00__UART5_DCE_TX   0x1b0b1
            MX6UL_PAD_CSI_DATA01__UART5_DCE_RX   0x1b0b1
MX6UL_PAD_CSI_DATA03__UART5_DCE_CTS  0x1b0b1
MX6UL_PAD_CSI_DATA02__UART5_DCE_RTS  0x1b0b1
        >;
    };

 

and disable &lcdif configuration because of LCD_CLK / LCD_ENABLE.

 

my board: DART-6UL-5G (CPU: i.MX6ULL)

Outcomes