diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2013-07-07 16:34:56 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2013-07-25 16:54:04 -0400 |
commit | 876e233335115eadd51761d49fc638db575337aa (patch) | |
tree | 566467489b279372d67366b2fc1597e2672b57ec /arch/arm/boot/dts | |
parent | 4c3f6b868c1525f750ed78d164302ec411d4d790 (diff) |
ARM: kirkwood: add gigabit ethernet and mvmdio device tree nodes
This patch adds mv643xx_eth and mvmdio device tree nodes for DT enabled
Kirkwood boards. Phy nodes are also added with reg property set on a
per-board basis.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/boot/dts')
27 files changed, 430 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/kirkwood-cloudbox.dts b/arch/arm/boot/dts/kirkwood-cloudbox.dts index 00c48d26de68..85eed62cadd5 100644 --- a/arch/arm/boot/dts/kirkwood-cloudbox.dts +++ b/arch/arm/boot/dts/kirkwood-cloudbox.dts | |||
@@ -89,3 +89,19 @@ | |||
89 | gpios = <&gpio0 17 0>; | 89 | gpios = <&gpio0 17 0>; |
90 | }; | 90 | }; |
91 | }; | 91 | }; |
92 | |||
93 | &mdio { | ||
94 | status = "okay"; | ||
95 | |||
96 | ethphy0: ethernet-phy@0 { | ||
97 | device_type = "ethernet-phy"; | ||
98 | reg = <0>; | ||
99 | }; | ||
100 | }; | ||
101 | |||
102 | ð0 { | ||
103 | status = "okay"; | ||
104 | ethernet0-port@0 { | ||
105 | phy-handle = <ðphy0>; | ||
106 | }; | ||
107 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-db.dtsi b/arch/arm/boot/dts/kirkwood-db.dtsi index c87cfb816120..ca8bf362748a 100644 --- a/arch/arm/boot/dts/kirkwood-db.dtsi +++ b/arch/arm/boot/dts/kirkwood-db.dtsi | |||
@@ -87,3 +87,19 @@ | |||
87 | }; | 87 | }; |
88 | }; | 88 | }; |
89 | }; | 89 | }; |
90 | |||
91 | &mdio { | ||
92 | status = "okay"; | ||
93 | |||
94 | ethphy0: ethernet-phy@8 { | ||
95 | device_type = "ethernet-phy"; | ||
96 | reg = <8>; | ||
97 | }; | ||
98 | }; | ||
99 | |||
100 | ð0 { | ||
101 | status = "okay"; | ||
102 | ethernet0-port@0 { | ||
103 | phy-handle = <ðphy0>; | ||
104 | }; | ||
105 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-dnskw.dtsi b/arch/arm/boot/dts/kirkwood-dnskw.dtsi index 0afe1d07c803..f600ed7adc4c 100644 --- a/arch/arm/boot/dts/kirkwood-dnskw.dtsi +++ b/arch/arm/boot/dts/kirkwood-dnskw.dtsi | |||
@@ -219,3 +219,19 @@ | |||
219 | }; | 219 | }; |
220 | }; | 220 | }; |
221 | }; | 221 | }; |
222 | |||
223 | &mdio { | ||
224 | status = "okay"; | ||
225 | |||
226 | ethphy0: ethernet-phy@8 { | ||
227 | device_type = "ethernet-phy"; | ||
228 | reg = <8>; | ||
229 | }; | ||
230 | }; | ||
231 | |||
232 | ð0 { | ||
233 | status = "okay"; | ||
234 | ethernet0-port@0 { | ||
235 | phy-handle = <ðphy0>; | ||
236 | }; | ||
237 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-dockstar.dts b/arch/arm/boot/dts/kirkwood-dockstar.dts index 7714742bb8d8..915aca6cebe7 100644 --- a/arch/arm/boot/dts/kirkwood-dockstar.dts +++ b/arch/arm/boot/dts/kirkwood-dockstar.dts | |||
@@ -90,3 +90,20 @@ | |||
90 | }; | 90 | }; |
91 | }; | 91 | }; |
92 | }; | 92 | }; |
93 | |||
94 | &mdio { | ||
95 | status = "okay"; | ||
96 | |||
97 | ethphy0: ethernet-phy@0 { | ||
98 | device_type = "ethernet-phy"; | ||
99 | compatible = "marvell,88e1116"; | ||
100 | reg = <0>; | ||
101 | }; | ||
102 | }; | ||
103 | |||
104 | ð0 { | ||
105 | status = "okay"; | ||
106 | ethernet0-port@0 { | ||
107 | phy-handle = <ðphy0>; | ||
108 | }; | ||
109 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-dreamplug.dts b/arch/arm/boot/dts/kirkwood-dreamplug.dts index 36c7ba38d500..300fbf83e273 100644 --- a/arch/arm/boot/dts/kirkwood-dreamplug.dts +++ b/arch/arm/boot/dts/kirkwood-dreamplug.dts | |||
@@ -99,3 +99,31 @@ | |||
99 | }; | 99 | }; |
100 | }; | 100 | }; |
101 | }; | 101 | }; |
102 | |||
103 | &mdio { | ||
104 | status = "okay"; | ||
105 | |||
106 | ethphy0: ethernet-phy@0 { | ||
107 | device_type = "ethernet-phy"; | ||
108 | reg = <0>; | ||
109 | }; | ||
110 | |||
111 | ethphy1: ethernet-phy@1 { | ||
112 | device_type = "ethernet-phy"; | ||
113 | reg = <1>; | ||
114 | }; | ||
115 | }; | ||
116 | |||
117 | ð0 { | ||
118 | status = "okay"; | ||
119 | ethernet0-port@0 { | ||
120 | phy-handle = <ðphy0>; | ||
121 | }; | ||
122 | }; | ||
123 | |||
124 | ð1 { | ||
125 | status = "okay"; | ||
126 | ethernet1-port@0 { | ||
127 | phy-handle = <ðphy1>; | ||
128 | }; | ||
129 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-goflexnet.dts b/arch/arm/boot/dts/kirkwood-goflexnet.dts index 31caa6405065..e9ba68e336ad 100644 --- a/arch/arm/boot/dts/kirkwood-goflexnet.dts +++ b/arch/arm/boot/dts/kirkwood-goflexnet.dts | |||
@@ -170,3 +170,19 @@ | |||
170 | }; | 170 | }; |
171 | }; | 171 | }; |
172 | }; | 172 | }; |
173 | |||
174 | &mdio { | ||
175 | status = "okay"; | ||
176 | |||
177 | ethphy0: ethernet-phy@0 { | ||
178 | device_type = "ethernet-phy"; | ||
179 | reg = <0>; | ||
180 | }; | ||
181 | }; | ||
182 | |||
183 | ð0 { | ||
184 | status = "okay"; | ||
185 | ethernet0-port@0 { | ||
186 | phy-handle = <ðphy0>; | ||
187 | }; | ||
188 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-guruplug-server-plus.dts b/arch/arm/boot/dts/kirkwood-guruplug-server-plus.dts index 1e642f39b154..e696c31f88a2 100644 --- a/arch/arm/boot/dts/kirkwood-guruplug-server-plus.dts +++ b/arch/arm/boot/dts/kirkwood-guruplug-server-plus.dts | |||
@@ -96,3 +96,33 @@ | |||
96 | }; | 96 | }; |
97 | }; | 97 | }; |
98 | }; | 98 | }; |
99 | |||
100 | &mdio { | ||
101 | status = "okay"; | ||
102 | |||
103 | ethphy0: ethernet-phy@0 { | ||
104 | device_type = "ethernet-phy"; | ||
105 | compatible = "marvell,88e1121"; | ||
106 | reg = <0>; | ||
107 | }; | ||
108 | |||
109 | ethphy1: ethernet-phy@1 { | ||
110 | device_type = "ethernet-phy"; | ||
111 | compatible = "marvell,88e1121"; | ||
112 | reg = <1>; | ||
113 | }; | ||
114 | }; | ||
115 | |||
116 | ð0 { | ||
117 | status = "okay"; | ||
118 | ethernet0-port@0 { | ||
119 | phy-handle = <ðphy0>; | ||
120 | }; | ||
121 | }; | ||
122 | |||
123 | ð1 { | ||
124 | status = "okay"; | ||
125 | ethernet1-port@0 { | ||
126 | phy-handle = <ðphy1>; | ||
127 | }; | ||
128 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-ib62x0.dts b/arch/arm/boot/dts/kirkwood-ib62x0.dts index 20c4b081f420..69019b8d12df 100644 --- a/arch/arm/boot/dts/kirkwood-ib62x0.dts +++ b/arch/arm/boot/dts/kirkwood-ib62x0.dts | |||
@@ -122,3 +122,19 @@ | |||
122 | 122 | ||
123 | 123 | ||
124 | }; | 124 | }; |
125 | |||
126 | &mdio { | ||
127 | status = "okay"; | ||
128 | |||
129 | ethphy0: ethernet-phy@8 { | ||
130 | device_type = "ethernet-phy"; | ||
131 | reg = <8>; | ||
132 | }; | ||
133 | }; | ||
134 | |||
135 | ð0 { | ||
136 | status = "okay"; | ||
137 | ethernet0-port@0 { | ||
138 | phy-handle = <ðphy0>; | ||
139 | }; | ||
140 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-iconnect.dts b/arch/arm/boot/dts/kirkwood-iconnect.dts index 441204e8abc6..3d99164c263f 100644 --- a/arch/arm/boot/dts/kirkwood-iconnect.dts +++ b/arch/arm/boot/dts/kirkwood-iconnect.dts | |||
@@ -176,3 +176,19 @@ | |||
176 | }; | 176 | }; |
177 | }; | 177 | }; |
178 | }; | 178 | }; |
179 | |||
180 | &mdio { | ||
181 | status = "okay"; | ||
182 | |||
183 | ethphy0: ethernet-phy@11 { | ||
184 | device_type = "ethernet-phy"; | ||
185 | reg = <11>; | ||
186 | }; | ||
187 | }; | ||
188 | |||
189 | ð0 { | ||
190 | status = "okay"; | ||
191 | ethernet0-port@0 { | ||
192 | phy-handle = <ðphy0>; | ||
193 | }; | ||
194 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts b/arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts index 00a7bfe5e83b..b08c733684a6 100644 --- a/arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts +++ b/arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts | |||
@@ -194,3 +194,27 @@ | |||
194 | }; | 194 | }; |
195 | }; | 195 | }; |
196 | }; | 196 | }; |
197 | |||
198 | &mdio { | ||
199 | status = "okay"; | ||
200 | |||
201 | ethphy1: ethernet-phy@11 { | ||
202 | device_type = "ethernet-phy"; | ||
203 | reg = <11>; | ||
204 | }; | ||
205 | }; | ||
206 | |||
207 | ð0 { | ||
208 | status = "okay"; | ||
209 | ethernet0-port@0 { | ||
210 | speed = <1000>; | ||
211 | duplex = <1>; | ||
212 | }; | ||
213 | }; | ||
214 | |||
215 | ð1 { | ||
216 | status = "okay"; | ||
217 | ethernet1-port@0 { | ||
218 | phy-handle = <ðphy1>; | ||
219 | }; | ||
220 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-is2.dts b/arch/arm/boot/dts/kirkwood-is2.dts index c3f036b86cca..ff9be4523a34 100644 --- a/arch/arm/boot/dts/kirkwood-is2.dts +++ b/arch/arm/boot/dts/kirkwood-is2.dts | |||
@@ -30,3 +30,5 @@ | |||
30 | }; | 30 | }; |
31 | }; | 31 | }; |
32 | }; | 32 | }; |
33 | |||
34 | ðphy0 { reg = <8>; }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-km_kirkwood.dts b/arch/arm/boot/dts/kirkwood-km_kirkwood.dts index 5d9f5ea78700..466280b6ab31 100644 --- a/arch/arm/boot/dts/kirkwood-km_kirkwood.dts +++ b/arch/arm/boot/dts/kirkwood-km_kirkwood.dts | |||
@@ -50,3 +50,19 @@ | |||
50 | i2c-gpio,delay-us = <2>; /* ~100 kHz */ | 50 | i2c-gpio,delay-us = <2>; /* ~100 kHz */ |
51 | }; | 51 | }; |
52 | }; | 52 | }; |
53 | |||
54 | &mdio { | ||
55 | status = "okay"; | ||
56 | |||
57 | ethphy0: ethernet-phy@0 { | ||
58 | device_type = "ethernet-phy"; | ||
59 | reg = <0>; | ||
60 | }; | ||
61 | }; | ||
62 | |||
63 | ð0 { | ||
64 | status = "okay"; | ||
65 | ethernet0-port@0 { | ||
66 | phy-handle = <ðphy0>; | ||
67 | }; | ||
68 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-lsxl.dtsi b/arch/arm/boot/dts/kirkwood-lsxl.dtsi index 31b17f5b9d28..93397b1e4027 100644 --- a/arch/arm/boot/dts/kirkwood-lsxl.dtsi +++ b/arch/arm/boot/dts/kirkwood-lsxl.dtsi | |||
@@ -207,3 +207,31 @@ | |||
207 | }; | 207 | }; |
208 | }; | 208 | }; |
209 | }; | 209 | }; |
210 | |||
211 | &mdio { | ||
212 | status = "okay"; | ||
213 | |||
214 | ethphy0: ethernet-phy@0 { | ||
215 | device_type = "ethernet-phy"; | ||
216 | reg = <0>; | ||
217 | }; | ||
218 | |||
219 | ethphy1: ethernet-phy@8 { | ||
220 | device_type = "ethernet-phy"; | ||
221 | reg = <8>; | ||
222 | }; | ||
223 | }; | ||
224 | |||
225 | ð0 { | ||
226 | status = "okay"; | ||
227 | ethernet0-port@0 { | ||
228 | phy-handle = <ðphy0>; | ||
229 | }; | ||
230 | }; | ||
231 | |||
232 | ð1 { | ||
233 | status = "okay"; | ||
234 | ethernet1-port@0 { | ||
235 | phy-handle = <ðphy1>; | ||
236 | }; | ||
237 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-mplcec4.dts b/arch/arm/boot/dts/kirkwood-mplcec4.dts index 6179333fd71f..def825f43489 100644 --- a/arch/arm/boot/dts/kirkwood-mplcec4.dts +++ b/arch/arm/boot/dts/kirkwood-mplcec4.dts | |||
@@ -191,3 +191,30 @@ | |||
191 | }; | 191 | }; |
192 | }; | 192 | }; |
193 | 193 | ||
194 | &mdio { | ||
195 | status = "okay"; | ||
196 | |||
197 | ethphy0: ethernet-phy@1 { | ||
198 | device_type = "ethernet-phy"; | ||
199 | reg = <1>; | ||
200 | }; | ||
201 | |||
202 | ethphy1: ethernet-phy@2 { | ||
203 | device_type = "ethernet-phy"; | ||
204 | reg = <2>; | ||
205 | }; | ||
206 | }; | ||
207 | |||
208 | ð0 { | ||
209 | status = "okay"; | ||
210 | ethernet0-port@0 { | ||
211 | phy-handle = <ðphy0>; | ||
212 | }; | ||
213 | }; | ||
214 | |||
215 | ð1 { | ||
216 | status = "okay"; | ||
217 | ethernet1-port@0 { | ||
218 | phy-handle = <ðphy1>; | ||
219 | }; | ||
220 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts b/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts index ad6ade7d9191..716b203622bd 100644 --- a/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts +++ b/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts | |||
@@ -184,3 +184,19 @@ | |||
184 | }; | 184 | }; |
185 | }; | 185 | }; |
186 | }; | 186 | }; |
187 | |||
188 | &mdio { | ||
189 | status = "okay"; | ||
190 | |||
191 | ethphy0: ethernet-phy@0 { | ||
192 | device_type = "ethernet-phy"; | ||
193 | reg = <0>; | ||
194 | }; | ||
195 | }; | ||
196 | |||
197 | ð0 { | ||
198 | status = "okay"; | ||
199 | ethernet0-port@0 { | ||
200 | phy-handle = <ðphy0>; | ||
201 | }; | ||
202 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-ns2-common.dtsi b/arch/arm/boot/dts/kirkwood-ns2-common.dtsi index 2afac0405816..e7b80179c6d2 100644 --- a/arch/arm/boot/dts/kirkwood-ns2-common.dtsi +++ b/arch/arm/boot/dts/kirkwood-ns2-common.dtsi | |||
@@ -84,3 +84,19 @@ | |||
84 | }; | 84 | }; |
85 | 85 | ||
86 | }; | 86 | }; |
87 | |||
88 | &mdio { | ||
89 | status = "okay"; | ||
90 | |||
91 | ethphy0: ethernet-phy { | ||
92 | device_type = "ethernet-phy"; | ||
93 | /* overwrite reg property in board file */ | ||
94 | }; | ||
95 | }; | ||
96 | |||
97 | ð0 { | ||
98 | status = "okay"; | ||
99 | ethernet0-port@0 { | ||
100 | phy-handle = <ðphy0>; | ||
101 | }; | ||
102 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-ns2.dts b/arch/arm/boot/dts/kirkwood-ns2.dts index b50e93d7796c..e93276d918b8 100644 --- a/arch/arm/boot/dts/kirkwood-ns2.dts +++ b/arch/arm/boot/dts/kirkwood-ns2.dts | |||
@@ -30,3 +30,5 @@ | |||
30 | }; | 30 | }; |
31 | }; | 31 | }; |
32 | }; | 32 | }; |
33 | |||
34 | ðphy0 { reg = <8>; }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-ns2lite.dts b/arch/arm/boot/dts/kirkwood-ns2lite.dts index af8259fe8955..34f5e69b9f15 100644 --- a/arch/arm/boot/dts/kirkwood-ns2lite.dts +++ b/arch/arm/boot/dts/kirkwood-ns2lite.dts | |||
@@ -30,3 +30,5 @@ | |||
30 | }; | 30 | }; |
31 | }; | 31 | }; |
32 | }; | 32 | }; |
33 | |||
34 | ðphy0 { reg = <0>; }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-ns2max.dts b/arch/arm/boot/dts/kirkwood-ns2max.dts index 85f24d227e17..f834c558b695 100644 --- a/arch/arm/boot/dts/kirkwood-ns2max.dts +++ b/arch/arm/boot/dts/kirkwood-ns2max.dts | |||
@@ -49,3 +49,5 @@ | |||
49 | }; | 49 | }; |
50 | }; | 50 | }; |
51 | }; | 51 | }; |
52 | |||
53 | ðphy0 { reg = <8>; }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-ns2mini.dts b/arch/arm/boot/dts/kirkwood-ns2mini.dts index 329e530bffe7..b6b66ead90c3 100644 --- a/arch/arm/boot/dts/kirkwood-ns2mini.dts +++ b/arch/arm/boot/dts/kirkwood-ns2mini.dts | |||
@@ -50,3 +50,5 @@ | |||
50 | }; | 50 | }; |
51 | }; | 51 | }; |
52 | }; | 52 | }; |
53 | |||
54 | ðphy0 { reg = <0>; }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-openblocks_a6.dts b/arch/arm/boot/dts/kirkwood-openblocks_a6.dts index 38dc8517d777..7235f0c4bf8f 100644 --- a/arch/arm/boot/dts/kirkwood-openblocks_a6.dts +++ b/arch/arm/boot/dts/kirkwood-openblocks_a6.dts | |||
@@ -166,3 +166,19 @@ | |||
166 | }; | 166 | }; |
167 | }; | 167 | }; |
168 | }; | 168 | }; |
169 | |||
170 | &mdio { | ||
171 | status = "okay"; | ||
172 | |||
173 | ethphy0: ethernet-phy@0 { | ||
174 | device_type = "ethernet-phy"; | ||
175 | reg = <0>; | ||
176 | }; | ||
177 | }; | ||
178 | |||
179 | ð0 { | ||
180 | status = "okay"; | ||
181 | ethernet0-port@0 { | ||
182 | phy-handle = <ðphy0>; | ||
183 | }; | ||
184 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-sheevaplug-common.dtsi b/arch/arm/boot/dts/kirkwood-sheevaplug-common.dtsi index f7143f128504..f55a145ec52e 100644 --- a/arch/arm/boot/dts/kirkwood-sheevaplug-common.dtsi +++ b/arch/arm/boot/dts/kirkwood-sheevaplug-common.dtsi | |||
@@ -91,3 +91,19 @@ | |||
91 | }; | 91 | }; |
92 | }; | 92 | }; |
93 | }; | 93 | }; |
94 | |||
95 | &mdio { | ||
96 | status = "okay"; | ||
97 | |||
98 | ethphy0: ethernet-phy@0 { | ||
99 | device_type = "ethernet-phy"; | ||
100 | reg = <0>; | ||
101 | }; | ||
102 | }; | ||
103 | |||
104 | ð0 { | ||
105 | status = "okay"; | ||
106 | ethernet0-port@0 { | ||
107 | phy-handle = <ðphy0>; | ||
108 | }; | ||
109 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-topkick.dts b/arch/arm/boot/dts/kirkwood-topkick.dts index f2052d7bc10f..184b8c5dd1a8 100644 --- a/arch/arm/boot/dts/kirkwood-topkick.dts +++ b/arch/arm/boot/dts/kirkwood-topkick.dts | |||
@@ -203,3 +203,19 @@ | |||
203 | }; | 203 | }; |
204 | }; | 204 | }; |
205 | }; | 205 | }; |
206 | |||
207 | &mdio { | ||
208 | status = "okay"; | ||
209 | |||
210 | ethphy0: ethernet-phy@0 { | ||
211 | device_type = "ethernet-phy"; | ||
212 | reg = <0>; | ||
213 | }; | ||
214 | }; | ||
215 | |||
216 | ð0 { | ||
217 | status = "okay"; | ||
218 | ethernet0-port@0 { | ||
219 | phy-handle = <ðphy0>; | ||
220 | }; | ||
221 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-ts219-6281.dts b/arch/arm/boot/dts/kirkwood-ts219-6281.dts index 6dd1038e4de4..222435d0ed2f 100644 --- a/arch/arm/boot/dts/kirkwood-ts219-6281.dts +++ b/arch/arm/boot/dts/kirkwood-ts219-6281.dts | |||
@@ -50,4 +50,6 @@ | |||
50 | gpios = <&gpio0 16 1>; | 50 | gpios = <&gpio0 16 1>; |
51 | }; | 51 | }; |
52 | }; | 52 | }; |
53 | }; \ No newline at end of file | 53 | }; |
54 | |||
55 | ðphy0 { reg = <8>; }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-ts219-6282.dts b/arch/arm/boot/dts/kirkwood-ts219-6282.dts index 6fdc5ffcaae5..510c5553cfa0 100644 --- a/arch/arm/boot/dts/kirkwood-ts219-6282.dts +++ b/arch/arm/boot/dts/kirkwood-ts219-6282.dts | |||
@@ -58,4 +58,6 @@ | |||
58 | gpios = <&gpio1 5 1>; | 58 | gpios = <&gpio1 5 1>; |
59 | }; | 59 | }; |
60 | }; | 60 | }; |
61 | }; \ No newline at end of file | 61 | }; |
62 | |||
63 | ðphy0 { reg = <0>; }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-ts219.dtsi b/arch/arm/boot/dts/kirkwood-ts219.dtsi index 0c9a94cd666c..102eaeb426aa 100644 --- a/arch/arm/boot/dts/kirkwood-ts219.dtsi +++ b/arch/arm/boot/dts/kirkwood-ts219.dtsi | |||
@@ -96,3 +96,19 @@ | |||
96 | }; | 96 | }; |
97 | }; | 97 | }; |
98 | }; | 98 | }; |
99 | |||
100 | &mdio { | ||
101 | status = "okay"; | ||
102 | |||
103 | ethphy0: ethernet-phy { | ||
104 | device_type = "ethernet-phy"; | ||
105 | /* overwrite reg property in board file */ | ||
106 | }; | ||
107 | }; | ||
108 | |||
109 | ð0 { | ||
110 | status = "okay"; | ||
111 | ethernet0-port@0 { | ||
112 | phy-handle = <ðphy0>; | ||
113 | }; | ||
114 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood.dtsi b/arch/arm/boot/dts/kirkwood.dtsi index 9809fc1f105c..e3f3f71ef991 100644 --- a/arch/arm/boot/dts/kirkwood.dtsi +++ b/arch/arm/boot/dts/kirkwood.dtsi | |||
@@ -192,5 +192,57 @@ | |||
192 | clocks = <&gate_clk 17>; | 192 | clocks = <&gate_clk 17>; |
193 | status = "okay"; | 193 | status = "okay"; |
194 | }; | 194 | }; |
195 | |||
196 | mdio: mdio-bus@72004 { | ||
197 | compatible = "marvell,orion-mdio"; | ||
198 | #address-cells = <1>; | ||
199 | #size-cells = <0>; | ||
200 | reg = <0x72004 0x84>; | ||
201 | interrupts = <46>; | ||
202 | clocks = <&gate_clk 0>; | ||
203 | status = "disabled"; | ||
204 | |||
205 | /* add phy nodes in board file */ | ||
206 | }; | ||
207 | |||
208 | eth0: ethernet-controller@72000 { | ||
209 | compatible = "marvell,kirkwood-eth"; | ||
210 | #address-cells = <1>; | ||
211 | #size-cells = <0>; | ||
212 | reg = <0x72000 0x4000>; | ||
213 | clocks = <&gate_clk 0>; | ||
214 | marvell,tx-checksum-limit = <1600>; | ||
215 | status = "disabled"; | ||
216 | |||
217 | ethernet0-port@0 { | ||
218 | device_type = "network"; | ||
219 | compatible = "marvell,kirkwood-eth-port"; | ||
220 | reg = <0>; | ||
221 | interrupts = <11>; | ||
222 | /* overwrite MAC address in bootloader */ | ||
223 | local-mac-address = [00 00 00 00 00 00]; | ||
224 | /* set phy-handle property in board file */ | ||
225 | }; | ||
226 | }; | ||
227 | |||
228 | eth1: ethernet-controller@76000 { | ||
229 | compatible = "marvell,kirkwood-eth"; | ||
230 | #address-cells = <1>; | ||
231 | #size-cells = <0>; | ||
232 | reg = <0x76000 0x4000>; | ||
233 | clocks = <&gate_clk 19>; | ||
234 | marvell,tx-checksum-limit = <1600>; | ||
235 | status = "disabled"; | ||
236 | |||
237 | ethernet1-port@0 { | ||
238 | device_type = "network"; | ||
239 | compatible = "marvell,kirkwood-eth-port"; | ||
240 | reg = <0>; | ||
241 | interrupts = <15>; | ||
242 | /* overwrite MAC address in bootloader */ | ||
243 | local-mac-address = [00 00 00 00 00 00]; | ||
244 | /* set phy-handle property in board file */ | ||
245 | }; | ||
246 | }; | ||
195 | }; | 247 | }; |
196 | }; | 248 | }; |