14df7e9a1SNeil Armstrong# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 24df7e9a1SNeil Armstrong# Copyright 2019 BayLibre, SAS 34df7e9a1SNeil Armstrong%YAML 1.2 44df7e9a1SNeil Armstrong--- 5cb95de8dSRob Herring$id: http://devicetree.org/schemas/serial/amlogic,meson-uart.yaml# 6cb95de8dSRob Herring$schema: http://devicetree.org/meta-schemas/core.yaml# 74df7e9a1SNeil Armstrong 84df7e9a1SNeil Armstrongtitle: Amlogic Meson SoC UART Serial Interface 94df7e9a1SNeil Armstrong 104df7e9a1SNeil Armstrongmaintainers: 11c6a43fb3SNeil Armstrong - Neil Armstrong <neil.armstrong@linaro.org> 124df7e9a1SNeil Armstrong 134df7e9a1SNeil Armstrongdescription: | 144df7e9a1SNeil Armstrong The Amlogic Meson SoC UART Serial Interface is present on a large range 154df7e9a1SNeil Armstrong of SoCs, and can be present either in the "Always-On" power domain or the 164df7e9a1SNeil Armstrong "Everything-Else" power domain. 174df7e9a1SNeil Armstrong 184df7e9a1SNeil Armstrong The particularity of the "Always-On" Serial Interface is that the hardware 194df7e9a1SNeil Armstrong is active since power-on and does not need any clock gating and is usable 204df7e9a1SNeil Armstrong as very early serial console. 214df7e9a1SNeil Armstrong 224cb07402SKrzysztof KozlowskiallOf: 234cb07402SKrzysztof Kozlowski - $ref: serial.yaml# 244cb07402SKrzysztof Kozlowski 254df7e9a1SNeil Armstrongproperties: 264df7e9a1SNeil Armstrong compatible: 274df7e9a1SNeil Armstrong oneOf: 284df7e9a1SNeil Armstrong - description: Always-on power domain UART controller 294df7e9a1SNeil Armstrong items: 304df7e9a1SNeil Armstrong - enum: 314df7e9a1SNeil Armstrong - amlogic,meson6-uart 324df7e9a1SNeil Armstrong - amlogic,meson8-uart 334df7e9a1SNeil Armstrong - amlogic,meson8b-uart 344df7e9a1SNeil Armstrong - amlogic,meson-gx-uart 3534de6666SXianwei Zhao - amlogic,meson-s4-uart 36*dd825a4dSDmitry Rokosov - amlogic,meson-a1-uart 374df7e9a1SNeil Armstrong - const: amlogic,meson-ao-uart 38add5dfe8SMartin Blumenstingl - description: Always-on power domain UART controller on G12A SoCs 39add5dfe8SMartin Blumenstingl items: 40add5dfe8SMartin Blumenstingl - const: amlogic,meson-g12a-uart 41add5dfe8SMartin Blumenstingl - const: amlogic,meson-gx-uart 42add5dfe8SMartin Blumenstingl - const: amlogic,meson-ao-uart 434df7e9a1SNeil Armstrong - description: Everything-Else power domain UART controller 444df7e9a1SNeil Armstrong enum: 454df7e9a1SNeil Armstrong - amlogic,meson6-uart 464df7e9a1SNeil Armstrong - amlogic,meson8-uart 474df7e9a1SNeil Armstrong - amlogic,meson8b-uart 484df7e9a1SNeil Armstrong - amlogic,meson-gx-uart 4934de6666SXianwei Zhao - amlogic,meson-s4-uart 50*dd825a4dSDmitry Rokosov - amlogic,meson-a1-uart 51add5dfe8SMartin Blumenstingl - description: Everything-Else power domain UART controller on G12A SoCs 52add5dfe8SMartin Blumenstingl items: 53add5dfe8SMartin Blumenstingl - const: amlogic,meson-g12a-uart 54add5dfe8SMartin Blumenstingl - const: amlogic,meson-gx-uart 554df7e9a1SNeil Armstrong 564df7e9a1SNeil Armstrong reg: 574df7e9a1SNeil Armstrong maxItems: 1 584df7e9a1SNeil Armstrong 594df7e9a1SNeil Armstrong interrupts: 604df7e9a1SNeil Armstrong maxItems: 1 614df7e9a1SNeil Armstrong 624df7e9a1SNeil Armstrong clocks: 634df7e9a1SNeil Armstrong items: 644df7e9a1SNeil Armstrong - description: external xtal clock identifier 654df7e9a1SNeil Armstrong - description: the bus core clock, either the clk81 clock or the gate clock 664df7e9a1SNeil Armstrong - description: the source of the baudrate generator, can be either the xtal or the pclk 674df7e9a1SNeil Armstrong 684df7e9a1SNeil Armstrong clock-names: 694df7e9a1SNeil Armstrong items: 704df7e9a1SNeil Armstrong - const: xtal 714df7e9a1SNeil Armstrong - const: pclk 724df7e9a1SNeil Armstrong - const: baud 734df7e9a1SNeil Armstrong 74f985b0b6SNeil Armstrong fifo-size: 75f985b0b6SNeil Armstrong description: The fifo size supported by the UART channel. 76f985b0b6SNeil Armstrong $ref: /schemas/types.yaml#/definitions/uint32 77f985b0b6SNeil Armstrong enum: [64, 128] 78f985b0b6SNeil Armstrong 794df7e9a1SNeil Armstrongrequired: 804df7e9a1SNeil Armstrong - compatible 814df7e9a1SNeil Armstrong - reg 824df7e9a1SNeil Armstrong - interrupts 834df7e9a1SNeil Armstrong - clocks 844df7e9a1SNeil Armstrong - clock-names 854df7e9a1SNeil Armstrong 864cb07402SKrzysztof KozlowskiunevaluatedProperties: false 877f464532SRob Herring 884df7e9a1SNeil Armstrongexamples: 894df7e9a1SNeil Armstrong - | 904df7e9a1SNeil Armstrong serial@84c0 { 914df7e9a1SNeil Armstrong compatible = "amlogic,meson-gx-uart"; 924df7e9a1SNeil Armstrong reg = <0x84c0 0x14>; 934df7e9a1SNeil Armstrong interrupts = <26>; 944df7e9a1SNeil Armstrong clocks = <&xtal>, <&pclk>, <&xtal>; 954df7e9a1SNeil Armstrong clock-names = "xtal", "pclk", "baud"; 964df7e9a1SNeil Armstrong }; 97