xref: /linux/Documentation/devicetree/bindings/serial/brcm,bcm7271-uart.yaml (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
188a499cdSAl Cooper# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
288a499cdSAl Cooper%YAML 1.2
388a499cdSAl Cooper---
488a499cdSAl Cooper$id: http://devicetree.org/schemas/serial/brcm,bcm7271-uart.yaml#
588a499cdSAl Cooper$schema: http://devicetree.org/meta-schemas/core.yaml#
688a499cdSAl Cooper
7*a612130cSKrzysztof Kozlowskititle: Broadcom 8250 based serial port
888a499cdSAl Cooper
988a499cdSAl Coopermaintainers:
1088a499cdSAl Cooper  - Al Cooper <alcooperx@gmail.com>
1188a499cdSAl Cooper
1288a499cdSAl CooperallOf:
138f082dcfSZhen Lei  - $ref: serial.yaml#
1488a499cdSAl Cooper
1588a499cdSAl Cooperdescription: |+
1688a499cdSAl Cooper  The Broadcom UART is based on the basic 8250 UART but with
1788a499cdSAl Cooper  enhancements for more accurate high speed baud rates and support
1888a499cdSAl Cooper  for DMA.
1988a499cdSAl Cooper
2088a499cdSAl Cooperproperties:
2188a499cdSAl Cooper  compatible:
2288a499cdSAl Cooper    items:
2388a499cdSAl Cooper      - enum:
2488a499cdSAl Cooper          - brcm,bcm7271-uart
2588a499cdSAl Cooper          - brcm,bcm7278-uart
2688a499cdSAl Cooper
2788a499cdSAl Cooper  reg:
2888a499cdSAl Cooper    minItems: 1
2988a499cdSAl Cooper    maxItems: 5
3088a499cdSAl Cooper
3188a499cdSAl Cooper  reg-names:
3288a499cdSAl Cooper    description: The UART register block and optionally the DMA register blocks.
3388a499cdSAl Cooper    oneOf:
3488a499cdSAl Cooper      - items:
3588a499cdSAl Cooper          - const: uart
3688a499cdSAl Cooper      - items:
3788a499cdSAl Cooper          - const: uart
3888a499cdSAl Cooper          - const: dma_arb
3988a499cdSAl Cooper          - const: dma_rx
4088a499cdSAl Cooper          - const: dma_tx
4188a499cdSAl Cooper          - const: dma_intr2
4288a499cdSAl Cooper
4388a499cdSAl Cooper  clocks:
4488a499cdSAl Cooper    minItems: 1
4588a499cdSAl Cooper
4688a499cdSAl Cooper  clock-names:
4788a499cdSAl Cooper    const: sw_baud
4888a499cdSAl Cooper
4988a499cdSAl Cooper  interrupts:
5088a499cdSAl Cooper    minItems: 1
5188a499cdSAl Cooper    maxItems: 2
5288a499cdSAl Cooper
5388a499cdSAl Cooper  interrupt-names:
5488a499cdSAl Cooper    description: The UART interrupt and optionally the DMA interrupt.
5588a499cdSAl Cooper    minItems: 1
5688a499cdSAl Cooper    items:
5788a499cdSAl Cooper      - const: uart
5888a499cdSAl Cooper      - const: dma
5988a499cdSAl Cooper
6088a499cdSAl Cooperrequired:
6188a499cdSAl Cooper  - compatible
6288a499cdSAl Cooper  - reg
6388a499cdSAl Cooper  - reg-names
6488a499cdSAl Cooper  - clocks
6588a499cdSAl Cooper  - clock-names
6688a499cdSAl Cooper  - interrupts
6788a499cdSAl Cooper  - interrupt-names
6888a499cdSAl Cooper
6988a499cdSAl CooperunevaluatedProperties: false
7088a499cdSAl Cooper
7188a499cdSAl Cooperexamples:
7288a499cdSAl Cooper  - |
7388a499cdSAl Cooper    serial@840d000 {
7488a499cdSAl Cooper        compatible = "brcm,bcm7271-uart";
7588a499cdSAl Cooper        reg = <0x840d000 0x20>;
7688a499cdSAl Cooper        reg-names = "uart";
7788a499cdSAl Cooper        interrupts = <0x0 0x62 0x4>;
7888a499cdSAl Cooper        interrupt-names = "uart";
7988a499cdSAl Cooper        clocks = <&scmi_clk 190>;
8088a499cdSAl Cooper        clock-names = "sw_baud";
8188a499cdSAl Cooper    };
8288a499cdSAl Cooper
8388a499cdSAl Cooper    serial@840e000 {
8488a499cdSAl Cooper        compatible = "brcm,bcm7271-uart";
8588a499cdSAl Cooper        reg = <0x840e000 0x20>,
8688a499cdSAl Cooper              <0x840e080 0x8>,
8788a499cdSAl Cooper              <0x840e100 0xa8>,
8888a499cdSAl Cooper              <0x840e200 0x4c>,
8988a499cdSAl Cooper              <0x840e300 0x30>;
9088a499cdSAl Cooper        reg-names = "uart", "dma_arb", "dma_rx", "dma_tx", "dma_intr2";
9188a499cdSAl Cooper        interrupts = <0x0 0x62 0x4>, <0x0 0x75 0x4>;
9288a499cdSAl Cooper        interrupt-names = "uart", "dma";
9388a499cdSAl Cooper        clocks = <&scmi_clk 190>;
9488a499cdSAl Cooper        clock-names = "sw_baud";
9588a499cdSAl Cooper    };
96