Skip to content

Commit c639a70

Browse files
pranavisomisettydavem330
authored andcommitted
dt-bindings: net: xilinx_gmii2rgmii: Convert to json schema
Convert the Xilinx GMII to RGMII Converter device tree binding documentation to json schema. This converter is usually used as gem <---> gmii2rgmii <---> external phy and, it's phy-handle should point to the phandle of the external phy. Signed-off-by: Pranavi Somisetty <pranavi.somisetty@amd.com> Signed-off-by: Harini Katakam <harini.katakam@amd.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4367d76 commit c639a70

2 files changed

Lines changed: 55 additions & 35 deletions

File tree

Documentation/devicetree/bindings/net/xilinx_gmii2rgmii.txt

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/xlnx,gmii-to-rgmii.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Xilinx GMII to RGMII Converter
8+
9+
maintainers:
10+
- Harini Katakam <harini.katakam@amd.com>
11+
12+
description:
13+
The Gigabit Media Independent Interface (GMII) to Reduced Gigabit Media
14+
Independent Interface (RGMII) core provides the RGMII between RGMII-compliant
15+
ethernet physical media devices (PHY) and the Gigabit Ethernet controller.
16+
This core can be used in all three modes of operation(10/100/1000 Mb/s).
17+
The Management Data Input/Output (MDIO) interface is used to configure the
18+
speed of operation. This core can switch dynamically between the three
19+
different speed modes by configuring the converter register through mdio write.
20+
The core cannot function without an external phy connected to it.
21+
22+
properties:
23+
compatible:
24+
const: xlnx,gmii-to-rgmii-1.0
25+
26+
reg:
27+
minimum: 0
28+
maximum: 31
29+
description: The ID number for the phy.
30+
31+
phy-handle:
32+
$ref: ethernet-controller.yaml#/properties/phy-handle
33+
34+
required:
35+
- compatible
36+
- reg
37+
- phy-handle
38+
39+
unevaluatedProperties: false
40+
41+
examples:
42+
- |
43+
mdio {
44+
#address-cells = <1>;
45+
#size-cells = <0>;
46+
47+
phy: ethernet-phy@0 {
48+
reg = <0>;
49+
};
50+
gmiitorgmii@8 {
51+
compatible = "xlnx,gmii-to-rgmii-1.0";
52+
reg = <8>;
53+
phy-handle = <&phy>;
54+
};
55+
};

0 commit comments

Comments
 (0)