Changes between Version 3 and Version 4 of serial


Ignore:
Timestamp:
11/30/2017 07:54:20 PM (7 years ago)
Author:
Tim Harvey
Comment:

added newport UART details

Legend:

Unmodified
Added
Removed
Modified
  • serial

    v3 v4  
    1515[=#mapping]
    1616== Linux serial port devices ==
    17 Serial UARTS will be represented as /dev/tty* devices depending on the CPU architecture. For avila/cambria/laguna product families the first UART is /dev/ttyS0 and for Ventana product families the UARTs are /dev/ttymxc*.
     17Serial UARTS will be represented as /dev/tty* devices depending on the CPU architecture.
    1818
    1919The following table describes the various on-board UARTs for standard Gateworks products. Please consult the board specific hardware user manual for additional details:
    2020||= Family =||= Board =||= HW Dev =|| SW Dev =||= Function         =||
     21|| Newport  || GW630x  || UART0    || ttyAMA0  || console: 3.3V TTL J12 ||
     22||          ||         || UART1    || ttyAMA1  || GPS ||
     23||          ||         || UART2    || ttyAMA2  || RS232/RS485 J12 ^^^1^^^ ||
     24||          ||         || UART3    || ttyAMA3  || RS232 J12 ^^^1^^^ ||
     25|| ||
    2126|| Ventana  || GW51xx  || UART1    || ttymxc0  || GPS ||
    2227||          ||         || UART2    || ttymxc1  || console: 3.3V TTL JTAG J10/J11 ||
     
    4247||          || GW16111 || UART2    || ttymxc1  || console: 3.3V TTL JTAG J8 / RS232 J16 / RS485 J20 ||
    4348||          ||         || UART3    || ttymxc2  || RS232 J16 ||
     49|| ||
    4450|| Laguna   || GW2380/2/3 || UART0    || ttyS0    || console: 3.3V TTL JTAG J2 / 3.3V TTL J4 ||                           
    4551||          ||         || UART1    || ttyS1    || GPS                                        ||
     
    5460||          ||         || UART1    || ttyS1    || RS232 J15                                  ||
    5561||          ||         || UART2    || ttyS2    || GPS                                        ||
     62|| ||
    5663|| Rincon   || GW2361  || UART0    || ttyS0    || console: 3.3V TTL JTAG J2              ||
    5764||          ||         || UART1    || ttyS1    || RS232 J7                               ||
    5865||          ||         || UART2    || ttyS2    || RS485 J6                               ||
     66|| ||
    5967|| Cambria  || GW2350  || UART0    || ttyS0    || console: 3.3V TTL JTAG J1/J10          ||
    6068||          ||         || UART1    || ttyS1    || GPS                                    ||
     
    6371||          ||         || UART1    || ttyS1    || GPS                                    ||
    6472||          ||         || UART2    || ttyS2    || RS485 J3                               ||
     73|| ||
    6574|| Avila    || GW2347  || UART0    || ttyS0    || console: 3.3V TTL JTAG J2 / RS232 J5   ||
    6675||          ||         || UART1    || ttyS1    || UART: RS232 J3                         ||
     
    7180||          || GW2357  || UART0    || ttyS0    || console: 3.3V TTL JTAG J2 / RS232 J6   ||
    7281||          ||         || UART1    || ttyS1    || UART: RS232 J36                        ||
    73 
     82 1. Depends on software configuration
    7483
    7584
     
    215224== Specific Model Notes ==
    216225
    217 === GW2382 ===
     226=== Newport ===
     227Most Newport products have a flexible [http://dev.gateworks.com/datasheets/sp335e.pdf MaxLinear SP335E] RS-232/RS-485/RS-422 transceiver which is software configurable. For these boards the Bootloader {{{hwconfig}}} environment variable can be used to configure the functionality of the serial ports at power-up. See [wiki:newport/#hwconfig Newport bootloader hwconfig] for more details.
     228
     229=== Laguna: GW2382 ===
    218230J8 is an expansion header and is by default mapped to /dev/ttyS2.  J2 and J4 are connected to /dev/ttyS0.  The GPS is hooked to /dev/ttyS1.
    219231
     
    251263The following table and sections below provides per-board details of RS485:
    252264||= Family  =||= Board                 =||= TXEN  =||= Transceiver =||= Termination =||= Fail-Safe Bias =||= Notes =||
     265|| Newport   || GW630x                  || gpio12  || [https://www.exar.com/ds/sp335e.pdf SP335E] || optional (gpio16) || included || see [#newport-rs485 newport RS485 below] ||
     266|| ||
     267|| Ventana   || GW52xx '''(optional)''' || gpio193 || [http://dev.gateworks.com/datasheets/MAX14840E-MAX14841E.pdf MAX14840] || optional     || optional || TIOCSRS485 support ||
     268||           || GW53xx '''(optional)''' || gpio193 || [http://dev.gateworks.com/datasheets/MAX14840E-MAX14841E.pdf MAX14840] || optional     || optional || TIOCSRS485 support ||
     269||           || GW54xx '''(optional)''' || gpio193 || [http://dev.gateworks.com/datasheets/MAX14840E-MAX14841E.pdf MAX14840] || optional     || optional || TIOCSRS485 support ||
     270||           || GW551x+GW16111          || gpio19  || [http://dev.gateworks.com/datasheets/MAX14840E-MAX14841E.pdf MAX14840] || optional     || 4.75k pull up/down || see [#ventana-rs485 ventana RS485 below] ||
     271|| Laguna    || GW238x+GW16067          || gpio3   || [http://dev.gateworks.com/datasheets/MAX3483-MAX3491.pdf MAX3485] || optional      || 4.75k pull up/down || use tcdrain() and userspace /sys/class/gpio/gpio3 ||
     272|| ||
     273|| Rincon    || GW2361 '''(optional)''' || RTS     || [http://dev.gateworks.com/datasheets/MAX3483-MAX3491.pdf MAX3485] || off-board     || off-board || use tcdrain() and TIOCMBIC/TIOCMBIS ioctl ||
     274|| ||
    253275|| Cambria   || GW235x '''(optional)''' || DTR     || [http://dev.gateworks.com/datasheets/MAX3483-MAX3491.pdf MAX3485] || optional      || optional  || use tcdrain() and TIOCMBIC/TIOCMBIS ioctl ||
    254276|| ||
    255 || Rincon    || GW2361 '''(optional)''' || RTS     || [http://dev.gateworks.com/datasheets/MAX3483-MAX3491.pdf MAX3485] || off-board     || off-board || use tcdrain() and TIOCMBIC/TIOCMBIS ioctl ||
    256 || ||
    257 || Laguna    || GW238x+GW16067          || gpio3   || [http://dev.gateworks.com/datasheets/MAX3483-MAX3491.pdf MAX3485] || optional      || 4.75k pull up/down || use tcdrain() and userspace /sys/class/gpio/gpio3 ||
    258 || ||
    259 || Ventana   || GW551x+GW16111          || gpio19  || [http://dev.gateworks.com/datasheets/MAX14840E-MAX14841E.pdf MAX14840] || optional      || 4.75k pull up/down || see [#ventana-rs485 ventana RS485 below] ||
    260 || Ventana   || GW52xx '''(optional)''' || gpio193 || [http://dev.gateworks.com/datasheets/MAX14840E-MAX14841E.pdf MAX14840] || optional      || optional || TIOCSRS485 support ||
    261 || Ventana   || GW53xx '''(optional)''' || gpio193 || [http://dev.gateworks.com/datasheets/MAX14840E-MAX14841E.pdf MAX14840] || optional      || optional || TIOCSRS485 support ||
    262 || Ventana   || GW54xx '''(optional)''' || gpio193 || [http://dev.gateworks.com/datasheets/MAX14840E-MAX14841E.pdf MAX14840] || optional      || optional || TIOCSRS485 support ||
    263277
    264278Note that if a driver supports TIOCSRS485 (in other words it handles the assertion/de-assertion of TXEN in the driver) this is preferred over using tcdrain() to determine when the FIFO is empty as tcdrain() can have considerable latency at small transmit sizes.
     
    360374 * 121ohm termination (R38) is loaded and can be enabled by placing a jumper on '''J10:9-10'''
    361375 * 4.75k pull-up on D+, 4.75k pull-down on D- fail-safe bias resistors are loaded (R37/R40) (bus defaults to logic 1 - never idle)
     376
     377
     378[=#newport-rs485]
     379=== Newport ===
     380The GW630x support optional half-duplex, multi-drop RS585:
     381 * CN80XX / CN81XX UART2 (/dev/ttyAMA2)
     382 * [https://www.exar.com/ds/sp335e.pdf SP335E] transceiver
     383 * optional on-board termination (enabled by gpio16)
     384 * in-chip fail-safe protection to default idle inputs to logic-high (no external bias resistors required)
     385 * TXEN connected to gpio12
    362386
    363387