Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 # # Copyright (c) 2018 Google LLC
0003 # # Copyright (c) 2021 Aspeed Technology Inc.
0004 %YAML 1.2
0005 ---
0006 $id: "http://devicetree.org/schemas/soc/aspeed/uart-routing.yaml#"
0007 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0008 
0009 title: Aspeed UART Routing Controller
0010 
0011 maintainers:
0012   - Oskar Senft <osk@google.com>
0013   - Chia-Wei Wang <chiawei_wang@aspeedtech.com>
0014 
0015 description:
0016   The Aspeed UART routing control allow to dynamically route the inputs for
0017   the built-in UARTS and physical serial I/O ports.
0018 
0019   This allows, for example, to connect the output of UART to another UART.
0020   This can be used to enable Host <-> BMC communication via UARTs, e.g. to
0021   allow access to the Host's serial console.
0022 
0023   This driver is for the BMC side. The sysfs files allow the BMC userspace
0024   which owns the system configuration policy, to configure how UARTs and
0025   physical serial I/O ports are routed.
0026 
0027 properties:
0028   compatible:
0029     items:
0030       - enum:
0031           - aspeed,ast2400-uart-routing
0032           - aspeed,ast2500-uart-routing
0033           - aspeed,ast2600-uart-routing
0034   reg:
0035     maxItems: 1
0036 
0037 required:
0038   - compatible
0039 
0040 additionalProperties: false
0041 
0042 examples:
0043   - |
0044     lpc: lpc@1e789000 {
0045         compatible = "aspeed,ast2600-lpc-v2", "simple-mfd", "syscon";
0046         reg = <0x1e789000 0x1000>;
0047 
0048         #address-cells = <1>;
0049         #size-cells = <1>;
0050         ranges = <0x0 0x1e789000 0x1000>;
0051 
0052         uart_routing: uart-routing@98 {
0053             compatible = "aspeed,ast2600-uart-routing";
0054             reg = <0x98 0x8>;
0055         };
0056     };