xref: /freebsd/sys/contrib/device-tree/Bindings/ata/marvell,orion-sata.yaml (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/ata/marvell,orion-sata.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Marvell Orion SATA
8
9maintainers:
10  - Andrew Lunn <andrew@lunn.ch>
11  - Gregory Clement <gregory.clement@bootlin.com>
12
13allOf:
14  - $ref: sata-common.yaml#
15
16properties:
17  compatible:
18    enum:
19      - marvell,orion-sata
20      - marvell,armada-370-sata
21
22  reg:
23    maxItems: 1
24
25  clocks:
26    minItems: 1
27    maxItems: 8
28
29  clock-names:
30    minItems: 1
31    items:
32      - const: '0'
33      - const: '1'
34      - const: '2'
35      - const: '3'
36      - const: '4'
37      - const: '5'
38      - const: '6'
39      - const: '7'
40
41  interrupts:
42    maxItems: 1
43
44  nr-ports:
45    description:
46      Number of SATA ports in use.
47    $ref: /schemas/types.yaml#/definitions/uint32
48    maximum: 8
49
50  phys:
51    minItems: 1
52    maxItems: 8
53
54  phy-names:
55    minItems: 1
56    items:
57      - const: port0
58      - const: port1
59      - const: port2
60      - const: port3
61      - const: port4
62      - const: port5
63      - const: port6
64      - const: port7
65
66required:
67  - compatible
68  - reg
69  - interrupts
70  - nr-ports
71
72unevaluatedProperties: false
73
74examples:
75  - |
76    sata@80000 {
77        compatible = "marvell,orion-sata";
78        reg = <0x80000 0x5000>;
79        interrupts = <21>;
80        phys = <&sata_phy0>, <&sata_phy1>;
81        phy-names = "port0", "port1";
82        nr-ports = <2>;
83    };
84