TS-7250-V3 TS-SER1: Difference between revisions

From embeddedTS Manuals
(Created page with "{{Infobox |title = TS-SER1 |image = 300px |titlestyle = |headerstyle = background:#ccf; |labelstyle = width:33% |datastyle = |data...")
 
No edit summary
Line 15: Line 15:


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.dts.  Add the highlighted section to the device tree and recompile.
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.dts.  Add the highlighted section to the device tree and recompile.
<source lang=json highlight="13-55" line>
<source lang=json highlight="13-22" line>
pc104bus: fpgaisa@50 {
pc104bus: fpgaisa@50 {
compatible = "technologic,pc104-bus";
compatible = "technologic,pc104-bus";

Revision as of 17:42, 4 March 2020

TS-SER1
Ts-ser1.jpg
Product Page
8-bit IO

The TS-SER1 provides a single RS-232 port.

The TS-SER1 implements 16550A based UART 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.

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.dts. Add the highlighted section to the device tree and recompile.

pc104bus: fpgaisa@50 {
	compatible = "technologic,pc104-bus";
	reg = <0x50 0x4>;

	ranges = <0 0 0x1000>;
	reset-gpio = <&gpio3 7 0>;

	#address-cells = <0x1>;
	#size-cells = <0x1>;

	status = "okay";

	/* TS-SER1 */
	ts16550@3e8 {
		compatible = "technologic,ts16550";

		reg = <0x3e8 8>;
		interrupt-parent = <&fpga_intc>;
		interrupts = <15>;

		status = "okay";
	};
};

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

Now that these are loaded:

Device Description
/dev/ttyS0 COMA
/dev/ttyS1 COMB
/dev/ttyS3 COMC
/dev/ttyS4 COMD