Skip to content

Commit 6130ed3

Browse files
robherringdamien-lemoal
authored andcommitted
dt-bindings: ata: Convert marvell,orion-sata to DT schema
Convert the Marvell Orion SATA Controller to DT schema format. The clocks and clock-names properties were missing. The names for phy-names were incorrect. The maximum "nr-ports" was determined from the Linux driver. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
1 parent ca7cf1f commit 6130ed3

File tree

2 files changed

+83
-22
lines changed

2 files changed

+83
-22
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
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+
7+
title: Marvell Orion SATA
8+
9+
maintainers:
10+
- Andrew Lunn <andrew@lunn.ch>
11+
- Gregory Clement <gregory.clement@bootlin.com>
12+
13+
allOf:
14+
- $ref: sata-common.yaml#
15+
16+
properties:
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+
66+
required:
67+
- compatible
68+
- reg
69+
- interrupts
70+
- nr-ports
71+
72+
unevaluatedProperties: false
73+
74+
examples:
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+
};

Documentation/devicetree/bindings/ata/marvell.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)