blob: a4ec1fa3752979fd30a1c9870a072d217c374b18 [file] [log] [blame]
Thomas Petazzonia47172e2014-02-17 15:23:29 +01001/*
Gregory CLEMENT881a50e2015-01-08 18:38:13 +01002 * Device Tree file for Marvell Armada 388 evaluation board
Thomas Petazzonia47172e2014-02-17 15:23:29 +01003 * (DB-88F6820)
4 *
5 * Copyright (C) 2014 Marvell
6 *
7 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 *
Gregory CLEMENT626a1022015-01-26 15:15:56 +01009 * This file is dual-licensed: you can use it either under the terms
10 * of the GPL or the X11 license, at your option. Note that this dual
11 * licensing only applies to this file, and not this project as a
12 * whole.
13 *
14 * a) This file is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License as
16 * published by the Free Software Foundation; either version 2 of the
17 * License, or (at your option) any later version.
18 *
Alexandre Belloni24f0b6f2016-12-27 22:36:42 +010019 * This file is distributed in the hope that it will be useful,
Gregory CLEMENT626a1022015-01-26 15:15:56 +010020 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
Alexandre Belloni24f0b6f2016-12-27 22:36:42 +010024 * Or, alternatively,
Gregory CLEMENT626a1022015-01-26 15:15:56 +010025 *
26 * b) Permission is hereby granted, free of charge, to any person
27 * obtaining a copy of this software and associated documentation
28 * files (the "Software"), to deal in the Software without
Alexandre Belloni24f0b6f2016-12-27 22:36:42 +010029 * restriction, including without limitation the rights to use,
Gregory CLEMENT626a1022015-01-26 15:15:56 +010030 * copy, modify, merge, publish, distribute, sublicense, and/or
31 * sell copies of the Software, and to permit persons to whom the
32 * Software is furnished to do so, subject to the following
33 * conditions:
34 *
35 * The above copyright notice and this permission notice shall be
36 * included in all copies or substantial portions of the Software.
37 *
Alexandre Belloni24f0b6f2016-12-27 22:36:42 +010038 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
Gregory CLEMENT626a1022015-01-26 15:15:56 +010039 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
40 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
Alexandre Belloni24f0b6f2016-12-27 22:36:42 +010042 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
Gregory CLEMENT626a1022015-01-26 15:15:56 +010043 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45 * OTHER DEALINGS IN THE SOFTWARE.
Thomas Petazzonia47172e2014-02-17 15:23:29 +010046 */
47
48/dts-v1/;
Gregory CLEMENT881a50e2015-01-08 18:38:13 +010049#include "armada-388.dtsi"
Thomas Petazzonia47172e2014-02-17 15:23:29 +010050
51/ {
52 model = "Marvell Armada 385 Development Board";
Gregory CLEMENT881a50e2015-01-08 18:38:13 +010053 compatible = "marvell,a385-db", "marvell,armada388",
54 "marvell,armada385", "marvell,armada380";
Thomas Petazzonia47172e2014-02-17 15:23:29 +010055
56 chosen {
Thomas Petazzoni95522032015-03-03 15:41:02 +010057 stdout-path = "serial0:115200n8";
Thomas Petazzonia47172e2014-02-17 15:23:29 +010058 };
59
60 memory {
61 device_type = "memory";
62 reg = <0x00000000 0x10000000>; /* 256 MB */
63 };
64
65 soc {
66 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
Boris Brezillond716f2e2015-08-18 10:08:59 +020067 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
68 MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
Marcin Wojtasc49e99c2016-03-14 09:38:58 +010069 MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
70 MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
Thomas Petazzonia47172e2014-02-17 15:23:29 +010071
72 internal-regs {
Thomas Petazzonia47172e2014-02-17 15:23:29 +010073 i2c@11000 {
74 status = "okay";
75 clock-frequency = <100000>;
76 };
77
78 i2c@11100 {
79 status = "okay";
80 clock-frequency = <100000>;
81 };
82
83 serial@12000 {
Thomas Petazzonia47172e2014-02-17 15:23:29 +010084 status = "okay";
85 };
86
87 ethernet@30000 {
88 status = "okay";
89 phy = <&phy1>;
Thomas Petazzoni0d2e6372014-03-06 15:41:55 +010090 phy-mode = "rgmii-id";
Marcin Wojtasc49e99c2016-03-14 09:38:58 +010091 buffer-manager = <&bm>;
92 bm,pool-long = <2>;
93 bm,pool-short = <3>;
Thomas Petazzonia47172e2014-02-17 15:23:29 +010094 };
95
Thomas Petazzonia165c3b2015-03-03 15:40:57 +010096 usb@58000 {
Gregory CLEMENT9e817752014-05-15 12:17:40 +020097 status = "ok";
98 };
99
Thomas Petazzonia47172e2014-02-17 15:23:29 +0100100 ethernet@70000 {
101 status = "okay";
102 phy = <&phy0>;
Thomas Petazzoni0d2e6372014-03-06 15:41:55 +0100103 phy-mode = "rgmii-id";
Marcin Wojtasc49e99c2016-03-14 09:38:58 +0100104 buffer-manager = <&bm>;
105 bm,pool-long = <0>;
106 bm,pool-short = <1>;
Thomas Petazzonia47172e2014-02-17 15:23:29 +0100107 };
108
Maxime Ripard4a254322015-01-08 18:38:05 +0100109 mdio@72004 {
Thomas Petazzonia47172e2014-02-17 15:23:29 +0100110 phy0: ethernet-phy@0 {
111 reg = <0>;
112 };
113
114 phy1: ethernet-phy@1 {
115 reg = <1>;
116 };
117 };
Ezequiel Garcia4de29e62014-03-13 17:24:32 -0300118
Thomas Petazzonid175b6e2014-04-15 17:00:04 +0200119 sata@a8000 {
120 status = "okay";
121 };
122
123 sata@e0000 {
124 status = "okay";
125 };
126
Marcin Wojtasc49e99c2016-03-14 09:38:58 +0100127 bm@c8000 {
128 status = "okay";
129 };
130
Ezequiel Garcia4de29e62014-03-13 17:24:32 -0300131 flash@d0000 {
132 status = "okay";
133 num-cs = <1>;
134 marvell,nand-keep-config;
135 marvell,nand-enable-arbiter;
136 nand-on-flash-bbt;
Ezequiel Garcia1ad58442014-05-24 11:17:10 -0300137 nand-ecc-strength = <4>;
138 nand-ecc-step-size = <512>;
Ezequiel Garcia4de29e62014-03-13 17:24:32 -0300139
140 partition@0 {
141 label = "U-Boot";
142 reg = <0 0x800000>;
143 };
144 partition@800000 {
145 label = "Linux";
146 reg = <0x800000 0x800000>;
147 };
148 partition@1000000 {
149 label = "Filesystem";
150 reg = <0x1000000 0x3f000000>;
151 };
152 };
Thomas Petazzoni6eccc522014-04-14 16:41:16 +0200153
154 sdhci@d8000 {
Thomas Petazzoni6eccc522014-04-14 16:41:16 +0200155 broken-cd;
156 wp-inverted;
157 bus-width = <8>;
158 status = "okay";
Marcin Wojtas5e949f02014-11-14 16:57:29 +0100159 no-1-8-v;
Thomas Petazzoni6eccc522014-04-14 16:41:16 +0200160 };
Gregory CLEMENT87e2fc32014-05-15 12:17:39 +0200161
162 usb3@f0000 {
163 status = "okay";
164 };
165
166 usb3@f8000 {
167 status = "okay";
168 };
Thomas Petazzonia47172e2014-02-17 15:23:29 +0100169 };
170
Marcin Wojtasc49e99c2016-03-14 09:38:58 +0100171 bm-bppi {
172 status = "okay";
173 };
174
Rob Herring28fbb9c2017-07-26 16:09:37 -0500175 pcie {
Thomas Petazzonia47172e2014-02-17 15:23:29 +0100176 status = "okay";
177 /*
178 * The two PCIe units are accessible through
179 * standard PCIe slots on the board.
180 */
181 pcie@1,0 {
182 /* Port 0, Lane 0 */
183 status = "okay";
184 };
185 pcie@2,0 {
186 /* Port 1, Lane 0 */
187 status = "okay";
188 };
189 };
190 };
191};
Stefan Roese0160a4b2016-07-13 11:55:18 +0200192
193&spi0 {
194 status = "okay";
195
196 spi-flash@0 {
197 #address-cells = <1>;
198 #size-cells = <1>;
199 compatible = "w25q32", "jedec,spi-nor";
200 reg = <0>; /* Chip select 0 */
201 spi-max-frequency = <108000000>;
202 };
203};
204