xref: /freebsd/sys/contrib/device-tree/Bindings/serial/renesas,scifa.yaml (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/serial/renesas,scifa.yaml#
5fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Renesas Serial Communications Interface with FIFO A (SCIFA)
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Geert Uytterhoeven <geert+renesas@glider.be>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel VadotallOf:
13c66ec88fSEmmanuel Vadot  - $ref: serial.yaml#
14c66ec88fSEmmanuel Vadot
15c66ec88fSEmmanuel Vadotproperties:
16c66ec88fSEmmanuel Vadot  compatible:
17c66ec88fSEmmanuel Vadot    oneOf:
18c66ec88fSEmmanuel Vadot      - items:
19c66ec88fSEmmanuel Vadot          - enum:
20c66ec88fSEmmanuel Vadot              - renesas,scifa-r8a73a4      # R-Mobile APE6
21c66ec88fSEmmanuel Vadot              - renesas,scifa-r8a7740      # R-Mobile A1
22c66ec88fSEmmanuel Vadot              - renesas,scifa-sh73a0       # SH-Mobile AG5
23c66ec88fSEmmanuel Vadot          - const: renesas,scifa           # generic SCIFA compatible UART
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadot      - items:
26c66ec88fSEmmanuel Vadot          - enum:
27c66ec88fSEmmanuel Vadot              - renesas,scifa-r8a7742      # RZ/G1H
28c66ec88fSEmmanuel Vadot              - renesas,scifa-r8a7743      # RZ/G1M
29c66ec88fSEmmanuel Vadot              - renesas,scifa-r8a7744      # RZ/G1N
30c66ec88fSEmmanuel Vadot              - renesas,scifa-r8a7745      # RZ/G1E
31c66ec88fSEmmanuel Vadot              - renesas,scifa-r8a7790      # R-Car H2
32c66ec88fSEmmanuel Vadot              - renesas,scifa-r8a7791      # R-Car M2-W
33c66ec88fSEmmanuel Vadot              - renesas,scifa-r8a7793      # R-Car M2-N
34c66ec88fSEmmanuel Vadot              - renesas,scifa-r8a7794      # R-Car E2
35c66ec88fSEmmanuel Vadot          - const: renesas,rcar-gen2-scifa # R-Car Gen2 and RZ/G1
36c66ec88fSEmmanuel Vadot          - const: renesas,scifa           # generic SCIFA compatible UART
37c66ec88fSEmmanuel Vadot
38c66ec88fSEmmanuel Vadot  reg:
39c66ec88fSEmmanuel Vadot    maxItems: 1
40c66ec88fSEmmanuel Vadot
41c66ec88fSEmmanuel Vadot  interrupts:
42c66ec88fSEmmanuel Vadot    maxItems: 1
43c66ec88fSEmmanuel Vadot
44c66ec88fSEmmanuel Vadot  clocks:
45c66ec88fSEmmanuel Vadot    maxItems: 1
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadot  clock-names:
48c66ec88fSEmmanuel Vadot    enum:
49c66ec88fSEmmanuel Vadot      - fck # UART functional clock
50c66ec88fSEmmanuel Vadot
51c66ec88fSEmmanuel Vadot  power-domains:
52c66ec88fSEmmanuel Vadot    maxItems: 1
53c66ec88fSEmmanuel Vadot
54c66ec88fSEmmanuel Vadot  resets:
55c66ec88fSEmmanuel Vadot    maxItems: 1
56c66ec88fSEmmanuel Vadot
57c66ec88fSEmmanuel Vadot  dmas:
585def4c47SEmmanuel Vadot    minItems: 2
595def4c47SEmmanuel Vadot    maxItems: 4
60c66ec88fSEmmanuel Vadot    description:
61c66ec88fSEmmanuel Vadot      Must contain a list of pairs of references to DMA specifiers, one for
62c66ec88fSEmmanuel Vadot      transmission, and one for reception.
63c66ec88fSEmmanuel Vadot
64c66ec88fSEmmanuel Vadot  dma-names:
65c66ec88fSEmmanuel Vadot    minItems: 2
66c66ec88fSEmmanuel Vadot    maxItems: 4
67c66ec88fSEmmanuel Vadot    items:
68c66ec88fSEmmanuel Vadot      enum:
69c66ec88fSEmmanuel Vadot        - tx
70c66ec88fSEmmanuel Vadot        - rx
71c66ec88fSEmmanuel Vadot
72c66ec88fSEmmanuel Vadotrequired:
73c66ec88fSEmmanuel Vadot  - compatible
74c66ec88fSEmmanuel Vadot  - reg
75c66ec88fSEmmanuel Vadot  - interrupts
76c66ec88fSEmmanuel Vadot  - clocks
77c66ec88fSEmmanuel Vadot  - clock-names
78c66ec88fSEmmanuel Vadot  - power-domains
79c66ec88fSEmmanuel Vadot
80c66ec88fSEmmanuel Vadotif:
81c66ec88fSEmmanuel Vadot  properties:
82c66ec88fSEmmanuel Vadot    compatible:
83c66ec88fSEmmanuel Vadot      contains:
84c66ec88fSEmmanuel Vadot        enum:
85c66ec88fSEmmanuel Vadot          - renesas,rcar-gen2-scifa
86c66ec88fSEmmanuel Vadotthen:
87c66ec88fSEmmanuel Vadot  required:
88c66ec88fSEmmanuel Vadot    - resets
89c66ec88fSEmmanuel Vadot
90*84943d6fSEmmanuel VadotunevaluatedProperties: false
91*84943d6fSEmmanuel Vadot
92c66ec88fSEmmanuel Vadotexamples:
93c66ec88fSEmmanuel Vadot  - |
94c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/r8a7790-cpg-mssr.h>
95c66ec88fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
96c66ec88fSEmmanuel Vadot    #include <dt-bindings/power/r8a7790-sysc.h>
97c66ec88fSEmmanuel Vadot    aliases {
98c66ec88fSEmmanuel Vadot        serial0 = &scifa0;
99c66ec88fSEmmanuel Vadot    };
100c66ec88fSEmmanuel Vadot
101c66ec88fSEmmanuel Vadot    scifa0: serial@e6c40000 {
102c66ec88fSEmmanuel Vadot        compatible = "renesas,scifa-r8a7790", "renesas,rcar-gen2-scifa",
103c66ec88fSEmmanuel Vadot                     "renesas,scifa";
104c66ec88fSEmmanuel Vadot        reg = <0xe6c40000 64>;
105c66ec88fSEmmanuel Vadot        interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
106c66ec88fSEmmanuel Vadot        clocks = <&cpg CPG_MOD 204>;
107c66ec88fSEmmanuel Vadot        clock-names = "fck";
108c66ec88fSEmmanuel Vadot        power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
109c66ec88fSEmmanuel Vadot        resets = <&cpg 204>;
110c66ec88fSEmmanuel Vadot        dmas = <&dmac0 0x21>, <&dmac0 0x22>, <&dmac1 0x21>, <&dmac1 0x22>;
111c66ec88fSEmmanuel Vadot        dma-names = "tx", "rx", "tx", "rx";
112c66ec88fSEmmanuel Vadot    };
113