xref: /freebsd/sys/contrib/device-tree/Bindings/ata/renesas,rcar-sata.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4*fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/ata/renesas,rcar-sata.yaml#
5*fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Renesas R-Car Serial-ATA Interface
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Geert Uytterhoeven <geert+renesas@glider.be>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotproperties:
13c66ec88fSEmmanuel Vadot  compatible:
14c66ec88fSEmmanuel Vadot    oneOf:
15c66ec88fSEmmanuel Vadot      - items:
16c66ec88fSEmmanuel Vadot          - enum:
17c66ec88fSEmmanuel Vadot              - renesas,sata-r8a7779      # R-Car H1
18c66ec88fSEmmanuel Vadot      - items:
19c66ec88fSEmmanuel Vadot          - enum:
20c66ec88fSEmmanuel Vadot              - renesas,sata-r8a7742      # RZ/G1H
21c66ec88fSEmmanuel Vadot              - renesas,sata-r8a7790-es1  # R-Car H2 ES1
22c66ec88fSEmmanuel Vadot              - renesas,sata-r8a7790      # R-Car H2 other than ES1
23c66ec88fSEmmanuel Vadot              - renesas,sata-r8a7791      # R-Car M2-W
24c66ec88fSEmmanuel Vadot              - renesas,sata-r8a7793      # R-Car M2-N
25c66ec88fSEmmanuel Vadot          - const: renesas,rcar-gen2-sata # generic R-Car Gen2
26c66ec88fSEmmanuel Vadot      - items:
27c66ec88fSEmmanuel Vadot          - enum:
28c66ec88fSEmmanuel Vadot              - renesas,sata-r8a774b1     # RZ/G2N
29d5b0e70fSEmmanuel Vadot              - renesas,sata-r8a774e1     # RZ/G2H
30c66ec88fSEmmanuel Vadot              - renesas,sata-r8a7795      # R-Car H3
31c66ec88fSEmmanuel Vadot              - renesas,sata-r8a77965     # R-Car M3-N
32c66ec88fSEmmanuel Vadot          - const: renesas,rcar-gen3-sata # generic R-Car Gen3 or RZ/G2
33c66ec88fSEmmanuel Vadot
34c66ec88fSEmmanuel Vadot  reg:
35c66ec88fSEmmanuel Vadot    maxItems: 1
36c66ec88fSEmmanuel Vadot
37c66ec88fSEmmanuel Vadot  interrupts:
38c66ec88fSEmmanuel Vadot    maxItems: 1
39c66ec88fSEmmanuel Vadot
40c66ec88fSEmmanuel Vadot  clocks:
41c66ec88fSEmmanuel Vadot    maxItems: 1
42c66ec88fSEmmanuel Vadot
43c66ec88fSEmmanuel Vadot  iommus:
44c66ec88fSEmmanuel Vadot    maxItems: 1
45c66ec88fSEmmanuel Vadot
46c66ec88fSEmmanuel Vadot  power-domains:
47c66ec88fSEmmanuel Vadot    maxItems: 1
48c66ec88fSEmmanuel Vadot
49c66ec88fSEmmanuel Vadot  resets:
50c66ec88fSEmmanuel Vadot    maxItems: 1
51c66ec88fSEmmanuel Vadot
52c66ec88fSEmmanuel Vadotrequired:
53c66ec88fSEmmanuel Vadot  - compatible
54c66ec88fSEmmanuel Vadot  - reg
55c66ec88fSEmmanuel Vadot  - interrupts
56c66ec88fSEmmanuel Vadot  - clocks
575956d97fSEmmanuel Vadot  - power-domains
585956d97fSEmmanuel Vadot
595956d97fSEmmanuel Vadotif:
605956d97fSEmmanuel Vadot  not:
615956d97fSEmmanuel Vadot    properties:
625956d97fSEmmanuel Vadot      compatible:
635956d97fSEmmanuel Vadot        contains:
645956d97fSEmmanuel Vadot          const: renesas,sata-r8a7779
655956d97fSEmmanuel Vadotthen:
665956d97fSEmmanuel Vadot  required:
675956d97fSEmmanuel Vadot    - resets
68c66ec88fSEmmanuel Vadot
69c66ec88fSEmmanuel VadotadditionalProperties: false
70c66ec88fSEmmanuel Vadot
71c66ec88fSEmmanuel Vadotexamples:
72c66ec88fSEmmanuel Vadot  - |
73c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/r8a7791-cpg-mssr.h>
74c66ec88fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
75c66ec88fSEmmanuel Vadot    #include <dt-bindings/power/r8a7791-sysc.h>
76c66ec88fSEmmanuel Vadot
77c66ec88fSEmmanuel Vadot    sata@ee300000 {
78c66ec88fSEmmanuel Vadot            compatible = "renesas,sata-r8a7791", "renesas,rcar-gen2-sata";
79c66ec88fSEmmanuel Vadot            reg = <0xee300000 0x200000>;
80c66ec88fSEmmanuel Vadot            interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
81c66ec88fSEmmanuel Vadot            clocks = <&cpg CPG_MOD 815>;
82c66ec88fSEmmanuel Vadot            power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
83c66ec88fSEmmanuel Vadot            resets = <&cpg 815>;
84c66ec88fSEmmanuel Vadot    };
85