xref: /linux/Documentation/devicetree/bindings/serial/renesas,rsci.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,rsci.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Renesas RSCI Serial Communication Interface
8
9maintainers:
10  - Geert Uytterhoeven <geert+renesas@glider.be>
11  - Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
12
13allOf:
14  - $ref: serial.yaml#
15
16properties:
17  compatible:
18    oneOf:
19      - items:
20          - const: renesas,r9a09g087-rsci # RZ/N2H
21          - const: renesas,r9a09g077-rsci # RZ/T2H
22
23      - items:
24          - const: renesas,r9a09g077-rsci # RZ/T2H
25
26  reg:
27    maxItems: 1
28
29  interrupts:
30    items:
31      - description: Error interrupt
32      - description: Receive buffer full interrupt
33      - description: Transmit buffer empty interrupt
34      - description: Transmit end interrupt
35
36  interrupt-names:
37    items:
38      - const: eri
39      - const: rxi
40      - const: txi
41      - const: tei
42
43  clocks:
44    minItems: 2
45    maxItems: 3
46
47  clock-names:
48    minItems: 2
49    items:
50      - const: operation
51      - const: bus
52      - const: sck # optional external clock input
53
54  power-domains:
55    maxItems: 1
56
57  uart-has-rtscts: false
58
59required:
60  - compatible
61  - reg
62  - interrupts
63  - clocks
64  - clock-names
65  - power-domains
66
67unevaluatedProperties: false
68
69examples:
70  - |
71    #include <dt-bindings/interrupt-controller/arm-gic.h>
72    #include <dt-bindings/clock/renesas-cpg-mssr.h>
73
74    sci0: serial@80005000 {
75        compatible = "renesas,r9a09g077-rsci";
76        reg = <0x80005000 0x400>;
77        interrupts = <GIC_SPI 590 IRQ_TYPE_LEVEL_HIGH>,
78                     <GIC_SPI 591 IRQ_TYPE_EDGE_RISING>,
79                     <GIC_SPI 592 IRQ_TYPE_EDGE_RISING>,
80                     <GIC_SPI 593 IRQ_TYPE_LEVEL_HIGH>;
81        interrupt-names = "eri", "rxi", "txi", "tei";
82        clocks = <&cpg CPG_MOD 8>, <&cpg CPG_CORE 13>;
83        clock-names = "operation", "bus";
84        power-domains = <&cpg>;
85    };
86