AnsweredAssumed Answered

uart7 not working in imx7d

Question asked by Vijay HS on Feb 8, 2019
Latest reply on Feb 18, 2019 by igorpadykov

Hi,

 

I have a custom board which is based on imx7dsabresd. I am using "linux-imx-4.1.15". I am trying to bring up uart7 but no success. I don't see any data coming out on uart7_Tx.

UART7_RX and UART7_TX are on the pads EPDC_DATA12 and EPDC_DATA13 respectively. I have attached the schematics for the same. The dts changes are as below

 

In the file "imx7d.dtsi"

            uart7: serial@30a90000 {
                compatible = "fsl,imx7d-uart",
                         "fsl,imx6q-uart", "fsl,imx21-uart";
                reg = <0x30a90000 0x10000>;
                interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&clks IMX7D_UART7_ROOT_CLK>,
                    <&clks IMX7D_UART7_ROOT_CLK>;
                clock-names = "ipg", "per";
                dmas = <&sdma 34 4 0>, <&sdma 35 4 0>;
                dma-names = "rx", "tx";
                status = "okay";
            };

 

In the file "imx7d-sdb.dts"

&uart7 {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_uart7>;
    assigned-clocks = <&clks IMX7D_UART7_ROOT_SRC>;
    assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>;
    status = "okay";
};

 

&iomuxc {

         ...

         ...

         imx7d-sdb

         {

               ...

               ...

              pinctrl_uart7: uart7grp {
                     fsl,pins = <
                                  MX7D_PAD_EPDC_DATA12__UART7_DCE_RX 0x79
                                  MX7D_PAD_EPDC_DATA13__UART7_DCE_TX 0x79
                    >;
              };

               ...

               ...

          }

         ...

         ...

}

 

Kindly, help me to solve this issue.

 

Thanks & Regards

Vijay H.S 

Outcomes