1295011Sandrew/*
2295011Sandrew * Device Tree Include file for Marvell Armada 398 Development Board
3295011Sandrew *
4295011Sandrew * Copyright (C) 2015 Marvell
5295011Sandrew *
6295011Sandrew * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7295011Sandrew *
8295011Sandrew * This file is dual-licensed: you can use it either under the terms
9295011Sandrew * of the GPL or the X11 license, at your option. Note that this dual
10295011Sandrew * licensing only applies to this file, and not this project as a
11295011Sandrew * whole.
12295011Sandrew *
13295011Sandrew *  a) This file is free software; you can redistribute it and/or
14295011Sandrew *     modify it under the terms of the GNU General Public License as
15295011Sandrew *     published by the Free Software Foundation; either version 2 of the
16295011Sandrew *     License, or (at your option) any later version.
17295011Sandrew *
18295011Sandrew *     This file is distributed in the hope that it will be useful
19295011Sandrew *     but WITHOUT ANY WARRANTY; without even the implied warranty of
20295011Sandrew *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21295011Sandrew *     GNU General Public License for more details.
22295011Sandrew *
23295011Sandrew * Or, alternatively
24295011Sandrew *
25295011Sandrew *  b) Permission is hereby granted, free of charge, to any person
26295011Sandrew *     obtaining a copy of this software and associated documentation
27295011Sandrew *     files (the "Software"), to deal in the Software without
28295011Sandrew *     restriction, including without limitation the rights to use
29295011Sandrew *     copy, modify, merge, publish, distribute, sublicense, and/or
30295011Sandrew *     sell copies of the Software, and to permit persons to whom the
31295011Sandrew *     Software is furnished to do so, subject to the following
32295011Sandrew *     conditions:
33295011Sandrew *
34295011Sandrew *     The above copyright notice and this permission notice shall be
35295011Sandrew *     included in all copies or substantial portions of the Software.
36295011Sandrew *
37295011Sandrew *     THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
38295011Sandrew *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
39295011Sandrew *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
40295011Sandrew *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
41295011Sandrew *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
42295011Sandrew *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
43295011Sandrew *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
44295011Sandrew *     OTHER DEALINGS IN THE SOFTWARE.
45295011Sandrew */
46295011Sandrew
47295011Sandrew/dts-v1/;
48295011Sandrew#include "armada-398.dtsi"
49295011Sandrew
50295011Sandrew/ {
51295011Sandrew	model = "Marvell Armada 398 Development Board";
52295011Sandrew	compatible = "marvell,a398-db", "marvell,armada398", "marvell,armada390";
53295011Sandrew
54295011Sandrew	chosen {
55295011Sandrew		stdout-path = "serial0:115200n8";
56295011Sandrew	};
57295011Sandrew
58295011Sandrew	memory {
59295011Sandrew		device_type = "memory";
60295011Sandrew		reg = <0x00000000 0x80000000>; /* 2 GB */
61295011Sandrew	};
62295011Sandrew
63295011Sandrew	soc {
64295011Sandrew		ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
65295011Sandrew			  MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000>;
66295011Sandrew
67295011Sandrew		internal-regs {
68295011Sandrew			spi@10680 {
69295011Sandrew				status = "okay";
70295011Sandrew				pinctrl-0 = <&spi1_pins>;
71295011Sandrew				pinctrl-names = "default";
72295011Sandrew
73295011Sandrew				spi-flash@0 {
74295011Sandrew					#address-cells = <1>;
75295011Sandrew					#size-cells = <0>;
76295011Sandrew					compatible = "n25q128a13", "jedec,spi-nor";
77295011Sandrew					reg = <0>;
78295011Sandrew					spi-max-frequency = <108000000>;
79295011Sandrew
80295011Sandrew					partition@0 {
81295011Sandrew						label = "U-Boot";
82295011Sandrew						reg = <0 0x400000>;
83295011Sandrew					};
84295011Sandrew
85295011Sandrew					partition@400000 {
86295011Sandrew						label = "Filesystem";
87295011Sandrew						reg = <0x400000 0x1000000>;
88295011Sandrew					};
89295011Sandrew				};
90295011Sandrew			};
91295011Sandrew
92295011Sandrew			i2c@11000 {
93295011Sandrew				pinctrl-0 = <&i2c0_pins>;
94295011Sandrew				pinctrl-names = "default";
95295011Sandrew				status = "okay";
96295011Sandrew				clock-frequency = <100000>;
97295011Sandrew			};
98295011Sandrew
99295011Sandrew			serial@12000 {
100295011Sandrew				pinctrl-0 = <&uart0_pins>;
101295011Sandrew				pinctrl-names = "default";
102295011Sandrew				status = "okay";
103295011Sandrew			};
104295011Sandrew
105295011Sandrew			serial@12100 {
106295011Sandrew				pinctrl-0 = <&uart1_pins>;
107295011Sandrew				pinctrl-names = "default";
108295011Sandrew				status = "okay";
109295011Sandrew			};
110295011Sandrew
111295011Sandrew			flash@d0000 {
112295011Sandrew				status = "okay";
113295011Sandrew				pinctrl-0 = <&nand_pins>;
114295011Sandrew				pinctrl-names = "default";
115295011Sandrew				num-cs = <1>;
116295011Sandrew				marvell,nand-keep-config;
117295011Sandrew				marvell,nand-enable-arbiter;
118295011Sandrew				nand-on-flash-bbt;
119295011Sandrew				nand-ecc-strength = <8>;
120295011Sandrew				nand-ecc-step-size = <512>;
121295011Sandrew
122295011Sandrew				partition@0 {
123295011Sandrew					label = "U-Boot";
124295011Sandrew					reg = <0 0x800000>;
125295011Sandrew				};
126295011Sandrew				partition@800000 {
127295011Sandrew					label = "Linux";
128295011Sandrew					reg = <0x800000 0x800000>;
129295011Sandrew				};
130295011Sandrew				partition@1000000 {
131295011Sandrew					label = "Filesystem";
132295011Sandrew					reg = <0x1000000 0x3f000000>;
133295011Sandrew				};
134295011Sandrew			};
135295011Sandrew		};
136295011Sandrew
137295011Sandrew		pcie-controller {
138295011Sandrew			status = "okay";
139295011Sandrew
140295011Sandrew			pcie@1,0 {
141295011Sandrew				status = "okay";
142295011Sandrew			};
143295011Sandrew
144295011Sandrew			pcie@2,0 {
145295011Sandrew				status = "okay";
146295011Sandrew			};
147295011Sandrew
148295011Sandrew			pcie@3,0 {
149295011Sandrew				status = "okay";
150295011Sandrew			};
151295011Sandrew		};
152295011Sandrew	};
153295011Sandrew};
154