1ec7e5a56SThomas Petazzoni/*
2ec7e5a56SThomas Petazzoni * Copyright (C) 2016 Marvell Technology Group Ltd.
3ec7e5a56SThomas Petazzoni *
4ec7e5a56SThomas Petazzoni * This file is dual-licensed: you can use it either under the terms
5ec7e5a56SThomas Petazzoni * of the GPLv2 or the X11 license, at your option. Note that this dual
6ec7e5a56SThomas Petazzoni * licensing only applies to this file, and not this project as a
7ec7e5a56SThomas Petazzoni * whole.
8ec7e5a56SThomas Petazzoni *
9ec7e5a56SThomas Petazzoni *  a) This library is free software; you can redistribute it and/or
10ec7e5a56SThomas Petazzoni *     modify it under the terms of the GNU General Public License as
11ec7e5a56SThomas Petazzoni *     published by the Free Software Foundation; either version 2 of the
12ec7e5a56SThomas Petazzoni *     License, or (at your option) any later version.
13ec7e5a56SThomas Petazzoni *
14ec7e5a56SThomas Petazzoni *     This library is distributed in the hope that it will be useful,
15ec7e5a56SThomas Petazzoni *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16ec7e5a56SThomas Petazzoni *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17ec7e5a56SThomas Petazzoni *     GNU General Public License for more details.
18ec7e5a56SThomas Petazzoni *
19ec7e5a56SThomas Petazzoni * Or, alternatively,
20ec7e5a56SThomas Petazzoni *
21ec7e5a56SThomas Petazzoni *  b) Permission is hereby granted, free of charge, to any person
22ec7e5a56SThomas Petazzoni *     obtaining a copy of this software and associated documentation
23ec7e5a56SThomas Petazzoni *     files (the "Software"), to deal in the Software without
24ec7e5a56SThomas Petazzoni *     restriction, including without limitation the rights to use,
25ec7e5a56SThomas Petazzoni *     copy, modify, merge, publish, distribute, sublicense, and/or
26ec7e5a56SThomas Petazzoni *     sell copies of the Software, and to permit persons to whom the
27ec7e5a56SThomas Petazzoni *     Software is furnished to do so, subject to the following
28ec7e5a56SThomas Petazzoni *     conditions:
29ec7e5a56SThomas Petazzoni *
30ec7e5a56SThomas Petazzoni *     The above copyright notice and this permission notice shall be
31ec7e5a56SThomas Petazzoni *     included in all copies or substantial portions of the Software.
32ec7e5a56SThomas Petazzoni *
33ec7e5a56SThomas Petazzoni *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34ec7e5a56SThomas Petazzoni *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35ec7e5a56SThomas Petazzoni *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36ec7e5a56SThomas Petazzoni *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37ec7e5a56SThomas Petazzoni *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38ec7e5a56SThomas Petazzoni *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39ec7e5a56SThomas Petazzoni *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40ec7e5a56SThomas Petazzoni *     OTHER DEALINGS IN THE SOFTWARE.
41ec7e5a56SThomas Petazzoni */
42ec7e5a56SThomas Petazzoni
43ec7e5a56SThomas Petazzoni/*
44ec7e5a56SThomas Petazzoni * Device Tree file for Marvell Armada 7040 Development board platform
45ec7e5a56SThomas Petazzoni */
46ec7e5a56SThomas Petazzoni
47ec7e5a56SThomas Petazzoni#include "armada-7040.dtsi"
48ec7e5a56SThomas Petazzoni
49ec7e5a56SThomas Petazzoni/ {
50ec7e5a56SThomas Petazzoni	model = "Marvell Armada 7040 DB board";
51ec7e5a56SThomas Petazzoni	compatible = "marvell,armada7040-db", "marvell,armada7040",
52ec7e5a56SThomas Petazzoni		     "marvell,armada-ap806-quad", "marvell,armada-ap806";
53ec7e5a56SThomas Petazzoni
54ec7e5a56SThomas Petazzoni	memory@00000000 {
55ec7e5a56SThomas Petazzoni		device_type = "memory";
56ec7e5a56SThomas Petazzoni		reg = <0x0 0x0 0x0 0x80000000>;
57ec7e5a56SThomas Petazzoni	};
58037ad463SAndreas Färber};
59ec7e5a56SThomas Petazzoni
60037ad463SAndreas Färber&i2c0 {
61037ad463SAndreas Färber	status = "okay";
62037ad463SAndreas Färber	clock-frequency = <100000>;
63037ad463SAndreas Färber};
64037ad463SAndreas Färber
65037ad463SAndreas Färber&spi0 {
66ec7e5a56SThomas Petazzoni	status = "okay";
67ec7e5a56SThomas Petazzoni
68ec7e5a56SThomas Petazzoni	spi-flash@0 {
69ec7e5a56SThomas Petazzoni		#address-cells = <1>;
70ec7e5a56SThomas Petazzoni		#size-cells = <1>;
71ec7e5a56SThomas Petazzoni		compatible = "n25q128a13";
72ec7e5a56SThomas Petazzoni		reg = <0>; /* Chip select 0 */
73ec7e5a56SThomas Petazzoni		spi-max-frequency = <10000000>;
74ec7e5a56SThomas Petazzoni
75ec7e5a56SThomas Petazzoni		partition@0 {
76ec7e5a56SThomas Petazzoni			label = "U-Boot";
77ec7e5a56SThomas Petazzoni			reg = <0 0x200000>;
78ec7e5a56SThomas Petazzoni		};
79ec7e5a56SThomas Petazzoni		partition@400000 {
80ec7e5a56SThomas Petazzoni			label = "Filesystem";
81ec7e5a56SThomas Petazzoni			reg = <0x200000 0xce0000>;
82ec7e5a56SThomas Petazzoni		};
83ec7e5a56SThomas Petazzoni	};
84ec7e5a56SThomas Petazzoni};
85ec7e5a56SThomas Petazzoni
86037ad463SAndreas Färber&uart0 {
87ec7e5a56SThomas Petazzoni	status = "okay";
88ec7e5a56SThomas Petazzoni};
89