zephyr,uart-bitbang

Vendor: The Zephyr Project

Note

An implementation of a driver matching this compatible is available in drivers/serial/uart_bitbang.c.

Description

These nodes are “uart” bus nodes.

Zephyr UART Bitbang driver

Properties

Properties not inherited from the base binding file.

Name

Type

Details

tx-gpios

phandle-array

Tx gpio info.

rx-gpios

phandle-array

Rx gpio info.

de-gpios

phandle-array

RS485 driver enable gpio info.

tx-timer

phandle

Reference to a TIMER instance to handle Tx data.
Tx timer and Rx timer can be the same instance in the case of half-duplex
communications (no transmission and reception of data at the same time).

rx-timer

phandle

Reference to a TIMER instance to handle Rx data.
Tx timer and Rx timer can be the same instance in the case of half-duplex
communications (no transmission and reception of data at the same time).

tx-fifo-size

int

Size of the Tx ring buffer.

Default value: 64

rx-fifo-size

int

Size of the Rx ring buffer.

Default value: 64

msb

boolean

Indicate data are transferred Most Significant Bit (MSB) first.

hw-rs485-flow-control

boolean

Set to enable DE (driver enable) signal, which can be used to enable
the driver of an external RS-485 transceiver. Note hw-flow-control
should be set to false.

current-speed

int

Initial baud rate setting for UART

hw-flow-control

boolean

Set to enable RTS/CTS flow control at boot time

parity

string

Configures the parity of the adapter. Enumeration id 0 for none, 1 for odd
and 2 for even parity, 3 for mark parity and 4 for space parity.
Default to none if not specified.

Default value: none

Legal values: 'none', 'odd', 'even', 'mark', 'space'

stop-bits

string

Sets the number of stop bits.

Legal values: '0_5', '1', '1_5', '2'

data-bits

int

Sets the number of data bits.

Legal values: 5, 6, 7, 8, 9