diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2017-01-02 09:58:57 -0500 |
---|---|---|
committer | Gregory CLEMENT <gregory.clement@free-electrons.com> | 2017-01-04 05:38:33 -0500 |
commit | d5bd63358595dc0171ec848bf1e7969d11ad8837 (patch) | |
tree | df033bb3f3f1a4386537db47639fc346f2d3754b | |
parent | 76138f94a3532564d1ba56dca98ee89d78dcf7d0 (diff) |
ARM: dts: armada388-clearfog: move DSA switch
Move the DSA switch configuration to the clearfog .dts file as this is
only present on the pro models.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
-rw-r--r-- | arch/arm/boot/dts/armada-388-clearfog.dts | 75 | ||||
-rw-r--r-- | arch/arm/boot/dts/armada-388-clearfog.dtsi | 69 |
2 files changed, 75 insertions, 69 deletions
diff --git a/arch/arm/boot/dts/armada-388-clearfog.dts b/arch/arm/boot/dts/armada-388-clearfog.dts index fc69f2f39507..6b916305b47f 100644 --- a/arch/arm/boot/dts/armada-388-clearfog.dts +++ b/arch/arm/boot/dts/armada-388-clearfog.dts | |||
@@ -53,4 +53,79 @@ | |||
53 | model = "SolidRun Clearfog A1"; | 53 | model = "SolidRun Clearfog A1"; |
54 | compatible = "solidrun,clearfog-a1", "marvell,armada388", | 54 | compatible = "solidrun,clearfog-a1", "marvell,armada388", |
55 | "marvell,armada385", "marvell,armada380"; | 55 | "marvell,armada385", "marvell,armada380"; |
56 | |||
57 | dsa@0 { | ||
58 | compatible = "marvell,dsa"; | ||
59 | dsa,ethernet = <ð1>; | ||
60 | dsa,mii-bus = <&mdio>; | ||
61 | pinctrl-0 = <&clearfog_dsa0_clk_pins &clearfog_dsa0_pins>; | ||
62 | pinctrl-names = "default"; | ||
63 | #address-cells = <2>; | ||
64 | #size-cells = <0>; | ||
65 | |||
66 | switch@0 { | ||
67 | #address-cells = <1>; | ||
68 | #size-cells = <0>; | ||
69 | reg = <4 0>; | ||
70 | |||
71 | port@0 { | ||
72 | reg = <0>; | ||
73 | label = "lan5"; | ||
74 | }; | ||
75 | |||
76 | port@1 { | ||
77 | reg = <1>; | ||
78 | label = "lan4"; | ||
79 | }; | ||
80 | |||
81 | port@2 { | ||
82 | reg = <2>; | ||
83 | label = "lan3"; | ||
84 | }; | ||
85 | |||
86 | port@3 { | ||
87 | reg = <3>; | ||
88 | label = "lan2"; | ||
89 | }; | ||
90 | |||
91 | port@4 { | ||
92 | reg = <4>; | ||
93 | label = "lan1"; | ||
94 | }; | ||
95 | |||
96 | port@5 { | ||
97 | reg = <5>; | ||
98 | label = "cpu"; | ||
99 | }; | ||
100 | |||
101 | port@6 { | ||
102 | /* 88E1512 external phy */ | ||
103 | reg = <6>; | ||
104 | label = "lan6"; | ||
105 | fixed-link { | ||
106 | speed = <1000>; | ||
107 | full-duplex; | ||
108 | }; | ||
109 | }; | ||
110 | }; | ||
111 | }; | ||
112 | }; | ||
113 | |||
114 | ð1 { | ||
115 | /* ethernet@30000 */ | ||
116 | fixed-link { | ||
117 | speed = <1000>; | ||
118 | full-duplex; | ||
119 | }; | ||
120 | }; | ||
121 | |||
122 | &pinctrl { | ||
123 | clearfog_dsa0_clk_pins: clearfog-dsa0-clk-pins { | ||
124 | marvell,pins = "mpp46"; | ||
125 | marvell,function = "ref"; | ||
126 | }; | ||
127 | clearfog_dsa0_pins: clearfog-dsa0-pins { | ||
128 | marvell,pins = "mpp23", "mpp41"; | ||
129 | marvell,function = "gpio"; | ||
130 | }; | ||
56 | }; | 131 | }; |
diff --git a/arch/arm/boot/dts/armada-388-clearfog.dtsi b/arch/arm/boot/dts/armada-388-clearfog.dtsi index 59438777287a..fb02997a52a1 100644 --- a/arch/arm/boot/dts/armada-388-clearfog.dtsi +++ b/arch/arm/boot/dts/armada-388-clearfog.dtsi | |||
@@ -77,11 +77,6 @@ | |||
77 | bm,pool-long = <2>; | 77 | bm,pool-long = <2>; |
78 | bm,pool-short = <1>; | 78 | bm,pool-short = <1>; |
79 | status = "okay"; | 79 | status = "okay"; |
80 | |||
81 | fixed-link { | ||
82 | speed = <1000>; | ||
83 | full-duplex; | ||
84 | }; | ||
85 | }; | 80 | }; |
86 | 81 | ||
87 | ethernet@34000 { | 82 | ethernet@34000 { |
@@ -235,14 +230,6 @@ | |||
235 | }; | 230 | }; |
236 | 231 | ||
237 | pinctrl@18000 { | 232 | pinctrl@18000 { |
238 | clearfog_dsa0_clk_pins: clearfog-dsa0-clk-pins { | ||
239 | marvell,pins = "mpp46"; | ||
240 | marvell,function = "ref"; | ||
241 | }; | ||
242 | clearfog_dsa0_pins: clearfog-dsa0-pins { | ||
243 | marvell,pins = "mpp23", "mpp41"; | ||
244 | marvell,function = "gpio"; | ||
245 | }; | ||
246 | clearfog_i2c1_pins: i2c1-pins { | 233 | clearfog_i2c1_pins: i2c1-pins { |
247 | /* SFP, PCIe, mSATA, mikrobus */ | 234 | /* SFP, PCIe, mSATA, mikrobus */ |
248 | marvell,pins = "mpp26", "mpp27"; | 235 | marvell,pins = "mpp26", "mpp27"; |
@@ -339,62 +326,6 @@ | |||
339 | }; | 326 | }; |
340 | }; | 327 | }; |
341 | 328 | ||
342 | dsa@0 { | ||
343 | compatible = "marvell,dsa"; | ||
344 | dsa,ethernet = <ð1>; | ||
345 | dsa,mii-bus = <&mdio>; | ||
346 | pinctrl-0 = <&clearfog_dsa0_clk_pins &clearfog_dsa0_pins>; | ||
347 | pinctrl-names = "default"; | ||
348 | #address-cells = <2>; | ||
349 | #size-cells = <0>; | ||
350 | |||
351 | switch@0 { | ||
352 | #address-cells = <1>; | ||
353 | #size-cells = <0>; | ||
354 | reg = <4 0>; | ||
355 | |||
356 | port@0 { | ||
357 | reg = <0>; | ||
358 | label = "lan5"; | ||
359 | }; | ||
360 | |||
361 | port@1 { | ||
362 | reg = <1>; | ||
363 | label = "lan4"; | ||
364 | }; | ||
365 | |||
366 | port@2 { | ||
367 | reg = <2>; | ||
368 | label = "lan3"; | ||
369 | }; | ||
370 | |||
371 | port@3 { | ||
372 | reg = <3>; | ||
373 | label = "lan2"; | ||
374 | }; | ||
375 | |||
376 | port@4 { | ||
377 | reg = <4>; | ||
378 | label = "lan1"; | ||
379 | }; | ||
380 | |||
381 | port@5 { | ||
382 | reg = <5>; | ||
383 | label = "cpu"; | ||
384 | }; | ||
385 | |||
386 | port@6 { | ||
387 | /* 88E1512 external phy */ | ||
388 | reg = <6>; | ||
389 | label = "lan6"; | ||
390 | fixed-link { | ||
391 | speed = <1000>; | ||
392 | full-duplex; | ||
393 | }; | ||
394 | }; | ||
395 | }; | ||
396 | }; | ||
397 | |||
398 | gpio-keys { | 329 | gpio-keys { |
399 | compatible = "gpio-keys"; | 330 | compatible = "gpio-keys"; |
400 | pinctrl-0 = <&rear_button_pins>; | 331 | pinctrl-0 = <&rear_button_pins>; |