blob: 22a58e1b88cf0bdea22ae1f003cf7287f6e6c746 [file]
# Copyright 2024 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description: |
UART bridge
Bridges data from two serial devices, for example a USB CDC-ACM serial port
and an hardware UART.
The device node must have exactly two child nodes for the two devices to be
bridged together. Example configuration:
uart-bridge {
compatible = "zephyr,uart-bridge";
usb {
device = <&cdc_acm_uart_ec>;
transfer-size = <64>;
};
uart {
device = <&uart4>;
transfer-size = <1>;
};
};
compatible: "zephyr,uart-bridge"
child-binding:
description: Peer device node
properties:
device:
type: phandle
description: |
Phandle of a serial device.
transfer-size:
type: int
description: |
The maximum number of bytes to try and transfer to the device in one
go.