Skip to content

Commit 50ea925

Browse files
AnsuelNipaLocal
authored andcommitted
dt-bindings: net: Document support for Airoha AN7583 MDIO Controller
Airoha AN7583 SoC have 3 different MDIO Controller. One comes from the intergated Switch based on MT7530. The other 2 live under the SCU register and expose 2 dedicated MDIO controller. Document the schema for the 2 dedicated MDIO controller. Each MDIO controller can be independently reset with the SoC reset line. Each MDIO controller have a dedicated clock configured to 2.5MHz by default to follow MDIO bus IEEE 802.3 standard. Signed-off-by: Christian Marangi <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent 86eb2a5 commit 50ea925

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/airoha,an7583-mdio.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Airoha AN7583 Dedicated MDIO Controller
8+
9+
maintainers:
10+
- Christian Marangi <[email protected]>
11+
12+
description:
13+
Airoha AN7583 SoC have 3 different MDIO Controller.
14+
15+
One comes from the intergated Switch based on MT7530.
16+
17+
The other 2 (that this schema describe) live under the SCU
18+
register supporting both C22 and C45 PHYs.
19+
20+
$ref: mdio.yaml#
21+
22+
properties:
23+
compatible:
24+
const: airoha,an7583-mdio
25+
26+
reg:
27+
enum: [0xc8, 0xcc]
28+
29+
clocks:
30+
maxItems: 1
31+
32+
resets:
33+
maxItems: 1
34+
35+
clock-frequency:
36+
default: 2500000
37+
38+
required:
39+
- compatible
40+
- reg
41+
- clocks
42+
- resets
43+
44+
unevaluatedProperties: false
45+
46+
examples:
47+
- |
48+
system-controller {
49+
#address-cells = <1>;
50+
#size-cells = <0>;
51+
52+
mdio-bus@c8 {
53+
compatible = "airoha,an7583-mdio";
54+
reg = <0xc8>;
55+
56+
clocks = <&scu>;
57+
resets = <&scu>;
58+
};
59+
};

0 commit comments

Comments
 (0)