18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 28c2ecf20Sopenharmony_ci# Copyright 2019 BayLibre, SAS 38c2ecf20Sopenharmony_ci%YAML 1.2 48c2ecf20Sopenharmony_ci--- 58c2ecf20Sopenharmony_ci$id: "http://devicetree.org/schemas/serial/amlogic,meson-uart.yaml#" 68c2ecf20Sopenharmony_ci$schema: "http://devicetree.org/meta-schemas/core.yaml#" 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_cititle: Amlogic Meson SoC UART Serial Interface 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_cimaintainers: 118c2ecf20Sopenharmony_ci - Neil Armstrong <narmstrong@baylibre.com> 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_cidescription: | 148c2ecf20Sopenharmony_ci The Amlogic Meson SoC UART Serial Interface is present on a large range 158c2ecf20Sopenharmony_ci of SoCs, and can be present either in the "Always-On" power domain or the 168c2ecf20Sopenharmony_ci "Everything-Else" power domain. 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci The particularity of the "Always-On" Serial Interface is that the hardware 198c2ecf20Sopenharmony_ci is active since power-on and does not need any clock gating and is usable 208c2ecf20Sopenharmony_ci as very early serial console. 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciproperties: 238c2ecf20Sopenharmony_ci compatible: 248c2ecf20Sopenharmony_ci oneOf: 258c2ecf20Sopenharmony_ci - description: Always-on power domain UART controller 268c2ecf20Sopenharmony_ci items: 278c2ecf20Sopenharmony_ci - enum: 288c2ecf20Sopenharmony_ci - amlogic,meson6-uart 298c2ecf20Sopenharmony_ci - amlogic,meson8-uart 308c2ecf20Sopenharmony_ci - amlogic,meson8b-uart 318c2ecf20Sopenharmony_ci - amlogic,meson-gx-uart 328c2ecf20Sopenharmony_ci - const: amlogic,meson-ao-uart 338c2ecf20Sopenharmony_ci - description: Everything-Else power domain UART controller 348c2ecf20Sopenharmony_ci enum: 358c2ecf20Sopenharmony_ci - amlogic,meson6-uart 368c2ecf20Sopenharmony_ci - amlogic,meson8-uart 378c2ecf20Sopenharmony_ci - amlogic,meson8b-uart 388c2ecf20Sopenharmony_ci - amlogic,meson-gx-uart 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci reg: 418c2ecf20Sopenharmony_ci maxItems: 1 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci interrupts: 448c2ecf20Sopenharmony_ci maxItems: 1 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci clocks: 478c2ecf20Sopenharmony_ci items: 488c2ecf20Sopenharmony_ci - description: external xtal clock identifier 498c2ecf20Sopenharmony_ci - description: the bus core clock, either the clk81 clock or the gate clock 508c2ecf20Sopenharmony_ci - description: the source of the baudrate generator, can be either the xtal or the pclk 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci clock-names: 538c2ecf20Sopenharmony_ci items: 548c2ecf20Sopenharmony_ci - const: xtal 558c2ecf20Sopenharmony_ci - const: pclk 568c2ecf20Sopenharmony_ci - const: baud 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_cirequired: 598c2ecf20Sopenharmony_ci - compatible 608c2ecf20Sopenharmony_ci - reg 618c2ecf20Sopenharmony_ci - interrupts 628c2ecf20Sopenharmony_ci - clocks 638c2ecf20Sopenharmony_ci - clock-names 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ciadditionalProperties: false 668c2ecf20Sopenharmony_ci 678c2ecf20Sopenharmony_ciexamples: 688c2ecf20Sopenharmony_ci - | 698c2ecf20Sopenharmony_ci serial@84c0 { 708c2ecf20Sopenharmony_ci compatible = "amlogic,meson-gx-uart"; 718c2ecf20Sopenharmony_ci reg = <0x84c0 0x14>; 728c2ecf20Sopenharmony_ci interrupts = <26>; 738c2ecf20Sopenharmony_ci clocks = <&xtal>, <&pclk>, <&xtal>; 748c2ecf20Sopenharmony_ci clock-names = "xtal", "pclk", "baud"; 758c2ecf20Sopenharmony_ci }; 76