Skip to content

Commit 4ccc985

Browse files
dangowrtPaolo Abeni
authored andcommitted
dt-bindings: net: dsa: add 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> Link: https://patch.msgid.link/22a6a3c8c15b932ff4b7d0cd8863939f06a0c2b4.1770433307.git.daniel@makrotopia.org Reviewed-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent ccb3272 commit 4ccc985

2 files changed

Lines changed: 167 additions & 0 deletions

File tree

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
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+
- mdio
39+
- reg
40+
41+
unevaluatedProperties: false
42+
43+
examples:
44+
- |
45+
mdio {
46+
#address-cells = <1>;
47+
#size-cells = <0>;
48+
49+
switch@0 {
50+
compatible = "maxlinear,mxl86282";
51+
reg = <0>;
52+
53+
ethernet-ports {
54+
#address-cells = <1>;
55+
#size-cells = <0>;
56+
57+
/* Microcontroller port */
58+
port@0 {
59+
reg = <0>;
60+
status = "disabled";
61+
};
62+
63+
port@1 {
64+
reg = <1>;
65+
phy-handle = <&phy0>;
66+
phy-mode = "internal";
67+
};
68+
69+
port@2 {
70+
reg = <2>;
71+
phy-handle = <&phy1>;
72+
phy-mode = "internal";
73+
};
74+
75+
port@3 {
76+
reg = <3>;
77+
phy-handle = <&phy2>;
78+
phy-mode = "internal";
79+
};
80+
81+
port@4 {
82+
reg = <4>;
83+
phy-handle = <&phy3>;
84+
phy-mode = "internal";
85+
};
86+
87+
port@5 {
88+
reg = <5>;
89+
phy-handle = <&phy4>;
90+
phy-mode = "internal";
91+
};
92+
93+
port@6 {
94+
reg = <6>;
95+
phy-handle = <&phy5>;
96+
phy-mode = "internal";
97+
};
98+
99+
port@7 {
100+
reg = <7>;
101+
phy-handle = <&phy6>;
102+
phy-mode = "internal";
103+
};
104+
105+
port@8 {
106+
reg = <8>;
107+
phy-handle = <&phy7>;
108+
phy-mode = "internal";
109+
};
110+
111+
port@9 {
112+
reg = <9>;
113+
label = "cpu";
114+
ethernet = <&gmac0>;
115+
phy-mode = "usxgmii";
116+
117+
fixed-link {
118+
speed = <10000>;
119+
full-duplex;
120+
};
121+
};
122+
};
123+
124+
mdio {
125+
#address-cells = <1>;
126+
#size-cells = <0>;
127+
128+
phy0: ethernet-phy@0 {
129+
reg = <0>;
130+
};
131+
132+
phy1: ethernet-phy@1 {
133+
reg = <1>;
134+
};
135+
136+
phy2: ethernet-phy@2 {
137+
reg = <2>;
138+
};
139+
140+
phy3: ethernet-phy@3 {
141+
reg = <3>;
142+
};
143+
144+
phy4: ethernet-phy@4 {
145+
reg = <4>;
146+
};
147+
148+
phy5: ethernet-phy@5 {
149+
reg = <5>;
150+
};
151+
152+
phy6: ethernet-phy@6 {
153+
reg = <6>;
154+
};
155+
156+
phy7: ethernet-phy@7 {
157+
reg = <7>;
158+
};
159+
};
160+
};
161+
};

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15626,6 +15626,12 @@ S: Supported
1562615626
F: drivers/net/phy/mxl-86110.c
1562715627
F: drivers/net/phy/mxl-gpy.c
1562815628

15629+
MAXLINEAR MXL862XX SWITCH DRIVER
15630+
M: Daniel Golle <daniel@makrotopia.org>
15631+
L: netdev@vger.kernel.org
15632+
S: Maintained
15633+
F: Documentation/devicetree/bindings/net/dsa/maxlinear,mxl862xx.yaml
15634+
1562915635
MCAN DEVICE DRIVER
1563015636
M: Markus Schneider-Pargmann <msp@baylibre.com>
1563115637
L: linux-can@vger.kernel.org

0 commit comments

Comments
 (0)