0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/serial/brcm,bcm7271-uart.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Broadcom 8250 based serial port devicetree bindings
0008
0009 maintainers:
0010 - Al Cooper <alcooperx@gmail.com>
0011
0012 allOf:
0013 - $ref: serial.yaml#
0014
0015 description: |+
0016 The Broadcom UART is based on the basic 8250 UART but with
0017 enhancements for more accurate high speed baud rates and support
0018 for DMA.
0019
0020 properties:
0021 compatible:
0022 items:
0023 - enum:
0024 - brcm,bcm7271-uart
0025 - brcm,bcm7278-uart
0026
0027 reg:
0028 minItems: 1
0029 maxItems: 5
0030
0031 reg-names:
0032 description: The UART register block and optionally the DMA register blocks.
0033 oneOf:
0034 - items:
0035 - const: uart
0036 - items:
0037 - const: uart
0038 - const: dma_arb
0039 - const: dma_rx
0040 - const: dma_tx
0041 - const: dma_intr2
0042
0043 clocks:
0044 minItems: 1
0045
0046 clock-names:
0047 const: sw_baud
0048
0049 interrupts:
0050 minItems: 1
0051 maxItems: 2
0052
0053 interrupt-names:
0054 description: The UART interrupt and optionally the DMA interrupt.
0055 minItems: 1
0056 items:
0057 - const: uart
0058 - const: dma
0059
0060 required:
0061 - compatible
0062 - reg
0063 - reg-names
0064 - clocks
0065 - clock-names
0066 - interrupts
0067 - interrupt-names
0068
0069 unevaluatedProperties: false
0070
0071 examples:
0072 - |
0073 serial@840d000 {
0074 compatible = "brcm,bcm7271-uart";
0075 reg = <0x840d000 0x20>;
0076 reg-names = "uart";
0077 interrupts = <0x0 0x62 0x4>;
0078 interrupt-names = "uart";
0079 clocks = <&scmi_clk 190>;
0080 clock-names = "sw_baud";
0081 };
0082
0083 serial@840e000 {
0084 compatible = "brcm,bcm7271-uart";
0085 reg = <0x840e000 0x20>,
0086 <0x840e080 0x8>,
0087 <0x840e100 0xa8>,
0088 <0x840e200 0x4c>,
0089 <0x840e300 0x30>;
0090 reg-names = "uart", "dma_arb", "dma_rx", "dma_tx", "dma_intr2";
0091 interrupts = <0x0 0x62 0x4>, <0x0 0x75 0x4>;
0092 interrupt-names = "uart", "dma";
0093 clocks = <&scmi_clk 190>;
0094 clock-names = "sw_baud";
0095 };