fd7adc3584474488d965fd8afd53889b2f24af88
[openwrt/staging/xback.git] /
1 From 8aea8659a5f3ae8dc63c9f632ce1f676a1483556 Mon Sep 17 00:00:00 2001
2 From: Andrew Lunn <andrew@lunn.ch>
3 Date: Fri, 7 Apr 2023 17:17:20 +0200
4 Subject: [PATCH] ARM: dts: kirkwood: Add missing phy-mode and fixed links
5
6 The DSA framework has got more picky about always having a phy-mode
7 for the CPU port. The Kirkwood Ethernet is an RGMII port. Set the
8 switch to impose the RGMII delays.
9
10 Additionally, the cpu label has never actually been used in the
11 binding, so remove it.
12
13 Signed-off-by: Andrew Lunn <andrew@lunn.ch>
14 Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
15 ---
16 arch/arm/boot/dts/kirkwood-dir665.dts | 3 ++-
17 arch/arm/boot/dts/kirkwood-l-50.dts | 2 +-
18 arch/arm/boot/dts/kirkwood-linksys-viper.dts | 3 ++-
19 arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts | 3 ++-
20 arch/arm/boot/dts/kirkwood-rd88f6281.dtsi | 2 +-
21 5 files changed, 8 insertions(+), 5 deletions(-)
22
23 --- a/arch/arm/boot/dts/kirkwood-dir665.dts
24 +++ b/arch/arm/boot/dts/kirkwood-dir665.dts
25 @@ -232,7 +232,7 @@
26
27 port@6 {
28 reg = <6>;
29 - label = "cpu";
30 + phy-mode = "rgmii-id";
31 ethernet = <&eth0port>;
32 fixed-link {
33 speed = <1000>;
34 @@ -251,6 +251,7 @@
35 ethernet0-port@0 {
36 speed = <1000>;
37 duplex = <1>;
38 + phy-mode = "rgmii";
39 };
40 };
41
42 --- a/arch/arm/boot/dts/kirkwood-l-50.dts
43 +++ b/arch/arm/boot/dts/kirkwood-l-50.dts
44 @@ -254,7 +254,6 @@
45
46 port@6 {
47 reg = <6>;
48 - label = "cpu";
49 phy-mode = "rgmii-id";
50 ethernet = <&eth1port>;
51 fixed-link {
52 @@ -330,6 +329,7 @@
53 ethernet1-port@0 {
54 speed = <1000>;
55 duplex = <1>;
56 + phy-mode = "rgmii";
57 };
58 };
59
60 --- a/arch/arm/boot/dts/kirkwood-linksys-viper.dts
61 +++ b/arch/arm/boot/dts/kirkwood-linksys-viper.dts
62 @@ -198,7 +198,7 @@
63
64 port@5 {
65 reg = <5>;
66 - label = "cpu";
67 + phy-mode = "rgmii-id";
68 ethernet = <&eth0port>;
69 fixed-link {
70 speed = <1000>;
71 @@ -221,6 +221,7 @@
72 ethernet0-port@0 {
73 speed = <1000>;
74 duplex = <1>;
75 + phy-mode = "rgmii";
76 };
77 };
78
79 --- a/arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts
80 +++ b/arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts
81 @@ -149,7 +149,7 @@
82
83 port@5 {
84 reg = <5>;
85 - label = "cpu";
86 + phy-mode = "rgmii-id";
87 ethernet = <&eth0port>;
88 fixed-link {
89 speed = <1000>;
90 @@ -166,6 +166,7 @@
91 ethernet0-port@0 {
92 speed = <1000>;
93 duplex = <1>;
94 + phy-mode = "rgmii";
95 };
96 };
97
98 --- a/arch/arm/boot/dts/kirkwood-rd88f6281.dtsi
99 +++ b/arch/arm/boot/dts/kirkwood-rd88f6281.dtsi
100 @@ -105,7 +105,7 @@
101
102 port@5 {
103 reg = <5>;
104 - label = "cpu";
105 + phy-mode = "rgmii-id";
106 ethernet = <&eth0port>;
107 fixed-link {
108 speed = <1000>;