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