Skip to content

Commit fff6186

Browse files
dangowrtfrank-w
authored andcommitted
dt-bindings: net: dsa: add bindings for MaxLinear MxL862xx
Add documentation and an example for MaxLinear MxL86282 and MxL86252 switches. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
1 parent e896e04 commit fff6186

File tree

2 files changed

+168
-0
lines changed

2 files changed

+168
-0
lines changed
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/dsa/maxlinear,mxl862xx.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MaxLinear MxL862xx Ethernet Switch Family
8+
9+
maintainers:
10+
- Daniel Golle <daniel@makrotopia.org>
11+
12+
description:
13+
The MaxLinear MxL862xx switch family are multi-port Ethernet switches with
14+
integrated 2.5GE PHYs. The MxL86252 has five PHY ports and the MxL86282
15+
has eight PHY ports. Both models come with two 10 Gigabit/s SerDes
16+
interfaces to be used to connect external PHYs or SFP cages, or as CPU
17+
port.
18+
19+
allOf:
20+
- $ref: dsa.yaml#/$defs/ethernet-ports
21+
22+
properties:
23+
compatible:
24+
enum:
25+
- maxlinear,mxl86252
26+
- maxlinear,mxl86282
27+
28+
reg:
29+
maxItems: 1
30+
description: MDIO address of the switch
31+
32+
mdio:
33+
$ref: /schemas/net/mdio.yaml#
34+
unevaluatedProperties: false
35+
36+
required:
37+
- compatible
38+
- reg
39+
40+
unevaluatedProperties: false
41+
42+
examples:
43+
- |
44+
mdio {
45+
#address-cells = <1>;
46+
#size-cells = <0>;
47+
48+
switch@0 {
49+
compatible = "maxlinear,mxl86282";
50+
reg = <0>;
51+
52+
ethernet-ports {
53+
#address-cells = <1>;
54+
#size-cells = <0>;
55+
56+
port@0 {
57+
reg = <0>;
58+
label = "lan1";
59+
phy-handle = <&phy0>;
60+
phy-mode = "internal";
61+
};
62+
63+
port@1 {
64+
reg = <1>;
65+
label = "lan2";
66+
phy-handle = <&phy1>;
67+
phy-mode = "internal";
68+
};
69+
70+
port@2 {
71+
reg = <2>;
72+
label = "lan3";
73+
phy-handle = <&phy2>;
74+
phy-mode = "internal";
75+
};
76+
77+
port@3 {
78+
reg = <3>;
79+
label = "lan4";
80+
phy-handle = <&phy3>;
81+
phy-mode = "internal";
82+
};
83+
84+
port@4 {
85+
reg = <4>;
86+
label = "lan5";
87+
phy-handle = <&phy4>;
88+
phy-mode = "internal";
89+
};
90+
91+
port@5 {
92+
reg = <5>;
93+
label = "lan6";
94+
phy-handle = <&phy5>;
95+
phy-mode = "internal";
96+
};
97+
98+
port@6 {
99+
reg = <6>;
100+
label = "lan7";
101+
phy-handle = <&phy6>;
102+
phy-mode = "internal";
103+
};
104+
105+
port@7 {
106+
reg = <7>;
107+
label = "lan8";
108+
phy-handle = <&phy7>;
109+
phy-mode = "internal";
110+
};
111+
112+
port@8 {
113+
reg = <8>;
114+
label = "cpu";
115+
ethernet = <&gmac0>;
116+
phy-mode = "usxgmii";
117+
118+
fixed-link {
119+
speed = <10000>;
120+
full-duplex;
121+
};
122+
};
123+
};
124+
125+
mdio {
126+
#address-cells = <1>;
127+
#size-cells = <0>;
128+
129+
phy0: ethernet-phy@0 {
130+
reg = <0>;
131+
};
132+
133+
phy1: ethernet-phy@1 {
134+
reg = <1>;
135+
};
136+
137+
phy2: ethernet-phy@2 {
138+
reg = <2>;
139+
};
140+
141+
phy3: ethernet-phy@3 {
142+
reg = <3>;
143+
};
144+
145+
phy4: ethernet-phy@4 {
146+
reg = <4>;
147+
};
148+
149+
phy5: ethernet-phy@5 {
150+
reg = <5>;
151+
};
152+
153+
phy6: ethernet-phy@6 {
154+
reg = <6>;
155+
};
156+
157+
phy7: ethernet-phy@7 {
158+
reg = <7>;
159+
};
160+
};
161+
};
162+
};

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15611,6 +15611,12 @@ S: Supported
1561115611
F: drivers/net/phy/mxl-86110.c
1561215612
F: drivers/net/phy/mxl-gpy.c
1561315613

15614+
MAXLINEAR MXL862XX SWITCH DRIVER
15615+
M: Daniel Golle <daniel@makrotopia.org>
15616+
L: netdev@vger.kernel.org
15617+
S: Maintained
15618+
F: Documentation/devicetree/bindings/net/dsa/maxlinear,mxl862xx.yaml
15619+
1561415620
MCAN DEVICE DRIVER
1561515621
M: Markus Schneider-Pargmann <msp@baylibre.com>
1561615622
L: linux-can@vger.kernel.org

0 commit comments

Comments
 (0)