aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-11-20 17:35:16 -0500
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-11-20 17:35:16 -0500
commit089c38e7245e052951dce7a6916b12631a26561d (patch)
tree5ca0a8f3ccc125f4c46217d1e1b97812d8baf4bd /arch/arm/boot
parente3fad9a4f820d3913689ca228dc5a75db1e64ce6 (diff)
parent9f32cccc67590ccda30529bcbcea5c22d95c00a6 (diff)
Merge tag 'marvell-boards-net-for-3.8' of github.com:MISL-EBU-System-SW/mainline-public into test-the-merge
Marvell boards changes related to Ethernet, for 3.8 Conflicts: arch/arm/boot/dts/armada-370-xp.dtsi arch/arm/boot/dts/armada-xp-db.dts Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'arch/arm/boot')
-rw-r--r--arch/arm/boot/dts/Makefile4
-rw-r--r--arch/arm/boot/dts/armada-370-db.dts23
-rw-r--r--arch/arm/boot/dts/armada-370-mirabox.dts58
-rw-r--r--arch/arm/boot/dts/armada-370-xp.dtsi20
-rw-r--r--arch/arm/boot/dts/armada-xp-db.dts44
-rw-r--r--arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts112
-rw-r--r--arch/arm/boot/dts/armada-xp.dtsi14
7 files changed, 274 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index f37cf9fa5fa0..32d1d404924a 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -44,7 +44,9 @@ dtb-$(CONFIG_ARCH_KIRKWOOD) += kirkwood-dns320.dtb \
44dtb-$(CONFIG_ARCH_MSM) += msm8660-surf.dtb \ 44dtb-$(CONFIG_ARCH_MSM) += msm8660-surf.dtb \
45 msm8960-cdp.dtb 45 msm8960-cdp.dtb
46dtb-$(CONFIG_ARCH_MVEBU) += armada-370-db.dtb \ 46dtb-$(CONFIG_ARCH_MVEBU) += armada-370-db.dtb \
47 armada-xp-db.dtb 47 armada-370-mirabox.dtb \
48 armada-xp-db.dtb \
49 armada-xp-openblocks-ax3-4.dtb
48dtb-$(CONFIG_ARCH_MXC) += imx51-babbage.dtb \ 50dtb-$(CONFIG_ARCH_MXC) += imx51-babbage.dtb \
49 imx53-ard.dtb \ 51 imx53-ard.dtb \
50 imx53-evk.dtb \ 52 imx53-evk.dtb \
diff --git a/arch/arm/boot/dts/armada-370-db.dts b/arch/arm/boot/dts/armada-370-db.dts
index cfc080777da1..63120569878a 100644
--- a/arch/arm/boot/dts/armada-370-db.dts
+++ b/arch/arm/boot/dts/armada-370-db.dts
@@ -38,5 +38,28 @@
38 nr-ports = <2>; 38 nr-ports = <2>;
39 status = "okay"; 39 status = "okay";
40 }; 40 };
41
42 mdio {
43 phy0: ethernet-phy@0 {
44 reg = <0>;
45 };
46
47 phy1: ethernet-phy@1 {
48 reg = <1>;
49 };
50 };
51
52 ethernet@d0070000 {
53 clock-frequency = <200000000>;
54 status = "okay";
55 phy = <&phy0>;
56 phy-mode = "rgmii-id";
57 };
58 ethernet@d0074000 {
59 clock-frequency = <200000000>;
60 status = "okay";
61 phy = <&phy1>;
62 phy-mode = "rgmii-id";
63 };
41 }; 64 };
42}; 65};
diff --git a/arch/arm/boot/dts/armada-370-mirabox.dts b/arch/arm/boot/dts/armada-370-mirabox.dts
new file mode 100644
index 000000000000..8554dbee2640
--- /dev/null
+++ b/arch/arm/boot/dts/armada-370-mirabox.dts
@@ -0,0 +1,58 @@
1/*
2 * Device Tree file for Globalscale Mirabox
3 *
4 * Gregory CLEMENT <gregory.clement@free-electrons.com>
5 *
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
9 */
10
11/dts-v1/;
12/include/ "armada-370.dtsi"
13
14/ {
15 model = "Globalscale Mirabox";
16 compatible = "globalscale,mirabox", "marvell,armada370", "marvell,armada-370-xp";
17
18 chosen {
19 bootargs = "console=ttyS0,115200 earlyprintk";
20 };
21
22 memory {
23 device_type = "memory";
24 reg = <0x00000000 0x20000000>; /* 512 MB */
25 };
26
27 soc {
28 serial@d0012000 {
29 clock-frequency = <200000000>;
30 status = "okay";
31 };
32 timer@d0020300 {
33 clock-frequency = <600000000>;
34 status = "okay";
35 };
36 mdio {
37 phy0: ethernet-phy@0 {
38 reg = <0>;
39 };
40
41 phy1: ethernet-phy@1 {
42 reg = <1>;
43 };
44 };
45 ethernet@d0070000 {
46 clock-frequency = <200000000>;
47 status = "okay";
48 phy = <&phy0>;
49 phy-mode = "rgmii-id";
50 };
51 ethernet@d0074000 {
52 clock-frequency = <200000000>;
53 status = "okay";
54 phy = <&phy1>;
55 phy-mode = "rgmii-id";
56 };
57 };
58};
diff --git a/arch/arm/boot/dts/armada-370-xp.dtsi b/arch/arm/boot/dts/armada-370-xp.dtsi
index 0abc8a16fc25..4c248e30fcb3 100644
--- a/arch/arm/boot/dts/armada-370-xp.dtsi
+++ b/arch/arm/boot/dts/armada-370-xp.dtsi
@@ -79,6 +79,26 @@
79 status = "disabled"; 79 status = "disabled";
80 }; 80 };
81 81
82 mdio {
83 #address-cells = <1>;
84 #size-cells = <0>;
85 compatible = "marvell,orion-mdio";
86 reg = <0xd0072004 0x4>;
87 };
88
89 ethernet@d0070000 {
90 compatible = "marvell,armada-370-neta";
91 reg = <0xd0070000 0x2500>;
92 interrupts = <8>;
93 status = "disabled";
94 };
95
96 ethernet@d0074000 {
97 compatible = "marvell,armada-370-neta";
98 reg = <0xd0074000 0x2500>;
99 interrupts = <10>;
100 status = "disabled";
101 };
82 }; 102 };
83}; 103};
84 104
diff --git a/arch/arm/boot/dts/armada-xp-db.dts b/arch/arm/boot/dts/armada-xp-db.dts
index e59f14f14dd0..2673ac7a0fbe 100644
--- a/arch/arm/boot/dts/armada-xp-db.dts
+++ b/arch/arm/boot/dts/armada-xp-db.dts
@@ -46,9 +46,53 @@
46 clock-frequency = <250000000>; 46 clock-frequency = <250000000>;
47 status = "okay"; 47 status = "okay";
48 }; 48 };
49
49 sata@d00a0000 { 50 sata@d00a0000 {
50 nr-ports = <2>; 51 nr-ports = <2>;
51 status = "okay"; 52 status = "okay";
52 }; 53 };
54
55 mdio {
56 phy0: ethernet-phy@0 {
57 reg = <0>;
58 };
59
60 phy1: ethernet-phy@1 {
61 reg = <1>;
62 };
63
64 phy2: ethernet-phy@2 {
65 reg = <25>;
66 };
67
68 phy3: ethernet-phy@3 {
69 reg = <27>;
70 };
71 };
72
73 ethernet@d0070000 {
74 clock-frequency = <250000000>;
75 status = "okay";
76 phy = <&phy0>;
77 phy-mode = "rgmii-id";
78 };
79 ethernet@d0074000 {
80 clock-frequency = <250000000>;
81 status = "okay";
82 phy = <&phy1>;
83 phy-mode = "rgmii-id";
84 };
85 ethernet@d0030000 {
86 clock-frequency = <250000000>;
87 status = "okay";
88 phy = <&phy2>;
89 phy-mode = "sgmii";
90 };
91 ethernet@d0034000 {
92 clock-frequency = <250000000>;
93 status = "okay";
94 phy = <&phy3>;
95 phy-mode = "sgmii";
96 };
53 }; 97 };
54}; 98};
diff --git a/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts b/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts
new file mode 100644
index 000000000000..bb8d83cfbb50
--- /dev/null
+++ b/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts
@@ -0,0 +1,112 @@
1/*
2 * Device Tree file for OpenBlocks AX3-4 board
3 *
4 * Copyright (C) 2012 Marvell
5 *
6 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 *
8 * This file is licensed under the terms of the GNU General Public
9 * License version 2. This program is licensed "as is" without any
10 * warranty of any kind, whether express or implied.
11 */
12
13/dts-v1/;
14/include/ "armada-xp-mv78260.dtsi"
15
16/ {
17 model = "PlatHome OpenBlocks AX3-4 board";
18 compatible = "plathome,openblocks-ax3-4", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
19
20 chosen {
21 bootargs = "console=ttyS0,115200 earlyprintk";
22 };
23
24 memory {
25 device_type = "memory";
26 reg = <0x00000000 0xC0000000>; /* 3 GB */
27 };
28
29 soc {
30 serial@d0012000 {
31 clock-frequency = <250000000>;
32 status = "okay";
33 };
34 serial@d0012100 {
35 clock-frequency = <250000000>;
36 status = "okay";
37 };
38 pinctrl {
39 led_pins: led-pins-0 {
40 marvell,pins = "mpp49", "mpp51", "mpp53";
41 marvell,function = "gpio";
42 };
43 };
44 leds {
45 compatible = "gpio-leds";
46 pinctrl-names = "default";
47 pinctrl-0 = <&led_pins>;
48
49 red_led {
50 label = "red_led";
51 gpios = <&gpio1 17 1>;
52 default-state = "off";
53 };
54
55 yellow_led {
56 label = "yellow_led";
57 gpios = <&gpio1 19 1>;
58 default-state = "off";
59 };
60
61 green_led {
62 label = "green_led";
63 gpios = <&gpio1 21 1>;
64 default-state = "off";
65 linux,default-trigger = "heartbeat";
66 };
67 };
68
69 mdio {
70 phy0: ethernet-phy@0 {
71 reg = <0>;
72 };
73
74 phy1: ethernet-phy@1 {
75 reg = <1>;
76 };
77
78 phy2: ethernet-phy@2 {
79 reg = <2>;
80 };
81
82 phy3: ethernet-phy@3 {
83 reg = <3>;
84 };
85 };
86
87 ethernet@d0070000 {
88 clock-frequency = <250000000>;
89 status = "okay";
90 phy = <&phy0>;
91 phy-mode = "sgmii";
92 };
93 ethernet@d0074000 {
94 clock-frequency = <250000000>;
95 status = "okay";
96 phy = <&phy1>;
97 phy-mode = "sgmii";
98 };
99 ethernet@d0030000 {
100 clock-frequency = <250000000>;
101 status = "okay";
102 phy = <&phy2>;
103 phy-mode = "sgmii";
104 };
105 ethernet@d0034000 {
106 clock-frequency = <250000000>;
107 status = "okay";
108 phy = <&phy3>;
109 phy-mode = "sgmii";
110 };
111 };
112};
diff --git a/arch/arm/boot/dts/armada-xp.dtsi b/arch/arm/boot/dts/armada-xp.dtsi
index f51554e80009..fbe30f5e98a8 100644
--- a/arch/arm/boot/dts/armada-xp.dtsi
+++ b/arch/arm/boot/dts/armada-xp.dtsi
@@ -71,5 +71,19 @@
71 compatible = "marvell,armada-370-xp-system-controller"; 71 compatible = "marvell,armada-370-xp-system-controller";
72 reg = <0xd0018200 0x500>; 72 reg = <0xd0018200 0x500>;
73 }; 73 };
74
75 ethernet@d0030000 {
76 compatible = "marvell,armada-370-neta";
77 reg = <0xd0030000 0x2500>;
78 interrupts = <12>;
79 status = "disabled";
80 };
81
82 ethernet@d0034000 {
83 compatible = "marvell,armada-370-neta";
84 reg = <0xd0034000 0x2500>;
85 interrupts = <14>;
86 status = "disabled";
87 };
74 }; 88 };
75}; 89};