UART PS in Linux
Linux DevicetreeFeatures supported
Programmable baud rate generator
64-byte receive and transmit FIFOs
Programmable protocol:° 6, 7, or 8 data bits 1, 1.5, or 2 stop bits
Odd, even, space, mark, or no parity
Parity, framing and overrun error detection
Line-break generation and detection
Interrupts generation
Known Issues and Limitations
None
Work to be done
None
Kernel Configuration OptionsKernel Configuration Options
To enable the uart driver in the linux kernel you either have to integrate it or build it as kernel module (.ko). you can enable it with:
CONFIG_SERIAL_XILINX_PS_UART=y
CONFIG_SERIAL_XILINX_PS_UART_CONSOLE=y
Devicetree
Here's how the devicetree entry could look like.
uart0: serial@e0000000 {
interrupts = <0 27 4>;
};
Enable the kernel driver
To enable the uartlite driver in the linux kernel you either have to integrate it or build it as kernel module (.ko). You can enable it with:
CONFIG_SERIAL_XILINX_PS_UART=y
CONFIG_SERIAL_XILINX_PS_UART_CONSOLE=y
<span style="font-family: arial,helvetica,sans-serif; font-size: 1.3em; line-height: 1.5;">**kernel logs**</span>
rºªÂ3.749085] ff000000.serial: ttyPS0 at MMIO 0xff000000 (irq = 204, base_baud = 6250000) is a xuartps
ªconsole [ttyPS0] enabled
[ 3.758115] console [ttyPS0] enabled
[ 3.765083] bootconsole [uart0] disabled
[ 3.765083] bootconsole [uart0] disabled
[ 3.773082] ff010000.serial: ttyPS1 at MMIO 0xff010000 (irq = 205, base_baud = 6250000) is a xuartps
[ 3.787228] brd: module loaded
Test logs
root@Xilinx-ZCU102-2015_4:~# cat /proc/tty/driver/xuartps
2016.3
tty: serial: xuartps: Wait for rx and tx done status
Mainline status
Any further changes will be upstreamed.
Related Links
Linux Drivers