mvebu: add support for the Marvell Armada 370 Reference Design board
[openwrt/staging/rmilecki.git] / target / linux / mvebu / patches-3.8 / 021-arm_mvebu_add_rd_a370_a1_dts.patch
1 From fcc7654b592cb80cfb33c509db1005ce9252192b Mon Sep 17 00:00:00 2001
2 From: Florian Fainelli <florian@openwrt.org>
3 Date: Wed, 9 Jan 2013 20:39:55 +0100
4 Subject: [PATCH] arm: mvebu: add DTS file for Marvell RD-A370-A1 board
5
6 This patch adds the DTS file to support the Marvell RD-A370-A1
7 (Reference Design board) also known as RD-88F6710 board. It is almost
8 entirely similar to the DB-A370 board except that the first Ethernet PHY
9 is SGMII-wired and the second is a switch which is RGMII-wired.
10
11 Signed-off-by: Florian Fainelli <florian@openwrt.org>
12 ---
13 arch/arm/boot/dts/Makefile | 1 +
14 arch/arm/boot/dts/armada-370-rd.dts | 61 +++++++++++++++++++++++++++++++++++
15 2 files changed, 62 insertions(+)
16 create mode 100644 arch/arm/boot/dts/armada-370-rd.dts
17
18 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
19 index b7246d6..7a75171 100644
20 --- a/arch/arm/boot/dts/Makefile
21 +++ b/arch/arm/boot/dts/Makefile
22 @@ -78,6 +78,7 @@ dtb-$(CONFIG_ARCH_MSM) += msm8660-surf.dtb \
23 msm8960-cdp.dtb
24 dtb-$(CONFIG_ARCH_MVEBU) += armada-370-db.dtb \
25 armada-370-mirabox.dtb \
26 + armada-370-rd.dtb \
27 armada-xp-db.dtb \
28 armada-xp-openblocks-ax3-4.dtb
29 dtb-$(CONFIG_ARCH_MXC) += imx51-babbage.dtb \
30 diff --git a/arch/arm/boot/dts/armada-370-rd.dts b/arch/arm/boot/dts/armada-370-rd.dts
31 new file mode 100644
32 index 0000000..d62dfac
33 --- /dev/null
34 +++ b/arch/arm/boot/dts/armada-370-rd.dts
35 @@ -0,0 +1,61 @@
36 +/*
37 + * Device Tree file for Marvell Armada 370 Reference Design board
38 + * (RD-88F6710-A1)
39 + *
40 + * Copied from arch/arm/boot/dts/armada-370-db.dts
41 + *
42 + * Copyright (C) 2013 Florian Fainelli <florian@openwrt.org>
43 + *
44 + * This file is licensed under the terms of the GNU General Public
45 + * License version 2. This program is licensed "as is" without any
46 + * warranty of any kind, whether express or implied.
47 + */
48 +
49 +/dts-v1/;
50 +/include/ "armada-370.dtsi"
51 +
52 +/ {
53 + model = "Marvell Armada 370 Reference Design";
54 + compatible = "marvell,a370-rd", "marvell,armada370", "marvell,armada-370-xp";
55 +
56 + chosen {
57 + bootargs = "console=ttyS0,115200 earlyprintk";
58 + };
59 +
60 + memory {
61 + device_type = "memory";
62 + reg = <0x00000000 0x20000000>; /* 512 MB */
63 + };
64 +
65 + soc {
66 + serial@d0012000 {
67 + clock-frequency = <200000000>;
68 + status = "okay";
69 + };
70 + sata@d00a0000 {
71 + nr-ports = <2>;
72 + status = "okay";
73 + };
74 +
75 + mdio {
76 + phy0: ethernet-phy@0 {
77 + reg = <0>;
78 + };
79 +
80 + phy1: ethernet-phy@1 {
81 + reg = <1>;
82 + };
83 + };
84 +
85 + ethernet@d0070000 {
86 + status = "okay";
87 + phy = <&phy0>;
88 + phy-mode = "sgmii";
89 + };
90 + ethernet@d0074000 {
91 + status = "okay";
92 + phy = <&phy1>;
93 + phy-mode = "rgmii-id";
94 + };
95 + };
96 +};
97 --
98 1.7.10.4
99