Skip to content

Commit 18a1ee9

Browse files
Linus Walleijarndb
authored andcommitted
ARM: dts: usr8200: Fix phy registers
The MV88E6060 switch has internal PHY registers at MDIO addresses 0x00..0x04. Tie each port to the corresponding PHY. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20231020-ixp4xx-usr8200-dtsfix-v1-1-3a8591dea259@linaro.org Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 3f2f25b commit 18a1ee9

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

arch/arm/boot/dts/intel/ixp/intel-ixp42x-usrobotics-usr8200.dts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,24 @@
165165
#address-cells = <1>;
166166
#size-cells = <0>;
167167

168+
/*
169+
* PHY 0..4 are internal to the MV88E6060 switch but appear
170+
* as independent devices.
171+
*/
172+
phy0: ethernet-phy@0 {
173+
reg = <0>;
174+
};
175+
phy1: ethernet-phy@1 {
176+
reg = <1>;
177+
};
178+
phy2: ethernet-phy@2 {
179+
reg = <2>;
180+
};
181+
phy3: ethernet-phy@3 {
182+
reg = <3>;
183+
};
184+
185+
/* Altima AMI101L used by the WAN port */
168186
phy9: ethernet-phy@9 {
169187
reg = <9>;
170188
};
@@ -181,21 +199,25 @@
181199
port@0 {
182200
reg = <0>;
183201
label = "lan1";
202+
phy-handle = <&phy0>;
184203
};
185204

186205
port@1 {
187206
reg = <1>;
188207
label = "lan2";
208+
phy-handle = <&phy1>;
189209
};
190210

191211
port@2 {
192212
reg = <2>;
193213
label = "lan3";
214+
phy-handle = <&phy2>;
194215
};
195216

196217
port@3 {
197218
reg = <3>;
198219
label = "lan4";
220+
phy-handle = <&phy3>;
199221
};
200222

201223
port@5 {

0 commit comments

Comments
 (0)