Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 # Copyright 2019 BayLibre, SAS
0003 %YAML 1.2
0004 ---
0005 $id: "http://devicetree.org/schemas/serial/amlogic,meson-uart.yaml#"
0006 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0007 
0008 title: Amlogic Meson SoC UART Serial Interface
0009 
0010 maintainers:
0011   - Neil Armstrong <neil.armstrong@linaro.org>
0012 
0013 description: |
0014   The Amlogic Meson SoC UART Serial Interface is present on a large range
0015   of SoCs, and can be present either in the "Always-On" power domain or the
0016   "Everything-Else" power domain.
0017 
0018   The particularity of the "Always-On" Serial Interface is that the hardware
0019   is active since power-on and does not need any clock gating and is usable
0020   as very early serial console.
0021 
0022 properties:
0023   compatible:
0024     oneOf:
0025       - description: Always-on power domain UART controller
0026         items:
0027           - enum:
0028               - amlogic,meson6-uart
0029               - amlogic,meson8-uart
0030               - amlogic,meson8b-uart
0031               - amlogic,meson-gx-uart
0032               - amlogic,meson-s4-uart
0033           - const: amlogic,meson-ao-uart
0034       - description: Everything-Else power domain UART controller
0035         enum:
0036           - amlogic,meson6-uart
0037           - amlogic,meson8-uart
0038           - amlogic,meson8b-uart
0039           - amlogic,meson-gx-uart
0040           - amlogic,meson-s4-uart
0041 
0042   reg:
0043     maxItems: 1
0044 
0045   interrupts:
0046     maxItems: 1
0047 
0048   clocks:
0049     items:
0050       - description: external xtal clock identifier
0051       - description: the bus core clock, either the clk81 clock or the gate clock
0052       - description: the source of the baudrate generator, can be either the xtal or the pclk
0053 
0054   clock-names:
0055     items:
0056       - const: xtal
0057       - const: pclk
0058       - const: baud
0059 
0060   fifo-size:
0061     description: The fifo size supported by the UART channel.
0062     $ref: /schemas/types.yaml#/definitions/uint32
0063     enum: [64, 128]
0064 
0065 required:
0066   - compatible
0067   - reg
0068   - interrupts
0069   - clocks
0070   - clock-names
0071 
0072 additionalProperties: false
0073 
0074 examples:
0075   - |
0076     serial@84c0 {
0077           compatible = "amlogic,meson-gx-uart";
0078           reg = <0x84c0 0x14>;
0079           interrupts = <26>;
0080           clocks = <&xtal>, <&pclk>, <&xtal>;
0081           clock-names = "xtal", "pclk", "baud";
0082     };