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