xref: /linux/Documentation/devicetree/bindings/serial/renesas,hscif.yaml (revision 5f5598d945e2a69f764aa5c2074dad73e23bcfcb)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/serial/renesas,hscif.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Renesas High Speed Serial Communication Interface with FIFO (HSCIF)
8
9maintainers:
10  - Geert Uytterhoeven <geert+renesas@glider.be>
11
12allOf:
13  - $ref: serial.yaml#
14
15properties:
16  compatible:
17    oneOf:
18      - items:
19          - enum:
20              - renesas,hscif-r8a7778      # R-Car M1
21              - renesas,hscif-r8a7779      # R-Car H1
22          - const: renesas,rcar-gen1-hscif # R-Car Gen1
23          - const: renesas,hscif           # generic HSCIF compatible UART
24
25      - items:
26          - enum:
27              - renesas,hscif-r8a7742      # RZ/G1H
28              - renesas,hscif-r8a7743      # RZ/G1M
29              - renesas,hscif-r8a7744      # RZ/G1N
30              - renesas,hscif-r8a7745      # RZ/G1E
31              - renesas,hscif-r8a77470     # RZ/G1C
32              - renesas,hscif-r8a7790      # R-Car H2
33              - renesas,hscif-r8a7791      # R-Car M2-W
34              - renesas,hscif-r8a7792      # R-Car V2H
35              - renesas,hscif-r8a7793      # R-Car M2-N
36              - renesas,hscif-r8a7794      # R-Car E2
37          - const: renesas,rcar-gen2-hscif # R-Car Gen2 and RZ/G1
38          - const: renesas,hscif           # generic HSCIF compatible UART
39
40      - items:
41          - enum:
42              - renesas,hscif-r8a774a1     # RZ/G2M
43              - renesas,hscif-r8a774b1     # RZ/G2N
44              - renesas,hscif-r8a774c0     # RZ/G2E
45              - renesas,hscif-r8a774e1     # RZ/G2H
46              - renesas,hscif-r8a7795      # R-Car H3
47              - renesas,hscif-r8a7796      # R-Car M3-W
48              - renesas,hscif-r8a77961     # R-Car M3-W+
49              - renesas,hscif-r8a77965     # R-Car M3-N
50              - renesas,hscif-r8a77970     # R-Car V3M
51              - renesas,hscif-r8a77980     # R-Car V3H
52              - renesas,hscif-r8a77990     # R-Car E3
53              - renesas,hscif-r8a77995     # R-Car D3
54          - const: renesas,rcar-gen3-hscif # R-Car Gen3 and RZ/G2
55          - const: renesas,hscif           # generic HSCIF compatible UART
56
57      - items:
58          - enum:
59              - renesas,hscif-r8a779a0     # R-Car V3U
60              - renesas,hscif-r8a779f0     # R-Car S4-8
61              - renesas,hscif-r8a779g0     # R-Car V4H
62              - renesas,hscif-r8a779h0     # R-Car V4M
63          - const: renesas,rcar-gen4-hscif # R-Car Gen4
64          - const: renesas,hscif           # generic HSCIF compatible UART
65
66      - items:
67          - enum:
68              - renesas,hscif-r8a78000     # R-Car X5H
69          - const: renesas,rcar-gen5-hscif # R-Car Gen5
70          - const: renesas,hscif           # generic HSCIF compatible UART
71
72  reg:
73    maxItems: 1
74
75  interrupts:
76    maxItems: 1
77
78  clocks:
79    minItems: 1
80    maxItems: 4
81
82  clock-names:
83    minItems: 1
84    maxItems: 4
85    items:
86      enum:
87        - fck # UART functional clock
88        - hsck # optional external clock input
89        - brg_int # optional internal clock source for BRG frequency divider
90        - scif_clk # optional external clock source for BRG frequency divider
91
92  power-domains:
93    maxItems: 1
94
95  resets:
96    maxItems: 1
97
98  dmas:
99    minItems: 2
100    maxItems: 4
101    description:
102      Must contain a list of pairs of references to DMA specifiers, one for
103      transmission, and one for reception.
104
105  dma-names:
106    minItems: 2
107    maxItems: 4
108    items:
109      enum:
110        - tx
111        - rx
112
113required:
114  - compatible
115  - reg
116  - interrupts
117  - clocks
118  - clock-names
119  - power-domains
120
121if:
122  properties:
123    compatible:
124      contains:
125        enum:
126          - renesas,rcar-gen2-hscif
127          - renesas,rcar-gen3-hscif
128          - renesas,rcar-gen4-hscif
129          - renesas,rcar-gen5-hscif
130then:
131  required:
132    - resets
133
134unevaluatedProperties: false
135
136examples:
137  - |
138    #include <dt-bindings/clock/r8a7795-cpg-mssr.h>
139    #include <dt-bindings/interrupt-controller/arm-gic.h>
140    #include <dt-bindings/power/r8a7795-sysc.h>
141    aliases {
142        serial1 = &hscif1;
143    };
144
145    hscif1: serial@e6550000 {
146        compatible = "renesas,hscif-r8a7795", "renesas,rcar-gen3-hscif",
147                     "renesas,hscif";
148        reg = <0xe6550000 96>;
149        interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
150        clocks = <&cpg CPG_MOD 519>, <&cpg CPG_CORE R8A7795_CLK_S3D1>,
151                 <&scif_clk>;
152        clock-names = "fck", "brg_int", "scif_clk";
153        dmas = <&dmac1 0x33>, <&dmac1 0x32>, <&dmac2 0x33>, <&dmac2 0x32>;
154        dma-names = "tx", "rx", "tx", "rx";
155        power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
156        resets = <&cpg 519>;
157        uart-has-rtscts;
158    };
159