1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Device Tree file for Marvell Armada 388 evaluation board
4*f126890aSEmmanuel Vadot * (DB-88F6820)
5*f126890aSEmmanuel Vadot *
6*f126890aSEmmanuel Vadot *  Copyright (C) 2014 Marvell
7*f126890aSEmmanuel Vadot *
8*f126890aSEmmanuel Vadot * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9*f126890aSEmmanuel Vadot */
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot/dts-v1/;
12*f126890aSEmmanuel Vadot#include "armada-388.dtsi"
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot/ {
15*f126890aSEmmanuel Vadot	model = "Marvell Armada 385 Development Board";
16*f126890aSEmmanuel Vadot	compatible = "marvell,a385-db", "marvell,armada388",
17*f126890aSEmmanuel Vadot		"marvell,armada385", "marvell,armada380";
18*f126890aSEmmanuel Vadot
19*f126890aSEmmanuel Vadot	chosen {
20*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
21*f126890aSEmmanuel Vadot	};
22*f126890aSEmmanuel Vadot
23*f126890aSEmmanuel Vadot	memory {
24*f126890aSEmmanuel Vadot		device_type = "memory";
25*f126890aSEmmanuel Vadot		reg = <0x00000000 0x10000000>; /* 256 MB */
26*f126890aSEmmanuel Vadot	};
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot	soc {
29*f126890aSEmmanuel Vadot		ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
30*f126890aSEmmanuel Vadot			  MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
31*f126890aSEmmanuel Vadot			  MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
32*f126890aSEmmanuel Vadot			  MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
33*f126890aSEmmanuel Vadot			  MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
34*f126890aSEmmanuel Vadot
35*f126890aSEmmanuel Vadot		internal-regs {
36*f126890aSEmmanuel Vadot			i2c@11000 {
37*f126890aSEmmanuel Vadot				status = "okay";
38*f126890aSEmmanuel Vadot				clock-frequency = <100000>;
39*f126890aSEmmanuel Vadot				audio_codec: audio-codec@4a {
40*f126890aSEmmanuel Vadot					#sound-dai-cells = <0>;
41*f126890aSEmmanuel Vadot					compatible = "cirrus,cs42l51";
42*f126890aSEmmanuel Vadot					reg = <0x4a>;
43*f126890aSEmmanuel Vadot				};
44*f126890aSEmmanuel Vadot			};
45*f126890aSEmmanuel Vadot
46*f126890aSEmmanuel Vadot			i2c@11100 {
47*f126890aSEmmanuel Vadot				status = "okay";
48*f126890aSEmmanuel Vadot				clock-frequency = <100000>;
49*f126890aSEmmanuel Vadot			};
50*f126890aSEmmanuel Vadot
51*f126890aSEmmanuel Vadot			serial@12000 {
52*f126890aSEmmanuel Vadot				status = "okay";
53*f126890aSEmmanuel Vadot			};
54*f126890aSEmmanuel Vadot
55*f126890aSEmmanuel Vadot			ethernet@30000 {
56*f126890aSEmmanuel Vadot				status = "okay";
57*f126890aSEmmanuel Vadot				phy = <&phy1>;
58*f126890aSEmmanuel Vadot				phy-mode = "rgmii-id";
59*f126890aSEmmanuel Vadot				buffer-manager = <&bm>;
60*f126890aSEmmanuel Vadot				bm,pool-long = <2>;
61*f126890aSEmmanuel Vadot				bm,pool-short = <3>;
62*f126890aSEmmanuel Vadot			};
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot			usb@58000 {
65*f126890aSEmmanuel Vadot				status = "okay";
66*f126890aSEmmanuel Vadot			};
67*f126890aSEmmanuel Vadot
68*f126890aSEmmanuel Vadot			ethernet@70000 {
69*f126890aSEmmanuel Vadot				status = "okay";
70*f126890aSEmmanuel Vadot				phy = <&phy0>;
71*f126890aSEmmanuel Vadot				phy-mode = "rgmii-id";
72*f126890aSEmmanuel Vadot				buffer-manager = <&bm>;
73*f126890aSEmmanuel Vadot				bm,pool-long = <0>;
74*f126890aSEmmanuel Vadot				bm,pool-short = <1>;
75*f126890aSEmmanuel Vadot			};
76*f126890aSEmmanuel Vadot
77*f126890aSEmmanuel Vadot			mdio@72004 {
78*f126890aSEmmanuel Vadot				phy0: ethernet-phy@0 {
79*f126890aSEmmanuel Vadot					reg = <0>;
80*f126890aSEmmanuel Vadot				};
81*f126890aSEmmanuel Vadot
82*f126890aSEmmanuel Vadot				phy1: ethernet-phy@1 {
83*f126890aSEmmanuel Vadot					reg = <1>;
84*f126890aSEmmanuel Vadot				};
85*f126890aSEmmanuel Vadot			};
86*f126890aSEmmanuel Vadot
87*f126890aSEmmanuel Vadot			sata@a8000 {
88*f126890aSEmmanuel Vadot				status = "okay";
89*f126890aSEmmanuel Vadot			};
90*f126890aSEmmanuel Vadot
91*f126890aSEmmanuel Vadot			sata@e0000 {
92*f126890aSEmmanuel Vadot				status = "okay";
93*f126890aSEmmanuel Vadot			};
94*f126890aSEmmanuel Vadot
95*f126890aSEmmanuel Vadot			bm@c8000 {
96*f126890aSEmmanuel Vadot				status = "okay";
97*f126890aSEmmanuel Vadot			};
98*f126890aSEmmanuel Vadot
99*f126890aSEmmanuel Vadot			sdhci@d8000 {
100*f126890aSEmmanuel Vadot				broken-cd;
101*f126890aSEmmanuel Vadot				wp-inverted;
102*f126890aSEmmanuel Vadot				bus-width = <8>;
103*f126890aSEmmanuel Vadot				status = "okay";
104*f126890aSEmmanuel Vadot				no-1-8-v;
105*f126890aSEmmanuel Vadot			};
106*f126890aSEmmanuel Vadot
107*f126890aSEmmanuel Vadot			audio-controller@e8000 {
108*f126890aSEmmanuel Vadot				pinctrl-0 = <&i2s_pins>;
109*f126890aSEmmanuel Vadot				pinctrl-names = "default";
110*f126890aSEmmanuel Vadot				status = "disabled";
111*f126890aSEmmanuel Vadot			};
112*f126890aSEmmanuel Vadot
113*f126890aSEmmanuel Vadot			usb3@f0000 {
114*f126890aSEmmanuel Vadot				status = "okay";
115*f126890aSEmmanuel Vadot			};
116*f126890aSEmmanuel Vadot
117*f126890aSEmmanuel Vadot			usb3@f8000 {
118*f126890aSEmmanuel Vadot				status = "okay";
119*f126890aSEmmanuel Vadot			};
120*f126890aSEmmanuel Vadot		};
121*f126890aSEmmanuel Vadot
122*f126890aSEmmanuel Vadot		bm-bppi {
123*f126890aSEmmanuel Vadot			status = "okay";
124*f126890aSEmmanuel Vadot		};
125*f126890aSEmmanuel Vadot
126*f126890aSEmmanuel Vadot		pcie {
127*f126890aSEmmanuel Vadot			status = "okay";
128*f126890aSEmmanuel Vadot			/*
129*f126890aSEmmanuel Vadot			 * The two PCIe units are accessible through
130*f126890aSEmmanuel Vadot			 * standard PCIe slots on the board.
131*f126890aSEmmanuel Vadot			 */
132*f126890aSEmmanuel Vadot			pcie@1,0 {
133*f126890aSEmmanuel Vadot				/* Port 0, Lane 0 */
134*f126890aSEmmanuel Vadot				status = "okay";
135*f126890aSEmmanuel Vadot			};
136*f126890aSEmmanuel Vadot			pcie@2,0 {
137*f126890aSEmmanuel Vadot				/* Port 1, Lane 0 */
138*f126890aSEmmanuel Vadot				status = "okay";
139*f126890aSEmmanuel Vadot			};
140*f126890aSEmmanuel Vadot		};
141*f126890aSEmmanuel Vadot	};
142*f126890aSEmmanuel Vadot
143*f126890aSEmmanuel Vadot	sound {
144*f126890aSEmmanuel Vadot		compatible = "simple-audio-card";
145*f126890aSEmmanuel Vadot		simple-audio-card,name = "Armada 385 DB Audio";
146*f126890aSEmmanuel Vadot		simple-audio-card,mclk-fs = <256>;
147*f126890aSEmmanuel Vadot		simple-audio-card,widgets =
148*f126890aSEmmanuel Vadot			"Headphone", "Out Jack",
149*f126890aSEmmanuel Vadot			"Line", "In Jack";
150*f126890aSEmmanuel Vadot		simple-audio-card,routing =
151*f126890aSEmmanuel Vadot			"Out Jack", "HPL",
152*f126890aSEmmanuel Vadot			"Out Jack", "HPR",
153*f126890aSEmmanuel Vadot			"AIN1L", "In Jack",
154*f126890aSEmmanuel Vadot			"AIN1R", "In Jack";
155*f126890aSEmmanuel Vadot		status = "disabled";
156*f126890aSEmmanuel Vadot
157*f126890aSEmmanuel Vadot		simple-audio-card,dai-link@0 {
158*f126890aSEmmanuel Vadot			format = "i2s";
159*f126890aSEmmanuel Vadot			cpu {
160*f126890aSEmmanuel Vadot				sound-dai = <&audio_controller 0>;
161*f126890aSEmmanuel Vadot			};
162*f126890aSEmmanuel Vadot
163*f126890aSEmmanuel Vadot			codec {
164*f126890aSEmmanuel Vadot				sound-dai = <&audio_codec>;
165*f126890aSEmmanuel Vadot			};
166*f126890aSEmmanuel Vadot		};
167*f126890aSEmmanuel Vadot
168*f126890aSEmmanuel Vadot		simple-audio-card,dai-link@1 {
169*f126890aSEmmanuel Vadot			format = "i2s";
170*f126890aSEmmanuel Vadot			cpu {
171*f126890aSEmmanuel Vadot				sound-dai = <&audio_controller 1>;
172*f126890aSEmmanuel Vadot			};
173*f126890aSEmmanuel Vadot
174*f126890aSEmmanuel Vadot			codec {
175*f126890aSEmmanuel Vadot				sound-dai = <&spdif_out>;
176*f126890aSEmmanuel Vadot			};
177*f126890aSEmmanuel Vadot		};
178*f126890aSEmmanuel Vadot
179*f126890aSEmmanuel Vadot		simple-audio-card,dai-link@2 {
180*f126890aSEmmanuel Vadot			format = "i2s";
181*f126890aSEmmanuel Vadot			cpu {
182*f126890aSEmmanuel Vadot				sound-dai = <&audio_controller 1>;
183*f126890aSEmmanuel Vadot			};
184*f126890aSEmmanuel Vadot
185*f126890aSEmmanuel Vadot			codec {
186*f126890aSEmmanuel Vadot				sound-dai = <&spdif_in>;
187*f126890aSEmmanuel Vadot			};
188*f126890aSEmmanuel Vadot		};
189*f126890aSEmmanuel Vadot	};
190*f126890aSEmmanuel Vadot
191*f126890aSEmmanuel Vadot	spdif_out: spdif-out {
192*f126890aSEmmanuel Vadot		#sound-dai-cells = <0>;
193*f126890aSEmmanuel Vadot		compatible = "linux,spdif-dit";
194*f126890aSEmmanuel Vadot	};
195*f126890aSEmmanuel Vadot
196*f126890aSEmmanuel Vadot	spdif_in: spdif-in {
197*f126890aSEmmanuel Vadot		#sound-dai-cells = <0>;
198*f126890aSEmmanuel Vadot		compatible = "linux,spdif-dir";
199*f126890aSEmmanuel Vadot	};
200*f126890aSEmmanuel Vadot};
201*f126890aSEmmanuel Vadot
202*f126890aSEmmanuel Vadot&spi0 {
203*f126890aSEmmanuel Vadot	status = "okay";
204*f126890aSEmmanuel Vadot
205*f126890aSEmmanuel Vadot	flash@0 {
206*f126890aSEmmanuel Vadot		#address-cells = <1>;
207*f126890aSEmmanuel Vadot		#size-cells = <1>;
208*f126890aSEmmanuel Vadot		compatible = "w25q32", "jedec,spi-nor";
209*f126890aSEmmanuel Vadot		reg = <0>; /* Chip select 0 */
210*f126890aSEmmanuel Vadot		spi-max-frequency = <108000000>;
211*f126890aSEmmanuel Vadot	};
212*f126890aSEmmanuel Vadot};
213*f126890aSEmmanuel Vadot
214*f126890aSEmmanuel Vadot&nand_controller {
215*f126890aSEmmanuel Vadot	status = "okay";
216*f126890aSEmmanuel Vadot
217*f126890aSEmmanuel Vadot	nand@0 {
218*f126890aSEmmanuel Vadot		reg = <0>;
219*f126890aSEmmanuel Vadot		label = "pxa3xx_nand-0";
220*f126890aSEmmanuel Vadot		nand-rb = <0>;
221*f126890aSEmmanuel Vadot		marvell,nand-keep-config;
222*f126890aSEmmanuel Vadot		nand-on-flash-bbt;
223*f126890aSEmmanuel Vadot		nand-ecc-strength = <4>;
224*f126890aSEmmanuel Vadot		nand-ecc-step-size = <512>;
225*f126890aSEmmanuel Vadot
226*f126890aSEmmanuel Vadot		partitions {
227*f126890aSEmmanuel Vadot			compatible = "fixed-partitions";
228*f126890aSEmmanuel Vadot			#address-cells = <1>;
229*f126890aSEmmanuel Vadot			#size-cells = <1>;
230*f126890aSEmmanuel Vadot
231*f126890aSEmmanuel Vadot			partition@0 {
232*f126890aSEmmanuel Vadot				label = "U-Boot";
233*f126890aSEmmanuel Vadot				reg = <0 0x800000>;
234*f126890aSEmmanuel Vadot			};
235*f126890aSEmmanuel Vadot			partition@800000 {
236*f126890aSEmmanuel Vadot				label = "Linux";
237*f126890aSEmmanuel Vadot				reg = <0x800000 0x800000>;
238*f126890aSEmmanuel Vadot			};
239*f126890aSEmmanuel Vadot			partition@1000000 {
240*f126890aSEmmanuel Vadot				label = "Filesystem";
241*f126890aSEmmanuel Vadot				reg = <0x1000000 0x3f000000>;
242*f126890aSEmmanuel Vadot			};
243*f126890aSEmmanuel Vadot		};
244*f126890aSEmmanuel Vadot	};
245*f126890aSEmmanuel Vadot};
246