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
36dd825a4dSDmitry 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
50dd825a4dSDmitry 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
55*153fece7SLucas Tanure      - description: UART controller on S4 compatible SoCs
56*153fece7SLucas Tanure        items:
57*153fece7SLucas Tanure          - const: amlogic,t7-uart
58*153fece7SLucas Tanure          - const: amlogic,meson-s4-uart
594df7e9a1SNeil Armstrong
604df7e9a1SNeil Armstrong  reg:
614df7e9a1SNeil Armstrong    maxItems: 1
624df7e9a1SNeil Armstrong
634df7e9a1SNeil Armstrong  interrupts:
644df7e9a1SNeil Armstrong    maxItems: 1
654df7e9a1SNeil Armstrong
664df7e9a1SNeil Armstrong  clocks:
674df7e9a1SNeil Armstrong    items:
684df7e9a1SNeil Armstrong      - description: external xtal clock identifier
694df7e9a1SNeil Armstrong      - description: the bus core clock, either the clk81 clock or the gate clock
704df7e9a1SNeil Armstrong      - description: the source of the baudrate generator, can be either the xtal or the pclk
714df7e9a1SNeil Armstrong
724df7e9a1SNeil Armstrong  clock-names:
734df7e9a1SNeil Armstrong    items:
744df7e9a1SNeil Armstrong      - const: xtal
754df7e9a1SNeil Armstrong      - const: pclk
764df7e9a1SNeil Armstrong      - const: baud
774df7e9a1SNeil Armstrong
78f985b0b6SNeil Armstrong  fifo-size:
79f985b0b6SNeil Armstrong    description: The fifo size supported by the UART channel.
80f985b0b6SNeil Armstrong    $ref: /schemas/types.yaml#/definitions/uint32
81f985b0b6SNeil Armstrong    enum: [64, 128]
82f985b0b6SNeil Armstrong
834df7e9a1SNeil Armstrongrequired:
844df7e9a1SNeil Armstrong  - compatible
854df7e9a1SNeil Armstrong  - reg
864df7e9a1SNeil Armstrong  - interrupts
874df7e9a1SNeil Armstrong  - clocks
884df7e9a1SNeil Armstrong  - clock-names
894df7e9a1SNeil Armstrong
904cb07402SKrzysztof KozlowskiunevaluatedProperties: false
917f464532SRob Herring
924df7e9a1SNeil Armstrongexamples:
934df7e9a1SNeil Armstrong  - |
944df7e9a1SNeil Armstrong    serial@84c0 {
954df7e9a1SNeil Armstrong        compatible = "amlogic,meson-gx-uart";
964df7e9a1SNeil Armstrong        reg = <0x84c0 0x14>;
974df7e9a1SNeil Armstrong        interrupts = <26>;
984df7e9a1SNeil Armstrong        clocks = <&xtal>, <&pclk>, <&xtal>;
994df7e9a1SNeil Armstrong        clock-names = "xtal", "pclk", "baud";
1004df7e9a1SNeil Armstrong    };
101