Перейти к содержанию

Навигация

SC16IS752/en: различия между версиями

Нет описания правки
(Новая страница: «Connected to SPI. GPIO is used as chip-select.»)
 
(не показано 14 промежуточных версий этого же участника)
Строка 1: Строка 1:
<languages/>
<languages/>
'''SC16IS752''' is a chip that controls serial ports in some versions of the Wiren Board.
'''SC16IS752''' is a chip that controls serial ports in some versions of the Wiren Board controllers.




Строка 11: Строка 11:
Connected to SPI. GPIO is used as chip-select.
Connected to SPI. GPIO is used as chip-select.


Для работы в Linux используется [[Special:MyLanguage/драйвер sc16is7x2|драйвер sc16is7x2]], который пока не портирован в upstream. Его можно найти в нашем репозитории Linux [https://github.com/contactless/linux/blob/v3.12-rc3-imxv5-x0.3/drivers/tty/serial/sc16is7x2.c].
Linux uses the [[Special:MyLanguage/драйвер sc16is7x2/en|sc16is7x2 driver]],which has not been ported to upstream yet. It can be found in our Linux repository [https://github.com/contactless/linux/blob/v3.12-rc3-imxv5-x0.3/drivers/tty/serial/sc16is7x2.c].
Драйвер включён в стандартный образ.
The driver is included in the standard image.




===GPIO===
===GPIO===


[[Special:MyLanguage/Драйвер sc16is7x2|Драйвер sc16is7x2]] экспортирует 8 GPIO в стандартный sysfs-интерфейс Linux под номерами 120-127.
[[Special:MyLanguage/Драйвер sc16is7x2/en|sc16is7x2 driver]] exports 8 GPIOs into the standard Linux sysfs-interface under numbers 120-127.




== В Wiren Board Smart Home 3.5 ==
== In Wiren Board Smart Home 3.5 ==




===UART0===
===UART0===


Устройство в Linux: <b>/dev/ttyNSC0</b>.
The device in Linux: <b>/dev/ttyNSC0</b>.
Полудуплексный [[Special:MyLanguage/RS-485|RS-485]]-трансивер. Порт RS-485-1 (зелёная пара клеммников).
Half-duplex [[Special:MyLanguage/RS-485|RS-485]]-transceiver. RS-485 port-1 (the green pair of terminals).


Направление работы трансивер задаётся чипом с помощью сигнала RTS автоматически, аппаратный контроль потока должен быть отключен. В следующих версиях драйвера, режим RS-485 возможно будет необходимо активировать из userspace.
The direction of operation of the transceiver is set by the chip using the RTS signal automatically, the hardware flow control must be disabled. RS-485 mode may need to be activated from the userspace in future versions of the driver.




===UART1===
===UART1===


Устройство в Linux: <b>/dev/ttyNSC1</b>.
The device in Linux: <b>/dev/ttyNSC1</b>.
Полудуплексный [[Special:MyLanguage/RS-485|RS-485]]-трансивер. Порт RS-485-2 (синяя пара клеммников).
Half-duplex [[Special:MyLanguage/RS-485|RS-485]]-transceiver. RS-485 port-2 (the blue pair of terminals).


Управляющие сигналы/GPIO, а также линии RX/TX выведены на разъём [[WB SH 3.5: UEXT2|WB SH 3.5: UEXT2]].  
The control signals/GPIO and RX/TX lines are output to the [[WB SH 3.5: UEXT2/en|WB SH 3.5: UEXT2]] connector.  
Разъём предназначен для использования GPIO, а также для подключения модуля расширения [[Special:MyLanguage/RS232|RS232]].
The connector is designed to use GPIO, as well as to connect the RS232 extension module [[Special:MyLanguage/RS232/ru|RS232]].




== В Wiren Board 2.8==
== In Wiren Board 2.8==




===UART0===
===UART0===


Устройство в Linux: <b>/dev/ttyNSC0</b>.
The device in Linux: <b>/dev/ttyNSC0</b>. TX/RX port lines are output to [[UEXT UEXT2|UEXT UEXT2]]. A half-duplex  [[RS-485|RS-485]]-transceiver(if any) is connected to them  in parallel.
TX/RX линии порта выведены на разъём [[Special:MyLanguage/UEXT UEXT2|UEXT UEXT2]]. Параллельно к ним подключен полудуплексный [[Special:MyLanguage/RS-485|RS-485]]-трансивер (если есть).
The direction of operation of the transceiver is set by the chip using the RTS signal automatically, the hardware flow control must be disabled. In future versions of the driver, RS-485 mode may need to be activated from the userspace.
Направление работы трансивер задаётся чипом с помощью сигнала RTS автоматически, аппаратный контроль потока должен быть отключен. В следующих версиях драйвера, режим RS-485 возможно будет необходимо активировать из userspace.




===UART1===
===UART1===


Порт <b> /dev/ttyNSC1 </b> в Linux.
<b> /dev/ttyNSC1 </b> port in Linux.
К TX/RX-линиям порта подключен GPS-модуль [[Special:MyLanguage/SIM68V|SIM68V]].
The [[Special:MyLanguage/SIM68V/en|SIM68V]] GPS module is connected to the TX/RX lines of the port.




===GPIO===
===GPIO===


7 линий GPIO выведены на отверстия с шагом 2.54'' на плате Wiren Board.
7 GPIO lines are displayed on the holes in increments of 2.54'' on the mainboard of the Wiren Board controller. A PPS signal from a GPS modem is connected to one of the GPIO lines.
К одной из линий GPIO подключен сигнал PPS с GPS-модема.


[[Special:MyLanguage/Драйвер sc16is7x2|Драйвер sc16is7x2]] экспортирует 8 GPIO в стандартный sysfs-интерфейс Linux под номерами 120-127.
[[Special:MyLanguage/Драйвер sc16is7x2/en|sc16is7x2 driver]] exports 8 GPIOs into the standard Linux sysfs-interface under numbers 120-127.
12 063

правки