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 reg: 58 maxItems: 1 59 60 interrupts: 61 maxItems: 1 62 63 clocks: 64 minItems: 1 65 maxItems: 4 66 67 clock-names: 68 minItems: 1 69 maxItems: 4 70 items: 71 enum: 72 - fck # UART functional clock 73 - hsck # optional external clock input 74 - brg_int # optional internal clock source for BRG frequency divider 75 - scif_clk # optional external clock source for BRG frequency divider 76 77 power-domains: 78 maxItems: 1 79 80 resets: 81 maxItems: 1 82 83 dmas: 84 minItems: 2 85 maxItems: 4 86 description: 87 Must contain a list of pairs of references to DMA specifiers, one for 88 transmission, and one for reception. 89 90 dma-names: 91 minItems: 2 92 maxItems: 4 93 items: 94 enum: 95 - tx 96 - rx 97 98required: 99 - compatible 100 - reg 101 - interrupts 102 - clocks 103 - clock-names 104 - power-domains 105 106unevaluatedProperties: false 107 108if: 109 properties: 110 compatible: 111 contains: 112 enum: 113 - renesas,rcar-gen2-hscif 114 - renesas,rcar-gen3-hscif 115then: 116 required: 117 - resets 118 119examples: 120 - | 121 #include <dt-bindings/clock/r8a7795-cpg-mssr.h> 122 #include <dt-bindings/interrupt-controller/arm-gic.h> 123 #include <dt-bindings/power/r8a7795-sysc.h> 124 aliases { 125 serial1 = &hscif1; 126 }; 127 128 hscif1: serial@e6550000 { 129 compatible = "renesas,hscif-r8a7795", "renesas,rcar-gen3-hscif", 130 "renesas,hscif"; 131 reg = <0xe6550000 96>; 132 interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>; 133 clocks = <&cpg CPG_MOD 519>, <&cpg CPG_CORE R8A7795_CLK_S3D1>, 134 <&scif_clk>; 135 clock-names = "fck", "brg_int", "scif_clk"; 136 dmas = <&dmac1 0x33>, <&dmac1 0x32>, <&dmac2 0x33>, <&dmac2 0x32>; 137 dma-names = "tx", "rx", "tx", "rx"; 138 power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; 139 resets = <&cpg 519>; 140 uart-has-rtscts; 141 }; 142