blob: bcf6d79a57ec55febf5f037affdee94e901f3628 [file] [log] [blame]
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +02001/*
2 * Device Tree file for Marvell Armada XP evaluation board
3 * (DB-78460-BP)
4 *
5 * Copyright (C) 2012 Marvell
6 *
7 * Lior Amsalem <alior@marvell.com>
8 * Gregory CLEMENT <gregory.clement@free-electrons.com>
9 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 *
11 * This file is licensed under the terms of the GNU General Public
12 * License version 2. This program is licensed "as is" without any
13 * warranty of any kind, whether express or implied.
14 */
15
16/dts-v1/;
Ezequiel Garcia38149882013-07-26 10:17:56 -030017#include "armada-xp-mv78460.dtsi"
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020018
19/ {
20 model = "Marvell Armada XP Evaluation Board";
Thomas Petazzoni0bec30a2012-09-13 17:41:50 +020021 compatible = "marvell,axp-db", "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp";
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020022
23 chosen {
24 bootargs = "console=ttyS0,115200 earlyprintk";
25 };
26
27 memory {
28 device_type = "memory";
Gregory CLEMENT74898362013-04-12 16:29:10 +020029 reg = <0 0x00000000 0 0x80000000>; /* 2 GB */
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020030 };
31
32 soc {
Ezequiel Garcia0cd37542013-07-26 10:17:58 -030033 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
Ezequiel Garciade1af8d2013-07-26 10:17:59 -030034 MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
35 MBUS_ID(0x01, 0x2f) 0 0 0xf0000000 0x1000000>;
36
37 devbus-bootcs {
38 status = "okay";
39
40 /* Device Bus parameters are required */
41
42 /* Read parameters */
43 devbus,bus-width = <8>;
44 devbus,turn-off-ps = <60000>;
45 devbus,badr-skew-ps = <0>;
46 devbus,acc-first-ps = <124000>;
47 devbus,acc-next-ps = <248000>;
48 devbus,rd-setup-ps = <0>;
49 devbus,rd-hold-ps = <0>;
50
51 /* Write parameters */
52 devbus,sync-enable = <0>;
53 devbus,wr-high-ps = <60000>;
54 devbus,wr-low-ps = <60000>;
55 devbus,ale-wr-ps = <60000>;
56
57 /* NOR 16 MiB */
58 nor@0 {
59 compatible = "cfi-flash";
60 reg = <0 0x1000000>;
61 bank-width = <2>;
62 };
63 };
Ezequiel Garciab484ff42013-05-17 08:09:58 -030064
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030065 pcie-controller {
66 status = "okay";
67
68 /*
69 * All 6 slots are physically present as
70 * standard PCIe slots on the board.
71 */
72 pcie@1,0 {
73 /* Port 0, Lane 0 */
74 status = "okay";
75 };
76 pcie@2,0 {
77 /* Port 0, Lane 1 */
78 status = "okay";
79 };
80 pcie@3,0 {
81 /* Port 0, Lane 2 */
82 status = "okay";
83 };
84 pcie@4,0 {
85 /* Port 0, Lane 3 */
86 status = "okay";
87 };
88 pcie@9,0 {
89 /* Port 2, Lane 0 */
90 status = "okay";
91 };
92 pcie@10,0 {
93 /* Port 3, Lane 0 */
94 status = "okay";
95 };
96 };
97
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020098 internal-regs {
99 serial@12000 {
100 clock-frequency = <250000000>;
Thomas Petazzonibf4f9c62013-04-09 23:06:36 +0200101 status = "okay";
102 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200103 serial@12100 {
104 clock-frequency = <250000000>;
Thomas Petazzonibf4f9c62013-04-09 23:06:36 +0200105 status = "okay";
106 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200107 serial@12200 {
108 clock-frequency = <250000000>;
Thomas Petazzonibf4f9c62013-04-09 23:06:36 +0200109 status = "okay";
110 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200111 serial@12300 {
112 clock-frequency = <250000000>;
Thomas Petazzonibf4f9c62013-04-09 23:06:36 +0200113 status = "okay";
114 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200115
116 sata@a0000 {
117 nr-ports = <2>;
Thomas Petazzonibf4f9c62013-04-09 23:06:36 +0200118 status = "okay";
119 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200120
121 mdio {
122 phy0: ethernet-phy@0 {
123 reg = <0>;
124 };
125
126 phy1: ethernet-phy@1 {
127 reg = <1>;
128 };
129
130 phy2: ethernet-phy@2 {
131 reg = <25>;
132 };
133
134 phy3: ethernet-phy@3 {
135 reg = <27>;
136 };
137 };
138
139 ethernet@70000 {
Thomas Petazzonibf4f9c62013-04-09 23:06:36 +0200140 status = "okay";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200141 phy = <&phy0>;
142 phy-mode = "rgmii-id";
143 };
144 ethernet@74000 {
145 status = "okay";
146 phy = <&phy1>;
147 phy-mode = "rgmii-id";
148 };
149 ethernet@30000 {
150 status = "okay";
151 phy = <&phy2>;
152 phy-mode = "sgmii";
153 };
154 ethernet@34000 {
155 status = "okay";
156 phy = <&phy3>;
157 phy-mode = "sgmii";
158 };
159
160 mvsdio@d4000 {
161 pinctrl-0 = <&sdio_pins>;
162 pinctrl-names = "default";
163 status = "okay";
164 /* No CD or WP GPIOs */
Simon Baatzd87b5fb2013-05-13 23:18:58 +0200165 broken-cd;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200166 };
167
168 usb@50000 {
169 status = "okay";
170 };
171
172 usb@51000 {
173 status = "okay";
174 };
175
176 usb@52000 {
177 status = "okay";
178 };
179
180 spi0: spi@10600 {
181 status = "okay";
182
183 spi-flash@0 {
184 #address-cells = <1>;
185 #size-cells = <1>;
186 compatible = "m25p64";
187 reg = <0>; /* Chip select 0 */
188 spi-max-frequency = <20000000>;
189 };
190 };
Thomas Petazzonibf4f9c62013-04-09 23:06:36 +0200191 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200192 };
193};