Skip to content

Commit e663ad6

Browse files
robherringkuba-moo
authored andcommitted
dt-bindings: net: Convert APM XGene MDIO to DT schema
Convert the APM XGene MDIO bus binding to DT schema format. It's a straight-forward conversion. Reviewed-by: Jacob Keller <[email protected]> Signed-off-by: Rob Herring (Arm) <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 0b467f5 commit e663ad6

File tree

3 files changed

+55
-38
lines changed

3 files changed

+55
-38
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/apm,xgene-mdio-rgmii.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: APM X-Gene SoC MDIO
8+
9+
maintainers:
10+
- Iyappan Subramanian <[email protected]>
11+
- Keyur Chudgar <[email protected]>
12+
- Quan Nguyen <[email protected]>
13+
14+
allOf:
15+
- $ref: mdio.yaml#
16+
17+
properties:
18+
compatible:
19+
enum:
20+
- apm,xgene-mdio-rgmii
21+
- apm,xgene-mdio-xfi
22+
23+
reg:
24+
maxItems: 1
25+
26+
clocks:
27+
maxItems: 1
28+
29+
unevaluatedProperties: false
30+
31+
required:
32+
- compatible
33+
- reg
34+
- clocks
35+
36+
examples:
37+
- |
38+
mdio@17020000 {
39+
compatible = "apm,xgene-mdio-rgmii";
40+
#address-cells = <1>;
41+
#size-cells = <0>;
42+
reg = <0x17020000 0xd100>;
43+
clocks = <&menetclk 0>;
44+
45+
phy@3 {
46+
reg = <0x3>;
47+
};
48+
phy@4 {
49+
reg = <0x4>;
50+
};
51+
phy@5 {
52+
reg = <0x5>;
53+
};
54+
};

Documentation/devicetree/bindings/net/apm-xgene-mdio.txt

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

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1887,7 +1887,7 @@ M: Keyur Chudgar <[email protected]>
18871887
M: Quan Nguyen <[email protected]>
18881888
S: Maintained
18891889
F: Documentation/devicetree/bindings/net/apm,xgene-enet.yaml
1890-
F: Documentation/devicetree/bindings/net/apm-xgene-mdio.txt
1890+
F: Documentation/devicetree/bindings/net/apm,xgene-mdio-rgmii.yaml
18911891
F: drivers/net/ethernet/apm/xgene/
18921892
F: drivers/net/mdio/mdio-xgene.c
18931893

0 commit comments

Comments
 (0)