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