TS-7250-V3 TS-SER2

From Technologic Systems Manuals
TS-SER2
Ts-ser2.jpg
Product Page
8-bit IO

The TS-SER2 provides two RS-232, RS-485 half duplex or full duplex (RS-422) ports and a parallel port.

Refer to the TS-SER2 manual for hardware documentation.

The parallel port is currently not supported on this platform.

The TS-ISO485 implements 16550A based UARTs which requires 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.

This below example will set up the serial devices for a TS-ISO485 with JP 14 through JP18, COMB 6, and COMA 5 jumpers installed. Open the device tree at arch/arm/boot/dts/imx6ul-ts7250v3.dts. Add the highlighted section to the device tree and recompile.

 1 pc104bus: fpgaisa@50 {
 2 	compatible = "technologic,pc104-bus";
 3 	reg = <0x50 0x4>;
 4 
 5 	ranges = <0 0 0x1000>;
 6 	reset-gpio = <&gpio3 7 0>;
 7 
 8 	#address-cells = <0x1>;
 9 	#size-cells = <0x1>;
10 
11 	status = "okay";
12 
13 	/* TS-SER2 COMA */
14 	ts16550@2e8 {
15 		compatible = "technologic,ts16550";
16 
17 		reg = <0x2e8 8>;
18 		interrupt-parent = <&fpga_intc>;
19 		interrupts = <14>;
20 
21 		status = "okay";
22 	};
23 
24 	/* TS-SER2 COMB */
25 	ts16550@3e8 {
26 		compatible = "technologic,ts16550";
27 
28 		reg = <0x3e8 8>;
29 		interrupt-parent = <&fpga_intc>;
30 		interrupts = <15>;
31 
32 		status = "okay";
33 	};
34 };

On the next boot check the "dmesg" output to verify it loaded:

root@tsimx6:~# dmesg | grep ts16550
[    2.259413] ts16550 50004050.fpgaisa:ts16550@2e8: Adding 16550 UART ttyS0
[    2.268166] ts16550 50004050.fpgaisa:ts16550@3e8: Adding 16550 UART ttyS1

Now that these are loaded:

Device Description
/dev/ttyS0 COMA
/dev/ttyS1 COMB

In this mode COMA/COMB are full duplex RS-485 (RS-422). See the TS-ISO485 manual for mroe details on the HD jumpers to use half duplex.