TS-7250-V3 TS-ISO485: Difference between revisions
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
The TS-ISO485 implements 16550A based UARTs which require a kernel driver. Under Linux this requires a device tree change. See the [[#Compile the kernel|Kernel compile section]] for more details about getting set up the compile the kernel. | The TS-ISO485 implements 16550A based UARTs which require a kernel driver. Under Linux this requires a device tree change. See the [[#Compile the kernel|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 the IRQ2 | This below example will set up the serial devices for a TS-ISO485 with the IRQ2 and IRQ4 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="6-22" line> | <source lang=json highlight="6-22" line> | ||
pc104bus: fpgaisa@50 { | pc104bus: fpgaisa@50 { | ||
Line 38: | Line 38: | ||
reg = <0x2e8 8>; | reg = <0x2e8 8>; | ||
interrupt-parent = <&fpga_intc>; | interrupt-parent = <&fpga_intc>; | ||
interrupts = < | interrupts = <16>; | ||
}; | }; | ||
}; | }; | ||
</source> | </source> | ||
On the next boot check the "dmesg" output to verify it loaded: | On the next boot check the "dmesg" output to verify it loaded: |
Revision as of 10:05, 29 September 2023
Product Page | |
8-bit IO |
---|
The TS-ISO485 provides two isolated half duplex RS-485 ports, or two isolated RS-422 ports.
Refer to the TS-ISO485 manual for more information about the hardware UART usage.
The TS-ISO485 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.
This below example will set up the serial devices for a TS-ISO485 with the IRQ2 and IRQ4 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-ISO485 COMA */
ts16550@3e8 {
compatible = "technologic,ts16550";
reg = <0x3e8 8>;
interrupt-parent = <&fpga_intc>;
interrupts = <15>;
};
/* TS-ISO485 COMB */
ts16550@2e8 {
compatible = "technologic,ts16550";
reg = <0x2e8 8>;
interrupt-parent = <&fpga_intc>;
interrupts = <16>;
};
};
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 [ 2.268166] ts16550 50004050.fpgaisa:ts16550@2e8: 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.