1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/serial/rene !! 4 $id: "http://devicetree.org/schemas/serial/renesas,scif.yaml#" 5 $schema: http://devicetree.org/meta-schemas/co !! 5 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 6 6 7 title: Renesas Serial Communication Interface 7 title: Renesas Serial Communication Interface with FIFO (SCIF) 8 8 9 maintainers: 9 maintainers: 10 - Geert Uytterhoeven <geert+renesas@glider.be 10 - Geert Uytterhoeven <geert+renesas@glider.be> 11 11 >> 12 allOf: >> 13 - $ref: serial.yaml# >> 14 12 properties: 15 properties: 13 compatible: 16 compatible: 14 oneOf: 17 oneOf: 15 - items: 18 - items: 16 - enum: 19 - enum: 17 - renesas,scif-r7s72100 # RZ 20 - renesas,scif-r7s72100 # RZ/A1H 18 - const: renesas,scif # ge 21 - const: renesas,scif # generic SCIF compatible UART 19 22 20 - items: 23 - items: 21 - enum: 24 - enum: 22 - renesas,scif-r7s9210 # RZ 25 - renesas,scif-r7s9210 # RZ/A2 23 26 24 - items: 27 - items: 25 - enum: 28 - enum: 26 - renesas,scif-r8a7778 # R- 29 - renesas,scif-r8a7778 # R-Car M1 27 - renesas,scif-r8a7779 # R- 30 - renesas,scif-r8a7779 # R-Car H1 28 - const: renesas,rcar-gen1-scif # R- 31 - const: renesas,rcar-gen1-scif # R-Car Gen1 29 - const: renesas,scif # ge 32 - const: renesas,scif # generic SCIF compatible UART 30 33 31 - items: 34 - items: 32 - enum: 35 - enum: 33 - renesas,scif-r8a7742 # RZ 36 - renesas,scif-r8a7742 # RZ/G1H 34 - renesas,scif-r8a7743 # RZ 37 - renesas,scif-r8a7743 # RZ/G1M 35 - renesas,scif-r8a7744 # RZ 38 - renesas,scif-r8a7744 # RZ/G1N 36 - renesas,scif-r8a7745 # RZ 39 - renesas,scif-r8a7745 # RZ/G1E 37 - renesas,scif-r8a77470 # RZ 40 - renesas,scif-r8a77470 # RZ/G1C 38 - renesas,scif-r8a7790 # R- 41 - renesas,scif-r8a7790 # R-Car H2 39 - renesas,scif-r8a7791 # R- 42 - renesas,scif-r8a7791 # R-Car M2-W 40 - renesas,scif-r8a7792 # R- 43 - renesas,scif-r8a7792 # R-Car V2H 41 - renesas,scif-r8a7793 # R- 44 - renesas,scif-r8a7793 # R-Car M2-N 42 - renesas,scif-r8a7794 # R- 45 - renesas,scif-r8a7794 # R-Car E2 43 - const: renesas,rcar-gen2-scif # R- 46 - const: renesas,rcar-gen2-scif # R-Car Gen2 and RZ/G1 44 - const: renesas,scif # ge 47 - const: renesas,scif # generic SCIF compatible UART 45 48 46 - items: 49 - items: 47 - enum: 50 - enum: 48 - renesas,scif-r8a774a1 # RZ 51 - renesas,scif-r8a774a1 # RZ/G2M 49 - renesas,scif-r8a774a3 # RZ << 50 - renesas,scif-r8a774b1 # RZ 52 - renesas,scif-r8a774b1 # RZ/G2N 51 - renesas,scif-r8a774c0 # RZ 53 - renesas,scif-r8a774c0 # RZ/G2E 52 - renesas,scif-r8a774e1 # RZ 54 - renesas,scif-r8a774e1 # RZ/G2H 53 - renesas,scif-r8a7795 # R- 55 - renesas,scif-r8a7795 # R-Car H3 54 - renesas,scif-r8a7796 # R- 56 - renesas,scif-r8a7796 # R-Car M3-W 55 - renesas,scif-r8a77961 # R- 57 - renesas,scif-r8a77961 # R-Car M3-W+ 56 - renesas,scif-r8a77965 # R- 58 - renesas,scif-r8a77965 # R-Car M3-N 57 - renesas,scif-r8a77970 # R- 59 - renesas,scif-r8a77970 # R-Car V3M 58 - renesas,scif-r8a77980 # R- 60 - renesas,scif-r8a77980 # R-Car V3H 59 - renesas,scif-r8a77990 # R- 61 - renesas,scif-r8a77990 # R-Car E3 60 - renesas,scif-r8a77995 # R- 62 - renesas,scif-r8a77995 # R-Car D3 61 - const: renesas,rcar-gen3-scif # R- << 62 - const: renesas,scif # ge << 63 << 64 - items: << 65 - enum: << 66 - renesas,scif-r8a779a0 # R- 63 - renesas,scif-r8a779a0 # R-Car V3U 67 - renesas,scif-r8a779f0 # R- !! 64 - const: renesas,rcar-gen3-scif # R-Car Gen3 and RZ/G2 68 - renesas,scif-r8a779g0 # R- << 69 - renesas,scif-r8a779h0 # R- << 70 - const: renesas,rcar-gen4-scif # R- << 71 - const: renesas,scif # ge 65 - const: renesas,scif # generic SCIF compatible UART 72 66 73 - items: << 74 - enum: << 75 - renesas,scif-r9a07g044 # << 76 << 77 - items: << 78 - enum: << 79 - renesas,scif-r9a07g043 # << 80 - renesas,scif-r9a07g054 # << 81 - renesas,scif-r9a08g045 # << 82 - const: renesas,scif-r9a07g044 # << 83 << 84 - const: renesas,scif-r9a09g057 # << 85 << 86 reg: 67 reg: 87 maxItems: 1 68 maxItems: 1 88 69 89 interrupts: 70 interrupts: 90 oneOf: 71 oneOf: 91 - items: 72 - items: 92 - description: A combined interrupt 73 - description: A combined interrupt 93 - items: 74 - items: 94 - description: Error interrupt 75 - description: Error interrupt 95 - description: Receive buffer full i 76 - description: Receive buffer full interrupt 96 - description: Transmit buffer empty 77 - description: Transmit buffer empty interrupt >> 78 - description: Transmit End interrupt >> 79 - items: >> 80 - description: Error interrupt >> 81 - description: Receive buffer full interrupt >> 82 - description: Transmit buffer empty interrupt 97 - description: Break interrupt 83 - description: Break interrupt 98 - description: Data Ready interrupt 84 - description: Data Ready interrupt 99 - description: Transmit End interrup 85 - description: Transmit End interrupt 100 - description: Transmit End/Data Rea << 101 - description: Receive buffer full i << 102 - description: Transmit buffer empty << 103 minItems: 4 << 104 86 105 interrupt-names: 87 interrupt-names: 106 minItems: 4 !! 88 oneOf: 107 items: !! 89 - items: 108 - const: eri !! 90 - const: eri 109 - const: rxi !! 91 - const: rxi 110 - const: txi !! 92 - const: txi 111 - const: bri !! 93 - const: tei 112 - const: dri !! 94 - items: 113 - const: tei !! 95 - const: eri 114 - const: tei-dri !! 96 - const: rxi 115 - const: rxi-edge !! 97 - const: txi 116 - const: txi-edge !! 98 - const: bri >> 99 - const: dri >> 100 - const: tei 117 101 118 clocks: 102 clocks: 119 minItems: 1 103 minItems: 1 120 maxItems: 4 104 maxItems: 4 121 105 122 clock-names: 106 clock-names: 123 minItems: 1 107 minItems: 1 124 maxItems: 4 108 maxItems: 4 125 items: 109 items: 126 enum: 110 enum: 127 - fck # UART functional clock 111 - fck # UART functional clock 128 - sck # optional external clock input 112 - sck # optional external clock input 129 - brg_int # optional internal clock so 113 - brg_int # optional internal clock source for BRG frequency divider 130 - scif_clk # optional external clock s 114 - scif_clk # optional external clock source for BRG frequency divider 131 115 132 power-domains: 116 power-domains: 133 maxItems: 1 117 maxItems: 1 134 118 135 resets: 119 resets: 136 maxItems: 1 120 maxItems: 1 137 121 138 dmas: 122 dmas: 139 minItems: 2 << 140 maxItems: 4 << 141 description: 123 description: 142 Must contain a list of pairs of referenc 124 Must contain a list of pairs of references to DMA specifiers, one for 143 transmission, and one for reception. 125 transmission, and one for reception. 144 126 145 dma-names: 127 dma-names: 146 minItems: 2 128 minItems: 2 147 maxItems: 4 129 maxItems: 4 148 items: 130 items: 149 enum: 131 enum: 150 - tx 132 - tx 151 - rx 133 - rx 152 134 153 required: 135 required: 154 - compatible 136 - compatible 155 - reg 137 - reg 156 - interrupts 138 - interrupts 157 - clocks 139 - clocks 158 - clock-names 140 - clock-names 159 - power-domains 141 - power-domains 160 142 161 allOf: !! 143 if: 162 - $ref: serial.yaml# !! 144 properties: 163 !! 145 compatible: 164 - if: !! 146 contains: 165 properties: !! 147 enum: 166 compatible: !! 148 - renesas,rcar-gen2-scif 167 contains: !! 149 - renesas,rcar-gen3-scif 168 enum: !! 150 then: 169 - renesas,rcar-gen2-scif !! 151 required: 170 - renesas,rcar-gen3-scif !! 152 - resets 171 - renesas,rcar-gen4-scif << 172 - renesas,scif-r9a07g044 << 173 - renesas,scif-r9a09g057 << 174 then: << 175 required: << 176 - resets << 177 << 178 - if: << 179 properties: << 180 compatible: << 181 contains: << 182 enum: << 183 - renesas,rcar-gen1-scif << 184 - renesas,rcar-gen2-scif << 185 - renesas,rcar-gen3-scif << 186 - renesas,rcar-gen4-scif << 187 then: << 188 properties: << 189 interrupts: << 190 maxItems: 1 << 191 << 192 interrupt-names: false << 193 else: << 194 required: << 195 - interrupt-names << 196 << 197 - if: << 198 properties: << 199 compatible: << 200 contains: << 201 enum: << 202 - renesas,scif-r7s72100 << 203 then: << 204 properties: << 205 interrupts: << 206 minItems: 4 << 207 maxItems: 4 << 208 << 209 interrupt-names: << 210 maxItems: 4 << 211 << 212 - if: << 213 properties: << 214 compatible: << 215 contains: << 216 enum: << 217 - renesas,scif-r7s9210 << 218 - renesas,scif-r9a07g044 << 219 then: << 220 properties: << 221 interrupts: << 222 minItems: 6 << 223 maxItems: 6 << 224 << 225 interrupt-names: << 226 minItems: 6 << 227 maxItems: 6 << 228 << 229 - if: << 230 properties: << 231 compatible: << 232 contains: << 233 const: renesas,scif-r9a09g057 << 234 then: << 235 properties: << 236 clocks: << 237 maxItems: 1 << 238 << 239 clock-names: << 240 maxItems: 1 << 241 << 242 interrupts: << 243 minItems: 9 << 244 << 245 interrupt-names: << 246 minItems: 9 << 247 153 248 unevaluatedProperties: false 154 unevaluatedProperties: false 249 155 250 examples: 156 examples: 251 - | 157 - | 252 #include <dt-bindings/clock/r8a7791-cpg-ms 158 #include <dt-bindings/clock/r8a7791-cpg-mssr.h> 253 #include <dt-bindings/interrupt-controller 159 #include <dt-bindings/interrupt-controller/arm-gic.h> 254 #include <dt-bindings/power/r8a7791-sysc.h 160 #include <dt-bindings/power/r8a7791-sysc.h> 255 aliases { 161 aliases { 256 serial0 = &scif0; !! 162 serial0 = &scif0; 257 }; 163 }; 258 164 259 scif0: serial@e6e60000 { 165 scif0: serial@e6e60000 { 260 compatible = "renesas,scif-r8a7791", " !! 166 compatible = "renesas,scif-r8a7791", "renesas,rcar-gen2-scif", 261 "renesas,scif"; !! 167 "renesas,scif"; 262 reg = <0xe6e60000 64>; !! 168 reg = <0xe6e60000 64>; 263 interrupts = <GIC_SPI 152 IRQ_TYPE_LEV !! 169 interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>; 264 clocks = <&cpg CPG_MOD 721>, <&cpg CPG !! 170 clocks = <&cpg CPG_MOD 721>, <&cpg CPG_CORE R8A7791_CLK_ZS>, 265 <&scif_clk>; !! 171 <&scif_clk>; 266 clock-names = "fck", "brg_int", "scif_ !! 172 clock-names = "fck", "brg_int", "scif_clk"; 267 dmas = <&dmac0 0x29>, <&dmac0 0x2a>, < !! 173 dmas = <&dmac0 0x29>, <&dmac0 0x2a>, <&dmac1 0x29>, <&dmac1 0x2a>; 268 dma-names = "tx", "rx", "tx", "rx"; !! 174 dma-names = "tx", "rx", "tx", "rx"; 269 power-domains = <&sysc R8A7791_PD_ALWA !! 175 power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; 270 resets = <&cpg 721>; !! 176 resets = <&cpg 721>; 271 }; 177 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.