Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: "http://devicetree.org/schemas/serial/renesas,scifa.yaml#"
0005 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0006 
0007 title: Renesas Serial Communications Interface with FIFO A (SCIFA)
0008 
0009 maintainers:
0010   - Geert Uytterhoeven <geert+renesas@glider.be>
0011 
0012 allOf:
0013   - $ref: serial.yaml#
0014 
0015 properties:
0016   compatible:
0017     oneOf:
0018       - items:
0019           - enum:
0020               - renesas,scifa-r8a73a4      # R-Mobile APE6
0021               - renesas,scifa-r8a7740      # R-Mobile A1
0022               - renesas,scifa-sh73a0       # SH-Mobile AG5
0023           - const: renesas,scifa           # generic SCIFA compatible UART
0024 
0025       - items:
0026           - enum:
0027               - renesas,scifa-r8a7742      # RZ/G1H
0028               - renesas,scifa-r8a7743      # RZ/G1M
0029               - renesas,scifa-r8a7744      # RZ/G1N
0030               - renesas,scifa-r8a7745      # RZ/G1E
0031               - renesas,scifa-r8a7790      # R-Car H2
0032               - renesas,scifa-r8a7791      # R-Car M2-W
0033               - renesas,scifa-r8a7793      # R-Car M2-N
0034               - renesas,scifa-r8a7794      # R-Car E2
0035           - const: renesas,rcar-gen2-scifa # R-Car Gen2 and RZ/G1
0036           - const: renesas,scifa           # generic SCIFA compatible UART
0037 
0038   reg:
0039     maxItems: 1
0040 
0041   interrupts:
0042     maxItems: 1
0043 
0044   clocks:
0045     maxItems: 1
0046 
0047   clock-names:
0048     enum:
0049       - fck # UART functional clock
0050 
0051   power-domains:
0052     maxItems: 1
0053 
0054   resets:
0055     maxItems: 1
0056 
0057   dmas:
0058     minItems: 2
0059     maxItems: 4
0060     description:
0061       Must contain a list of pairs of references to DMA specifiers, one for
0062       transmission, and one for reception.
0063 
0064   dma-names:
0065     minItems: 2
0066     maxItems: 4
0067     items:
0068       enum:
0069         - tx
0070         - rx
0071 
0072 required:
0073   - compatible
0074   - reg
0075   - interrupts
0076   - clocks
0077   - clock-names
0078   - power-domains
0079 
0080 unevaluatedProperties: false
0081 
0082 if:
0083   properties:
0084     compatible:
0085       contains:
0086         enum:
0087           - renesas,rcar-gen2-scifa
0088 then:
0089   required:
0090     - resets
0091 
0092 examples:
0093   - |
0094     #include <dt-bindings/clock/r8a7790-cpg-mssr.h>
0095     #include <dt-bindings/interrupt-controller/arm-gic.h>
0096     #include <dt-bindings/power/r8a7790-sysc.h>
0097     aliases {
0098             serial0 = &scifa0;
0099     };
0100 
0101     scifa0: serial@e6c40000 {
0102             compatible = "renesas,scifa-r8a7790", "renesas,rcar-gen2-scifa",
0103                          "renesas,scifa";
0104             reg = <0xe6c40000 64>;
0105             interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
0106             clocks = <&cpg CPG_MOD 204>;
0107             clock-names = "fck";
0108             power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
0109             resets = <&cpg 204>;
0110             dmas = <&dmac0 0x21>, <&dmac0 0x22>, <&dmac1 0x21>, <&dmac1 0x22>;
0111             dma-names = "tx", "rx", "tx", "rx";
0112     };