TS-7250-V3 TS-SER1: Difference between revisions
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 12: | Line 12: | ||
The TS-SER1 provides a single RS-232 port. | The TS-SER1 provides a single RS-232 port. | ||
{{:TS-7250-V3 16550 Notes}} | |||
This below example will set up the serial devices for a TS-SER1 with the IRQ6 and COM3 jumpers installed. Open the device tree at arch/arm/boot/dts/imx6ul-ts7250v3. | This below example will set up the serial devices for a TS-SER1 with the IRQ6 and COM3 jumpers installed. Open the device tree at arch/arm/boot/dts/imx6ul-ts7250v3.dtsi. Add the highlighted section to the device tree and recompile. | ||
<source lang=json highlight="13 | <source lang=json highlight="6-13" line> | ||
pc104bus: fpgaisa@50 { | pc104bus: fpgaisa@50 { | ||
... | |||
#address-cells = <0x1>; | #address-cells = <0x1>; | ||
#size-cells = <0x1>; | #size-cells = <0x1>; | ||
Line 32: | Line 27: | ||
reg = <0x3e8 8>; | reg = <0x3e8 8>; | ||
interrupt-parent = <&fpga_intc>; | interrupt-parent = <&fpga_intc>; | ||
interrupts = <15>; | interrupts = <15 IRQ_TYPE_LEVEL_HIGH>; | ||
}; | }; | ||
}; | }; |
Latest revision as of 10:32, 29 September 2023
Product Page | |
8-bit IO |
---|
The TS-SER1 provides a single RS-232 port.
This peripheral implements 16550A based UARTs which require a kernel driver. Under Linux this requires a device tree change. See the Kernel compile section for more details about getting set up the compile the kernel.
In general for 16550 UARTs we recommend these kernel config options:
CONFIG_HZ_PERIODIC=y
CONFIG_HZ_1000=y
CONFIG_SERIAL_8250_TS=y
The default kernel is ideal for low power, but has some tradeoffs with latency. A 16550 only has a 16 byte FIFO and needs to be serviced with relatively low latency, so a the above options make the latency far more deterministic. These changes are necessary to run at 115200 and not drop any data.
This below example will set up the serial devices for a TS-SER1 with the IRQ6 and COM3 jumpers installed. Open the device tree at arch/arm/boot/dts/imx6ul-ts7250v3.dtsi. Add the highlighted section to the device tree and recompile.
pc104bus: fpgaisa@50 {
...
#address-cells = <0x1>;
#size-cells = <0x1>;
/* TS-SER1 */
ts16550@3e8 {
compatible = "technologic,ts16550";
reg = <0x3e8 8>;
interrupt-parent = <&fpga_intc>;
interrupts = <15 IRQ_TYPE_LEVEL_HIGH>;
};
};
On the next boot check the "dmesg" output to verify it loaded:
root@tsimx6:~# dmesg | grep ts16550 [ 2.259413] ts16550 50004050.fpgaisa:ts16550@3e8: Adding 16550 UART ttyS0
The device node /dev/ttyS0 can be used to access this UART.