xref: /freebsd/sys/contrib/device-tree/Bindings/ata/brcm,sata-brcm.yaml (revision e67e85659c0de33e617e5fbf1028c6e8b49eee53)
1*e67e8565SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*e67e8565SEmmanuel Vadot%YAML 1.2
3*e67e8565SEmmanuel Vadot---
4*e67e8565SEmmanuel Vadot$id: http://devicetree.org/schemas/ata/brcm,sata-brcm.yaml#
5*e67e8565SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*e67e8565SEmmanuel Vadot
7*e67e8565SEmmanuel Vadottitle: Broadcom SATA3 AHCI Controller
8*e67e8565SEmmanuel Vadot
9*e67e8565SEmmanuel Vadotdescription:
10*e67e8565SEmmanuel Vadot  SATA nodes are defined to describe on-chip Serial ATA controllers.
11*e67e8565SEmmanuel Vadot  Each SATA controller should have its own node.
12*e67e8565SEmmanuel Vadot
13*e67e8565SEmmanuel Vadotmaintainers:
14*e67e8565SEmmanuel Vadot  - Florian Fainelli <f.fainelli@gmail.com>
15*e67e8565SEmmanuel Vadot
16*e67e8565SEmmanuel VadotallOf:
17*e67e8565SEmmanuel Vadot  - $ref: sata-common.yaml#
18*e67e8565SEmmanuel Vadot
19*e67e8565SEmmanuel Vadotproperties:
20*e67e8565SEmmanuel Vadot  compatible:
21*e67e8565SEmmanuel Vadot    oneOf:
22*e67e8565SEmmanuel Vadot      - items:
23*e67e8565SEmmanuel Vadot          - enum:
24*e67e8565SEmmanuel Vadot              - brcm,bcm7216-ahci
25*e67e8565SEmmanuel Vadot              - brcm,bcm7445-ahci
26*e67e8565SEmmanuel Vadot              - brcm,bcm7425-ahci
27*e67e8565SEmmanuel Vadot              - brcm,bcm63138-ahci
28*e67e8565SEmmanuel Vadot          - const: brcm,sata3-ahci
29*e67e8565SEmmanuel Vadot      - items:
30*e67e8565SEmmanuel Vadot          - const: brcm,bcm-nsp-ahci
31*e67e8565SEmmanuel Vadot
32*e67e8565SEmmanuel Vadot  reg:
33*e67e8565SEmmanuel Vadot    minItems: 2
34*e67e8565SEmmanuel Vadot    maxItems: 2
35*e67e8565SEmmanuel Vadot
36*e67e8565SEmmanuel Vadot  reg-names:
37*e67e8565SEmmanuel Vadot    items:
38*e67e8565SEmmanuel Vadot      - const: ahci
39*e67e8565SEmmanuel Vadot      - const: top-ctrl
40*e67e8565SEmmanuel Vadot
41*e67e8565SEmmanuel Vadot  interrupts:
42*e67e8565SEmmanuel Vadot    maxItems: 1
43*e67e8565SEmmanuel Vadot
44*e67e8565SEmmanuel Vadot  dma-coherent: true
45*e67e8565SEmmanuel Vadot
46*e67e8565SEmmanuel Vadotif:
47*e67e8565SEmmanuel Vadot  properties:
48*e67e8565SEmmanuel Vadot    compatible:
49*e67e8565SEmmanuel Vadot      contains:
50*e67e8565SEmmanuel Vadot        enum:
51*e67e8565SEmmanuel Vadot          - brcm,bcm7216-ahci
52*e67e8565SEmmanuel Vadot          - brcm,bcm63138-ahci
53*e67e8565SEmmanuel Vadotthen:
54*e67e8565SEmmanuel Vadot  properties:
55*e67e8565SEmmanuel Vadot    resets:
56*e67e8565SEmmanuel Vadot      maxItems: 1
57*e67e8565SEmmanuel Vadot    reset-names:
58*e67e8565SEmmanuel Vadot      enum:
59*e67e8565SEmmanuel Vadot        - rescal
60*e67e8565SEmmanuel Vadot        - ahci
61*e67e8565SEmmanuel Vadot
62*e67e8565SEmmanuel Vadotrequired:
63*e67e8565SEmmanuel Vadot  - compatible
64*e67e8565SEmmanuel Vadot  - reg
65*e67e8565SEmmanuel Vadot  - interrupts
66*e67e8565SEmmanuel Vadot  - "#address-cells"
67*e67e8565SEmmanuel Vadot  - "#size-cells"
68*e67e8565SEmmanuel Vadot
69*e67e8565SEmmanuel VadotunevaluatedProperties: false
70*e67e8565SEmmanuel Vadot
71*e67e8565SEmmanuel Vadotexamples:
72*e67e8565SEmmanuel Vadot  - |
73*e67e8565SEmmanuel Vadot    sata@f045a000 {
74*e67e8565SEmmanuel Vadot        compatible = "brcm,bcm7445-ahci", "brcm,sata3-ahci";
75*e67e8565SEmmanuel Vadot        reg = <0xf045a000 0xa9c>, <0xf0458040 0x24>;
76*e67e8565SEmmanuel Vadot        reg-names = "ahci", "top-ctrl";
77*e67e8565SEmmanuel Vadot        interrupts = <0 30 0>;
78*e67e8565SEmmanuel Vadot        #address-cells = <1>;
79*e67e8565SEmmanuel Vadot        #size-cells = <0>;
80*e67e8565SEmmanuel Vadot
81*e67e8565SEmmanuel Vadot        sata0: sata-port@0 {
82*e67e8565SEmmanuel Vadot            reg = <0>;
83*e67e8565SEmmanuel Vadot            phys = <&sata_phy 0>;
84*e67e8565SEmmanuel Vadot        };
85*e67e8565SEmmanuel Vadot
86*e67e8565SEmmanuel Vadot        sata1: sata-port@1 {
87*e67e8565SEmmanuel Vadot            reg = <1>;
88*e67e8565SEmmanuel Vadot            phys = <&sata_phy 1>;
89*e67e8565SEmmanuel Vadot        };
90*e67e8565SEmmanuel Vadot    };
91