mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 23:03:57 -04:00
Amlogic A4 SoCs uses the same UART controller as S4 SoCs and G12A. There is no need for an extra compatible line in the driver, but add A4 compatible line for documentation. Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Link: https://lore.kernel.org/r/20240401-basic_dt-v3-3-cb29ae1c16da@amlogic.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
103 lines
2.8 KiB
YAML
103 lines
2.8 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
# Copyright 2019 BayLibre, SAS
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/serial/amlogic,meson-uart.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Amlogic Meson SoC UART Serial Interface
|
|
|
|
maintainers:
|
|
- Neil Armstrong <neil.armstrong@linaro.org>
|
|
|
|
description: |
|
|
The Amlogic Meson SoC UART Serial Interface is present on a large range
|
|
of SoCs, and can be present either in the "Always-On" power domain or the
|
|
"Everything-Else" power domain.
|
|
|
|
The particularity of the "Always-On" Serial Interface is that the hardware
|
|
is active since power-on and does not need any clock gating and is usable
|
|
as very early serial console.
|
|
|
|
allOf:
|
|
- $ref: serial.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- description: Always-on power domain UART controller
|
|
items:
|
|
- enum:
|
|
- amlogic,meson6-uart
|
|
- amlogic,meson8-uart
|
|
- amlogic,meson8b-uart
|
|
- amlogic,meson-gx-uart
|
|
- amlogic,meson-s4-uart
|
|
- amlogic,meson-a1-uart
|
|
- const: amlogic,meson-ao-uart
|
|
- description: Always-on power domain UART controller on G12A SoCs
|
|
items:
|
|
- const: amlogic,meson-g12a-uart
|
|
- const: amlogic,meson-gx-uart
|
|
- const: amlogic,meson-ao-uart
|
|
- description: Everything-Else power domain UART controller
|
|
enum:
|
|
- amlogic,meson6-uart
|
|
- amlogic,meson8-uart
|
|
- amlogic,meson8b-uart
|
|
- amlogic,meson-gx-uart
|
|
- amlogic,meson-s4-uart
|
|
- amlogic,meson-a1-uart
|
|
- description: Everything-Else power domain UART controller on G12A SoCs
|
|
items:
|
|
- const: amlogic,meson-g12a-uart
|
|
- const: amlogic,meson-gx-uart
|
|
- description: UART controller on S4 compatible SoCs
|
|
items:
|
|
- enum:
|
|
- amlogic,a4-uart
|
|
- amlogic,t7-uart
|
|
- const: amlogic,meson-s4-uart
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
items:
|
|
- description: external xtal clock identifier
|
|
- description: the bus core clock, either the clk81 clock or the gate clock
|
|
- description: the source of the baudrate generator, can be either the xtal or the pclk
|
|
|
|
clock-names:
|
|
items:
|
|
- const: xtal
|
|
- const: pclk
|
|
- const: baud
|
|
|
|
fifo-size:
|
|
description: The fifo size supported by the UART channel.
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
enum: [64, 128]
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
- clocks
|
|
- clock-names
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
serial@84c0 {
|
|
compatible = "amlogic,meson-gx-uart";
|
|
reg = <0x84c0 0x14>;
|
|
interrupts = <26>;
|
|
clocks = <&xtal>, <&pclk>, <&xtal>;
|
|
clock-names = "xtal", "pclk", "baud";
|
|
};
|