blob: 0478c55ca6567a6e780098598ef0a36d2fb223ea [file] [log] [blame]
Gregory CLEMENT568fc0a2013-01-31 15:50:12 +01001/*
2 * Device Tree file for Marvell Armada XP development board
3 * (DB-MV784MP-GP)
4 *
Thomas Petazzoni91ed3222014-03-04 17:37:01 +01005 * Copyright (C) 2013-2014 Marvell
Gregory CLEMENT568fc0a2013-01-31 15:50:12 +01006 *
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.
Thomas Petazzoni91ed3222014-03-04 17:37:01 +010014 *
15 * Note: this Device Tree assumes that the bootloader has remapped the
16 * internal registers to 0xf1000000 (instead of the default
17 * 0xd0000000). The 0xf1000000 is the default used by the recent,
18 * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier
19 * boards were delivered with an older version of the bootloader that
20 * left internal registers mapped at 0xd0000000. If you are in this
21 * situation, you should either update your bootloader (preferred
22 * solution) or the below Device Tree should be adjusted.
Gregory CLEMENT568fc0a2013-01-31 15:50:12 +010023 */
24
25/dts-v1/;
Ezequiel Garcia38149882013-07-26 10:17:56 -030026#include "armada-xp-mv78460.dtsi"
Gregory CLEMENT568fc0a2013-01-31 15:50:12 +010027
28/ {
29 model = "Marvell Armada XP Development Board DB-MV784MP-GP";
30 compatible = "marvell,axp-gp", "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp";
31
32 chosen {
33 bootargs = "console=ttyS0,115200 earlyprintk";
34 };
35
36 memory {
37 device_type = "memory";
Gregory CLEMENT568fc0a2013-01-31 15:50:12 +010038 /*
Gregory CLEMENT74898362013-04-12 16:29:10 +020039 * 8 GB of plug-in RAM modules by default.The amount
40 * of memory available can be changed by the
41 * bootloader according the size of the module
Thomas Petazzoni91ed3222014-03-04 17:37:01 +010042 * actually plugged. However, memory between
43 * 0xF0000000 to 0xFFFFFFFF cannot be used, as it is
44 * the address range used for I/O (internal registers,
45 * MBus windows).
Gregory CLEMENT568fc0a2013-01-31 15:50:12 +010046 */
Thomas Petazzoni91ed3222014-03-04 17:37:01 +010047 reg = <0x00000000 0x00000000 0x00000000 0xf0000000>,
Gregory CLEMENT74898362013-04-12 16:29:10 +020048 <0x00000001 0x00000000 0x00000001 0x00000000>;
Gregory CLEMENT568fc0a2013-01-31 15:50:12 +010049 };
50
51 soc {
Thomas Petazzoni91ed3222014-03-04 17:37:01 +010052 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xf1000000 0x100000
Ezequiel Garciade1af8d2013-07-26 10:17:59 -030053 MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
54 MBUS_ID(0x01, 0x2f) 0 0 0xf0000000 0x1000000>;
55
56 devbus-bootcs {
57 status = "okay";
58
59 /* Device Bus parameters are required */
60
61 /* Read parameters */
Thomas Petazzoni1a88f802014-04-14 17:29:19 +020062 devbus,bus-width = <16>;
Ezequiel Garciade1af8d2013-07-26 10:17:59 -030063 devbus,turn-off-ps = <60000>;
64 devbus,badr-skew-ps = <0>;
65 devbus,acc-first-ps = <124000>;
66 devbus,acc-next-ps = <248000>;
67 devbus,rd-setup-ps = <0>;
68 devbus,rd-hold-ps = <0>;
69
70 /* Write parameters */
71 devbus,sync-enable = <0>;
72 devbus,wr-high-ps = <60000>;
73 devbus,wr-low-ps = <60000>;
74 devbus,ale-wr-ps = <60000>;
75
76 /* NOR 16 MiB */
77 nor@0 {
78 compatible = "cfi-flash";
79 reg = <0 0x1000000>;
80 bank-width = <2>;
81 };
82 };
Ezequiel Garciac6c003a2013-05-17 08:09:57 -030083
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030084 pcie-controller {
85 status = "okay";
86
87 /*
88 * The 3 slots are physically present as
89 * standard PCIe slots on the board.
90 */
91 pcie@1,0 {
92 /* Port 0, Lane 0 */
93 status = "okay";
94 };
95 pcie@9,0 {
96 /* Port 2, Lane 0 */
97 status = "okay";
98 };
99 pcie@10,0 {
100 /* Port 3, Lane 0 */
101 status = "okay";
102 };
103 };
104
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200105 internal-regs {
106 serial@12000 {
Thomas Petazzoni513a7912013-04-09 23:06:39 +0200107 status = "okay";
108 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200109 serial@12100 {
Thomas Petazzoni513a7912013-04-09 23:06:39 +0200110 status = "okay";
111 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200112 serial@12200 {
Thomas Petazzoni513a7912013-04-09 23:06:39 +0200113 status = "okay";
114 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200115 serial@12300 {
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200116 status = "okay";
117 };
118
119 sata@a0000 {
120 nr-ports = <2>;
121 status = "okay";
122 };
123
124 mdio {
125 phy0: ethernet-phy@0 {
126 reg = <16>;
127 };
128
129 phy1: ethernet-phy@1 {
130 reg = <17>;
131 };
132
133 phy2: ethernet-phy@2 {
134 reg = <18>;
135 };
136
137 phy3: ethernet-phy@3 {
138 reg = <19>;
139 };
140 };
141
142 ethernet@70000 {
143 status = "okay";
144 phy = <&phy0>;
Thomas Petazzoni80fa10f2014-04-15 15:50:21 +0200145 phy-mode = "qsgmii";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200146 };
147 ethernet@74000 {
148 status = "okay";
149 phy = <&phy1>;
Thomas Petazzoni80fa10f2014-04-15 15:50:21 +0200150 phy-mode = "qsgmii";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200151 };
152 ethernet@30000 {
153 status = "okay";
154 phy = <&phy2>;
Thomas Petazzoni80fa10f2014-04-15 15:50:21 +0200155 phy-mode = "qsgmii";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200156 };
157 ethernet@34000 {
158 status = "okay";
159 phy = <&phy3>;
Thomas Petazzoni80fa10f2014-04-15 15:50:21 +0200160 phy-mode = "qsgmii";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200161 };
162
Thomas Petazzoni0e99b152013-05-21 19:53:09 +0200163 /* Front-side USB slot */
164 usb@50000 {
165 status = "okay";
166 };
167
168 /* Back-side USB slot */
169 usb@51000 {
170 status = "okay";
171 };
172
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200173 spi0: spi@10600 {
174 status = "okay";
175
176 spi-flash@0 {
177 #address-cells = <1>;
178 #size-cells = <1>;
179 compatible = "n25q128a13";
180 reg = <0>; /* Chip select 0 */
181 spi-max-frequency = <108000000>;
182 };
183 };
Ezequiel Garcia2be2bc32013-11-07 12:17:34 -0300184
185 nand@d0000 {
186 status = "okay";
187 num-cs = <1>;
188 marvell,nand-keep-config;
189 marvell,nand-enable-arbiter;
190 nand-on-flash-bbt;
191 };
Thomas Petazzoni513a7912013-04-09 23:06:39 +0200192 };
Gregory CLEMENT568fc0a2013-01-31 15:50:12 +0100193 };
194};