Hi all,
I can run the linux kernel (provided by ADI) on my custom zedboard, where the output message is come from UART1.However, I hope to use UART1 and UART0 at the same time. I have set the pin of MIO 14 and MIO 15 for uart0 in XPS configuration and enabled the UART0 port. I also glanced over the file of my devicetree.dts which is correspond with the current devicetree.dtb. In my opnion, the UART0 has been defined correctly in that file.
Generaly, kernel will print:
----------------------------
e0001000.uart: ttyPS0 at MMIO 0xe0001000 (irq = 82) is a xuartps
console [ttyPS0] enabled
e0000000.uart: ttyPS1 at MMIO 0xe0000000 (irq = 59) is a xuartps
----------------------------
Unfortunately, I can't find any message about "ttyPS1" from kernel output.
Has any one can help me or give me any tips??
Thanks!
the following is the part of my dts file about uart , if i remove 'the status = "disabled";', the kernel will be blocked.
--------------------------------------------------
compatible = "xlnx,zynq-7000";
#address-cells = <0x1>;
#size-cells = <0x1>;
interrupt-parent = <0x1>;
model = "Xilinx Zynq ZED";
aliases {
ethernet0 = "/amba@0/eth@e000b000";
serial0 = "/amba@0/uart@e0001000";
};
chosen {
bootargs = "console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait";
linux,stdout-path = "/amba@0/uart@E0001000";
};
amba@0 {
compatible = "simple-bus";
#address-cells = <0x1>;
#size-cells = <0x1>;
ranges;
linux,phandle = <0x2>;
phandle = <0x2>;
.....
uart@e0000000 {
compatible = "xlnx,xuartps";
status = "disabled";
reg = <0xe0000000 0x1000>;
interrupts = <0x0 0x1b 0x4>;
interrupt-parent = <0x1>;
clock-names = "ref_clk", "aper_clk";
clocks = <0x3 0x17 0x3 0x28>;
port-number = <0x0>;
current-speed = <0x1c200>;
device_type = "serial";
};
uart@e0001000 {
compatible = "xlnx,xuartps";
reg = <0xe0001000 0x1000>;
interrupts = <0x0 0x32 0x4>;
interrupt-parent = <0x1>;
clock-names = "ref_clk", "aper_clk";
clocks = <0x3 0x18 0x3 0x29>;
port-number = <0x0>;
current-speed = <0x1c200>;
device_type = "serial";
};
}