| 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 |
|
| 7 |
title: Renesas RSCI Serial Communication Interface |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Geert Uytterhoeven <[email protected]> |
| 11 |
- Lad Prabhakar <[email protected]> |
| 12 |
|
| 13 |
properties: |
| 14 |
compatible: |
| 15 |
oneOf: |
| 16 |
- enum: |
| 17 |
- renesas,r9a09g047-rsci # RZ/G3E |
| 18 |
- renesas,r9a09g077-rsci # RZ/T2H |
| 19 |
|
| 20 |
- items: |
| 21 |
- enum: |
| 22 |
- renesas,r9a09g056-rsci # RZ/V2N |
| 23 |
- renesas,r9a09g057-rsci # RZ/V2H(P) |
| 24 |
- const: renesas,r9a09g047-rsci |
| 25 |
|
| 26 |
- items: |
| 27 |
- const: renesas,r9a09g087-rsci # RZ/N2H |
| 28 |
- const: renesas,r9a09g077-rsci # RZ/T2H |
| 29 |
|
| 30 |
reg: |
| 31 |
maxItems: 1 |
| 32 |
|
| 33 |
interrupts: |
| 34 |
minItems: 4 |
| 35 |
items: |
| 36 |
- description: Error interrupt |
| 37 |
- description: Receive buffer full interrupt |
| 38 |
- description: Transmit buffer empty interrupt |
| 39 |
- description: Transmit end interrupt |
| 40 |
- description: Active edge detection interrupt |
| 41 |
- description: Break field detection interrupt |
| 42 |
|
| 43 |
interrupt-names: |
| 44 |
minItems: 4 |
| 45 |
items: |
| 46 |
- const: eri |
| 47 |
- const: rxi |
| 48 |
- const: txi |
| 49 |
- const: tei |
| 50 |
- const: aed |
| 51 |
- const: bfd |
| 52 |
|
| 53 |
clocks: |
| 54 |
minItems: 2 |
| 55 |
maxItems: 6 |
| 56 |
|
| 57 |
clock-names: |
| 58 |
oneOf: |
| 59 |
- items: |
| 60 |
- const: operation |
| 61 |
- const: bus |
| 62 |
- const: sck # optional external clock input |
| 63 |
|
| 64 |
minItems: 2 |
| 65 |
|
| 66 |
- items: |
| 67 |
- const: pclk |
| 68 |
- const: tclk |
| 69 |
- const: tclk_div4 |
| 70 |
- const: tclk_div16 |
| 71 |
- const: tclk_div64 |
| 72 |
- const: sck # optional external clock input |
| 73 |
|
| 74 |
minItems: 5 |
| 75 |
|
| 76 |
resets: |
| 77 |
items: |
| 78 |
- description: Input for resetting the APB clock |
| 79 |
- description: Input for resetting TCLK |
| 80 |
|
| 81 |
reset-names: |
| 82 |
items: |
| 83 |
- const: presetn |
| 84 |
- const: tresetn |
| 85 |
|
| 86 |
power-domains: |
| 87 |
maxItems: 1 |
| 88 |
|
| 89 |
required: |
| 90 |
- compatible |
| 91 |
- reg |
| 92 |
- interrupts |
| 93 |
- clocks |
| 94 |
- clock-names |
| 95 |
- power-domains |
| 96 |
|
| 97 |
allOf: |
| 98 |
- $ref: serial.yaml# |
| 99 |
|
| 100 |
- if: |
| 101 |
properties: |
| 102 |
compatible: |
| 103 |
contains: |
| 104 |
const: renesas,r9a09g077-rsci |
| 105 |
then: |
| 106 |
properties: |
| 107 |
interrupts: |
| 108 |
maxItems: 4 |
| 109 |
|
| 110 |
interrupt-names: |
| 111 |
maxItems: 4 |
| 112 |
|
| 113 |
clocks: |
| 114 |
minItems: 2 |
| 115 |
maxItems: 3 |
| 116 |
|
| 117 |
clock-names: |
| 118 |
minItems: 2 |
| 119 |
maxItems: 3 |
| 120 |
|
| 121 |
resets: false |
| 122 |
|
| 123 |
- if: |
| 124 |
properties: |
| 125 |
compatible: |
| 126 |
contains: |
| 127 |
const: renesas,r9a09g047-rsci |
| 128 |
then: |
| 129 |
properties: |
| 130 |
interrupts: |
| 131 |
minItems: 6 |
| 132 |
|
| 133 |
interrupt-names: |
| 134 |
minItems: 6 |
| 135 |
|
| 136 |
clocks: |
| 137 |
minItems: 5 |
| 138 |
maxItems: 6 |
| 139 |
|
| 140 |
clock-names: |
| 141 |
minItems: 5 |
| 142 |
maxItems: 6 |
| 143 |
|
| 144 |
required: |
| 145 |
- resets |
| 146 |
- reset-names |
| 147 |
|
| 148 |
unevaluatedProperties: false |
| 149 |
|
| 150 |
examples: |
| 151 |
- | |
| 152 |
#include <dt-bindings/interrupt-controller/arm-gic.h> |
| 153 |
#include <dt-bindings/clock/renesas-cpg-mssr.h> |
| 154 |
|
| 155 |
sci0: serial@80005000 { |
| 156 |
compatible = "renesas,r9a09g077-rsci"; |
| 157 |
reg = <0x80005000 0x400>; |
| 158 |
interrupts = <GIC_SPI 590 IRQ_TYPE_LEVEL_HIGH>, |
| 159 |
<GIC_SPI 591 IRQ_TYPE_EDGE_RISING>, |
| 160 |
<GIC_SPI 592 IRQ_TYPE_EDGE_RISING>, |
| 161 |
<GIC_SPI 593 IRQ_TYPE_LEVEL_HIGH>; |
| 162 |
interrupt-names = "eri", "rxi", "txi", "tei"; |
| 163 |
clocks = <&cpg CPG_MOD 8>, <&cpg CPG_CORE 13>; |
| 164 |
clock-names = "operation", "bus"; |
| 165 |
power-domains = <&cpg>; |
| 166 |
}; |