Skip to content

Commit d7b9eaf

Browse files
ffainellimripard
authored andcommitted
ARM: dts: sun7i: Add BCM53125 switch nodes to the lamobo-r1 board
Now that we have a proper binding for Ethernet switches hanging off different buses, and a driver for the BCM53125 switch, add its Device Tree as a child MDIO node, at MDIO address 30 (Broadcom pseudo-PHY address) and describe the ports layout of the Lamobo R1 board. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Acked-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
1 parent 29bc949 commit d7b9eaf

File tree

1 file changed

+57
-3
lines changed

1 file changed

+57
-3
lines changed

arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts

Lines changed: 57 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,67 @@
110110
&gmac {
111111
pinctrl-names = "default";
112112
pinctrl-0 = <&gmac_pins_rgmii_a>;
113-
phy = <&phy1>;
114113
phy-mode = "rgmii";
115114
phy-supply = <&reg_gmac_3v3>;
116115
status = "okay";
117116

118-
phy1: ethernet-phy@1 {
119-
reg = <1>;
117+
fixed-link {
118+
speed = <1000>;
119+
full-duplex;
120+
};
121+
122+
mdio {
123+
compatible = "snps,dwmac-mdio";
124+
#address-cells = <1>;
125+
#size-cells = <0>;
126+
127+
switch: ethernet-switch@1e {
128+
compatible = "brcm,bcm53125";
129+
reg = <30>;
130+
#address-cells = <1>;
131+
#size-cells = <0>;
132+
133+
ports {
134+
#address-cells = <1>;
135+
#size-cells = <0>;
136+
137+
port0: port@0 {
138+
reg = <0>;
139+
label = "lan2";
140+
};
141+
142+
port1: port@1 {
143+
reg = <1>;
144+
label = "lan3";
145+
};
146+
147+
port2: port@2 {
148+
reg = <2>;
149+
label = "lan4";
150+
};
151+
152+
port3: port@3 {
153+
reg = <3>;
154+
label = "wan";
155+
};
156+
157+
port4: port@4 {
158+
reg = <4>;
159+
label = "lan1";
160+
};
161+
162+
port8: port@8 {
163+
reg = <8>;
164+
label = "cpu";
165+
ethernet = <&gmac>;
166+
phy-mode = "rgmii";
167+
fixed-link {
168+
speed = <1000>;
169+
full-duplex;
170+
};
171+
};
172+
};
173+
};
120174
};
121175
};
122176

0 commit comments

Comments
 (0)