Hello Tim,
I am trying to get the uart1 working on DE0 Nano board. I have enabled the option in the Qsys folder, and loaded the SD card with new preloader and device tree. In DE0 Nano, the ‘ttyS0’ is used for console, so I am using uart1. Following is the output for ‘dmesg | grep tty’
root@cv5:~# dmesg | grep tty
[ 0.271170] console [ttyS0] disabled
[ 0.271206] ffc02000.serial: ttyS0 at MMIO 0xffc02000 (irq = 21, base_baud = 6250000) is a 16550A
[ 0.911939] console [ttyS0] enabled
[ 0.915975] ffc03000.serial: ttyS1 at MMIO 0xffc03000 (irq = 22, base_baud = 6250000) is a 16550A
[ 2.269179] ttyS0 - failed to request DMA
[ 3.692892] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 3.756462] systemd[1]: Created slice system-getty.slice.
[ 473.023856] ttyS1 - failed to request DMA
And following is the device tree code :
hps_0_uart1: serial@0xffc03000 {
compatible = "snps,dw-apb-uart-17.0", "snps,dw-apb-uart";
reg = <0xffc03000 0x00000100>;
interrupt-parent = <&hps_0_arm_gic_0>;
interrupts = <0 163 4>;
clocks = <&l4_sp_clk>;
reg-io-width = <4>; /* embeddedsw.dts.params.reg-io-width type NUMBER */
reg-shift = <2>; /* embeddedsw.dts.params.reg-shift type NUMBER */
status = "okay"; /* embeddedsw.dts.params.status type STRING */
}; //end serial@0xffc03000 (hps_0_uart1)
How did you identify that you have been using altera UART 16550.?
Should my code have the following :
compatible = “16550A” ??
Background :
I am able to open the device file ‘/dev/ttyS1’, however any write to the file descriptor does not provide any change in signal at the transmitter pin(configured GPIOs as Tx and Rx).