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,scifa.yaml#" 5 $schema: http://devicetree.org/meta-schemas/co !! 5 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 6 6 7 title: Renesas Serial Communications Interface 7 title: Renesas Serial Communications Interface with FIFO A (SCIFA) 8 8 9 maintainers: 9 maintainers: 10 - Geert Uytterhoeven <geert+renesas@glider.be 10 - Geert Uytterhoeven <geert+renesas@glider.be> 11 11 12 allOf: 12 allOf: 13 - $ref: serial.yaml# 13 - $ref: serial.yaml# 14 14 15 properties: 15 properties: 16 compatible: 16 compatible: 17 oneOf: 17 oneOf: 18 - items: 18 - items: 19 - enum: 19 - enum: 20 - renesas,scifa-r8a73a4 # R 20 - renesas,scifa-r8a73a4 # R-Mobile APE6 21 - renesas,scifa-r8a7740 # R 21 - renesas,scifa-r8a7740 # R-Mobile A1 22 - renesas,scifa-sh73a0 # S 22 - renesas,scifa-sh73a0 # SH-Mobile AG5 23 - const: renesas,scifa # g 23 - const: renesas,scifa # generic SCIFA compatible UART 24 24 25 - items: 25 - items: 26 - enum: 26 - enum: 27 - renesas,scifa-r8a7742 # R !! 27 - renesas,scifa-r8a7743 # R8A7743 RZ/G1M 28 - renesas,scifa-r8a7743 # R !! 28 - renesas,scifa-r8a7744 # R8A7744 RZ/G1N 29 - renesas,scifa-r8a7744 # R !! 29 - renesas,scifa-r8a7745 # R8A7745 RZ/G1E 30 - renesas,scifa-r8a7745 # R !! 30 - renesas,scifa-r8a7790 # R8A7790 R-Car H2 31 - renesas,scifa-r8a7790 # R !! 31 - renesas,scifa-r8a7791 # R8A7791 R-Car M2-W 32 - renesas,scifa-r8a7791 # R !! 32 - renesas,scifa-r8a7793 # R8A7793 R-Car M2-N 33 - renesas,scifa-r8a7793 # R !! 33 - renesas,scifa-r8a7794 # R8A7794 R-Car E2 34 - renesas,scifa-r8a7794 # R << 35 - const: renesas,rcar-gen2-scifa # R 34 - const: renesas,rcar-gen2-scifa # R-Car Gen2 and RZ/G1 36 - const: renesas,scifa # g 35 - const: renesas,scifa # generic SCIFA compatible UART 37 36 38 reg: 37 reg: 39 maxItems: 1 38 maxItems: 1 40 39 41 interrupts: 40 interrupts: 42 maxItems: 1 41 maxItems: 1 43 42 44 clocks: 43 clocks: 45 maxItems: 1 44 maxItems: 1 46 45 47 clock-names: 46 clock-names: 48 enum: 47 enum: 49 - fck # UART functional clock 48 - fck # UART functional clock 50 49 51 power-domains: 50 power-domains: 52 maxItems: 1 51 maxItems: 1 53 52 54 resets: 53 resets: 55 maxItems: 1 54 maxItems: 1 56 55 57 dmas: 56 dmas: 58 minItems: 2 << 59 maxItems: 4 << 60 description: 57 description: 61 Must contain a list of pairs of referenc 58 Must contain a list of pairs of references to DMA specifiers, one for 62 transmission, and one for reception. 59 transmission, and one for reception. 63 60 64 dma-names: 61 dma-names: 65 minItems: 2 62 minItems: 2 66 maxItems: 4 63 maxItems: 4 67 items: 64 items: 68 enum: 65 enum: 69 - tx 66 - tx 70 - rx 67 - rx 71 68 72 required: 69 required: 73 - compatible 70 - compatible 74 - reg 71 - reg 75 - interrupts 72 - interrupts 76 - clocks 73 - clocks 77 - clock-names 74 - clock-names 78 - power-domains 75 - power-domains 79 76 80 if: 77 if: 81 properties: 78 properties: 82 compatible: 79 compatible: 83 contains: 80 contains: 84 enum: 81 enum: 85 - renesas,rcar-gen2-scifa 82 - renesas,rcar-gen2-scifa 86 then: 83 then: 87 required: 84 required: 88 - resets 85 - resets 89 86 90 unevaluatedProperties: false << 91 << 92 examples: 87 examples: 93 - | 88 - | 94 #include <dt-bindings/clock/r8a7790-cpg-ms 89 #include <dt-bindings/clock/r8a7790-cpg-mssr.h> 95 #include <dt-bindings/interrupt-controller 90 #include <dt-bindings/interrupt-controller/arm-gic.h> 96 #include <dt-bindings/power/r8a7790-sysc.h 91 #include <dt-bindings/power/r8a7790-sysc.h> 97 aliases { 92 aliases { 98 serial0 = &scifa0; !! 93 serial0 = &scifa0; 99 }; 94 }; 100 95 101 scifa0: serial@e6c40000 { 96 scifa0: serial@e6c40000 { 102 compatible = "renesas,scifa-r8a7790", !! 97 compatible = "renesas,scifa-r8a7790", "renesas,rcar-gen2-scifa", 103 "renesas,scifa"; !! 98 "renesas,scifa"; 104 reg = <0xe6c40000 64>; !! 99 reg = <0xe6c40000 64>; 105 interrupts = <GIC_SPI 144 IRQ_TYPE_LEV !! 100 interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>; 106 clocks = <&cpg CPG_MOD 204>; !! 101 clocks = <&cpg CPG_MOD 204>; 107 clock-names = "fck"; !! 102 clock-names = "fck"; 108 power-domains = <&sysc R8A7790_PD_ALWA !! 103 power-domains = <&sysc R8A7790_PD_ALWAYS_ON>; 109 resets = <&cpg 204>; !! 104 resets = <&cpg 204>; 110 dmas = <&dmac0 0x21>, <&dmac0 0x22>, < !! 105 dmas = <&dmac0 0x21>, <&dmac0 0x22>, <&dmac1 0x21>, <&dmac1 0x22>; 111 dma-names = "tx", "rx", "tx", "rx"; !! 106 dma-names = "tx", "rx", "tx", "rx"; 112 }; 107 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.