AnsweredAssumed Answered

Enabling UART1 and UART4 using device tree

Question asked by Dhanyakumar Hosamane on Jun 7, 2016
Latest reply on Dec 1, 2017 by kk d

Hi

 

I am using iMX6 dual core processor from Phytec (phyBOARD-Mira i.MX6). In that by default UART2 and UART3 are configured. similarly I modified device tree files to enable UART1 and UART4. But I still see only two UART(tty) ports listed under /dev. Could someone help me to figure out where I am going wrong.

 

 

// Added PIN control for UART1 and UART4 (UARt2 was already present)

pinctrl_uart2: uart2grp {
fsl,pins = <
MX6QDL_PAD_EIM_D26__UART2_TX_DATA0x1b0b1
MX6QDL_PAD_EIM_D27__UART2_RX_DATA0x1b0b1
>;
};

 

 

pinctrl_uart4: uart4grp {
fsl,pins = <
MX6QDL_PAD_CSI0_DAT13__UART4_TX_DATA0x1b0b1
MX6QDL_PAD_CSI0_DAT12__UART4_RX_DATA0x1b0b1
>;
};

 

 

pinctrl_uart1: uart1grp {
fsl,pins = <
MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA0x1b0b1
MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA0x1b0b1
>;
};

 

// Added node for UART1 and UART4

&uart1 {

  pinctrl-names = "default";

  pinctrl-0 = <&pinctrl_uart1>;

  status = "disabled";

};

 

 

&uart2 {

  pinctrl-names = "default";

  pinctrl-0 = <&pinctrl_uart2>;

  status = "disabled";

};

 

 

&uart4 {

  pinctrl-names = "default";

  pinctrl-0 = <&pinctrl_uart4>;

  status = "disabled";

};

Outcomes