Skip to content

Commit f4b522c

Browse files
robherringvinodkoul
authored andcommitted
dt-bindings: phy: Convert marvell,berlin2-sata-phy to DT schema
Convert the Marvell Berlin2 SATA PHY binding to DT schema format. It's a straight forward conversion. Signed-off-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 85d6af3 commit f4b522c

File tree

2 files changed

+76
-36
lines changed

2 files changed

+76
-36
lines changed

Documentation/devicetree/bindings/phy/berlin-sata-phy.txt

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/phy/marvell,berlin2-sata-phy.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Marvell Berlin SATA PHY
8+
9+
maintainers:
10+
- Antoine Tenart <[email protected]>
11+
12+
properties:
13+
compatible:
14+
enum:
15+
- marvell,berlin2-sata-phy
16+
- marvell,berlin2q-sata-phy
17+
18+
reg:
19+
maxItems: 1
20+
21+
clocks:
22+
maxItems: 1
23+
24+
'#address-cells':
25+
const: 1
26+
27+
'#size-cells':
28+
const: 0
29+
30+
'#phy-cells':
31+
const: 1
32+
33+
patternProperties:
34+
'^sata-phy@[0-1]$':
35+
description: A SATA PHY sub-node.
36+
type: object
37+
additionalProperties: false
38+
39+
properties:
40+
reg:
41+
maximum: 1
42+
description: PHY index number.
43+
44+
required:
45+
- reg
46+
47+
required:
48+
- compatible
49+
- reg
50+
- clocks
51+
- '#address-cells'
52+
- '#size-cells'
53+
- '#phy-cells'
54+
55+
additionalProperties: false
56+
57+
examples:
58+
- |
59+
#include <dt-bindings/clock/berlin2q.h>
60+
61+
phy@f7e900a0 {
62+
compatible = "marvell,berlin2q-sata-phy";
63+
reg = <0xf7e900a0 0x200>;
64+
clocks = <&chip CLKID_SATA>;
65+
#address-cells = <1>;
66+
#size-cells = <0>;
67+
#phy-cells = <1>;
68+
69+
sata-phy@0 {
70+
reg = <0>;
71+
};
72+
73+
sata-phy@1 {
74+
reg = <1>;
75+
};
76+
};

0 commit comments

Comments
 (0)