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
54bf151162SThomas Petazzoni	chosen {
55bf151162SThomas Petazzoni		stdout-path = "serial0:115200n8";
56bf151162SThomas Petazzoni	};
57bf151162SThomas Petazzoni
58ec7e5a56SThomas Petazzoni	memory@00000000 {
59ec7e5a56SThomas Petazzoni		device_type = "memory";
60ec7e5a56SThomas Petazzoni		reg = <0x0 0x0 0x0 0x80000000>;
61ec7e5a56SThomas Petazzoni	};
62037ad463SAndreas Färber};
63ec7e5a56SThomas Petazzoni
64037ad463SAndreas Färber&i2c0 {
65037ad463SAndreas Färber	status = "okay";
66037ad463SAndreas Färber	clock-frequency = <100000>;
67037ad463SAndreas Färber};
68037ad463SAndreas Färber
69037ad463SAndreas Färber&spi0 {
70ec7e5a56SThomas Petazzoni	status = "okay";
71ec7e5a56SThomas Petazzoni
72ec7e5a56SThomas Petazzoni	spi-flash@0 {
73ec7e5a56SThomas Petazzoni		#address-cells = <1>;
74ec7e5a56SThomas Petazzoni		#size-cells = <1>;
75fe85e20eSThomas Petazzoni		compatible = "jedec,spi-nor";
76fe85e20eSThomas Petazzoni		reg = <0>;
77ec7e5a56SThomas Petazzoni		spi-max-frequency = <10000000>;
78ec7e5a56SThomas Petazzoni
79fe85e20eSThomas Petazzoni		partitions {
80fe85e20eSThomas Petazzoni			compatible = "fixed-partitions";
81fe85e20eSThomas Petazzoni			#address-cells = <1>;
82fe85e20eSThomas Petazzoni			#size-cells = <1>;
83fe85e20eSThomas Petazzoni
84ec7e5a56SThomas Petazzoni			partition@0 {
85ec7e5a56SThomas Petazzoni				label = "U-Boot";
86ec7e5a56SThomas Petazzoni				reg = <0 0x200000>;
87ec7e5a56SThomas Petazzoni			};
88ec7e5a56SThomas Petazzoni			partition@400000 {
89ec7e5a56SThomas Petazzoni				label = "Filesystem";
90ec7e5a56SThomas Petazzoni				reg = <0x200000 0xce0000>;
91ec7e5a56SThomas Petazzoni			};
92ec7e5a56SThomas Petazzoni		};
93ec7e5a56SThomas Petazzoni	};
94fe85e20eSThomas Petazzoni};
95ec7e5a56SThomas Petazzoni
96037ad463SAndreas Färber&uart0 {
97ec7e5a56SThomas Petazzoni	status = "okay";
98ec7e5a56SThomas Petazzoni};
99fea14498SThomas Petazzoni
100fea14498SThomas Petazzoni
101fea14498SThomas Petazzoni&cpm_pcie2 {
102fea14498SThomas Petazzoni	status = "okay";
103fea14498SThomas Petazzoni};
104fea14498SThomas Petazzoni
105fea14498SThomas Petazzoni&cpm_i2c0 {
106fea14498SThomas Petazzoni	status = "okay";
107fea14498SThomas Petazzoni	clock-frequency = <100000>;
108fea14498SThomas Petazzoni};
109fea14498SThomas Petazzoni
110fea14498SThomas Petazzoni&cpm_spi1 {
111fea14498SThomas Petazzoni	status = "okay";
112fea14498SThomas Petazzoni
113fea14498SThomas Petazzoni	spi-flash@0 {
114fea14498SThomas Petazzoni		#address-cells = <0x1>;
115fea14498SThomas Petazzoni		#size-cells = <0x1>;
116fea14498SThomas Petazzoni		compatible = "jedec,spi-nor";
117fea14498SThomas Petazzoni		reg = <0x0>;
118fea14498SThomas Petazzoni		spi-max-frequency = <20000000>;
119fea14498SThomas Petazzoni
120fea14498SThomas Petazzoni		partitions {
121fea14498SThomas Petazzoni			compatible = "fixed-partitions";
122fea14498SThomas Petazzoni			#address-cells = <1>;
123fea14498SThomas Petazzoni			#size-cells = <1>;
124fea14498SThomas Petazzoni
125fea14498SThomas Petazzoni			partition@0 {
126fea14498SThomas Petazzoni				label = "U-Boot";
127fea14498SThomas Petazzoni				reg = <0x0 0x200000>;
128fea14498SThomas Petazzoni			};
129fea14498SThomas Petazzoni
130fea14498SThomas Petazzoni			partition@400000 {
131fea14498SThomas Petazzoni				label = "Filesystem";
132fea14498SThomas Petazzoni				reg = <0x200000 0xe00000>;
133fea14498SThomas Petazzoni			};
134fea14498SThomas Petazzoni		};
135fea14498SThomas Petazzoni	};
136fea14498SThomas Petazzoni};
137fea14498SThomas Petazzoni
138fea14498SThomas Petazzoni&cpm_sata0 {
139fea14498SThomas Petazzoni	status = "okay";
140fea14498SThomas Petazzoni};
141fea14498SThomas Petazzoni
142fea14498SThomas Petazzoni&cpm_usb3_0 {
143fea14498SThomas Petazzoni	status = "okay";
144fea14498SThomas Petazzoni};
145fea14498SThomas Petazzoni
146fea14498SThomas Petazzoni&cpm_usb3_1 {
147fea14498SThomas Petazzoni	status = "okay";
148fea14498SThomas Petazzoni};
14960894719SThomas Petazzoni
150910b4c5cSGregory CLEMENT&ap_sdhci0 {
151910b4c5cSGregory CLEMENT	status = "okay";
152910b4c5cSGregory CLEMENT	bus-width = <4>;
153910b4c5cSGregory CLEMENT	no-1-8-v;
154910b4c5cSGregory CLEMENT	non-removable;
155910b4c5cSGregory CLEMENT};
156910b4c5cSGregory CLEMENT
157910b4c5cSGregory CLEMENT&cpm_sdhci0 {
158910b4c5cSGregory CLEMENT	status = "okay";
159910b4c5cSGregory CLEMENT	bus-width = <4>;
160910b4c5cSGregory CLEMENT	no-1-8-v;
161910b4c5cSGregory CLEMENT	non-removable;
162910b4c5cSGregory CLEMENT};
163910b4c5cSGregory CLEMENT
16460894719SThomas Petazzoni&cpm_mdio {
1653c6912cdSAntoine Tenart	status = "okay";
1663c6912cdSAntoine Tenart
16760894719SThomas Petazzoni	phy0: ethernet-phy@0 {
16860894719SThomas Petazzoni		reg = <0>;
16960894719SThomas Petazzoni	};
17060894719SThomas Petazzoni	phy1: ethernet-phy@1 {
17160894719SThomas Petazzoni		reg = <1>;
17260894719SThomas Petazzoni	};
17360894719SThomas Petazzoni};
17460894719SThomas Petazzoni
17560894719SThomas Petazzoni&cpm_ethernet {
17660894719SThomas Petazzoni	status = "okay";
17760894719SThomas Petazzoni};
17860894719SThomas Petazzoni
17960894719SThomas Petazzoni&cpm_eth1 {
18060894719SThomas Petazzoni	status = "okay";
18160894719SThomas Petazzoni	phy = <&phy0>;
18260894719SThomas Petazzoni	phy-mode = "sgmii";
18360894719SThomas Petazzoni};
18460894719SThomas Petazzoni
18560894719SThomas Petazzoni&cpm_eth2 {
18660894719SThomas Petazzoni	status = "okay";
18760894719SThomas Petazzoni	phy = <&phy1>;
18860894719SThomas Petazzoni	phy-mode = "rgmii-id";
18960894719SThomas Petazzoni};
19016a51e34SAntoine Tenart
19116a51e34SAntoine Tenart&cpm_crypto {
19216a51e34SAntoine Tenart	status = "okay";
19316a51e34SAntoine Tenart};
194