zephyr/dts/bindings/serial/zephyr,uart-emul.yaml
Bjarki Arge Andreasen 27dfdd737e drivers: serial: emul: Make UART FIFO size realistic
Real UARTs usually write 1 to a few bytes at a time through a
latch buffer. Add latch buffer property to binding for
uart_emul and limit fifo_read and fifo_fill to not exceed the
latch buffer.

Signed-off-by: Bjarki Arge Andreasen <bjarkix123@gmail.com>
2023-11-03 11:44:12 +01:00

34 lines
647 B
YAML

# Copyright (c) 2023, Fabian Blatz
# SPDX-License-Identifier: Apache-2.0
description: UART Emulator
compatible: "zephyr,uart-emul"
include: uart-controller.yaml
properties:
tx-fifo-size:
type: int
default: 256
description: |
Size of the virtual UART TX FIFO
rx-fifo-size:
type: int
default: 256
description: |
Size of the virtual UART RX FIFO
loopback:
type: boolean
description: |
Connects TX to RX internally creating a loop back connection. Useful
for testing.
latch-buffer-size:
type: int
default: 1
description: |
Size of the virtual UART latch buffer.