imx8qm_mek Android-auto uart2 dtb configuration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8qm_mek Android-auto uart2 dtb configuration

742 Views
timcui
Contributor I

Hi Everyone,

I am using imx8qm-mek board.The android software package is imx-automotive-11.0.0_2.3.0.And in this project I need use uart2 on the base board .So ,I modified the dts file named imx8qm-mek-rpmsg.dts:

&lpuart2 {
status = "okay";
};

And  I modified imx8qm-mek.dts:

&lpuart2 { /* Dbg console */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lpuart2>;
status = "okay ";
};

And  I also modified imx8-ss-dma.dtsi:

lpuart2: serial@5a080000 {
reg = <0x5a080000 0x1000>;
interrupts = <GIC_SPI 347 IRQ_TYPE_LEVEL_HIGH>;
interrupt-parent = <&gic>;
clocks = <&uart2_lpcg 1>, <&uart2_lpcg 0>;
clock-names = "ipg", "baud";
assigned-clocks = <&clk IMX_SC_R_UART_2 IMX_SC_PM_CLK_PER>;
assigned-clock-rates = <80000000>;
power-domains = <&pd IMX_SC_R_UART_2>;
power-domain-names = "uart";
dma-names = "tx","rx";
dmas = <&edma2 13 0 0>,
<&edma2 12 0 1>;
status = "okay";
};

In generally ,I just changed  the status from 'disabled ' to 'okay ' in the files above .

But, after  the system started ,there is no node named ttyLP2 in the file system of the path '/dev',I just can see ttyLP0 and ttyLP1.

Please give me some advice about this question .

 

Thanks,

Tim

0 Kudos
2 Replies

700 Views
timcui
Contributor I

Hi all,

           This issue is very urgent! Please help !!

Thanks all,

Tim

0 Kudos

710 Views
timcui
Contributor I

Hi NXP

  About the issue of uart2 , I got the error log:

"probe deferral - supplier 5a480000.clock-controller not ready".This log is from the function "device_links_check_suppliers(struct device *dev)"of source file named core.c

Please help !
Thanks all,
Tim
0 Kudos