xref: /freebsd/sys/contrib/device-tree/src/arm/marvell/armada-xp-gp.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Device Tree file for Marvell Armada XP development board
4*f126890aSEmmanuel Vadot * (DB-MV784MP-GP)
5*f126890aSEmmanuel Vadot *
6*f126890aSEmmanuel Vadot * Copyright (C) 2013-2014 Marvell
7*f126890aSEmmanuel Vadot *
8*f126890aSEmmanuel Vadot * Lior Amsalem <alior@marvell.com>
9*f126890aSEmmanuel Vadot * Gregory CLEMENT <gregory.clement@free-electrons.com>
10*f126890aSEmmanuel Vadot * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11*f126890aSEmmanuel Vadot *
12*f126890aSEmmanuel Vadot * Note: this Device Tree assumes that the bootloader has remapped the
13*f126890aSEmmanuel Vadot * internal registers to 0xf1000000 (instead of the default
14*f126890aSEmmanuel Vadot * 0xd0000000). The 0xf1000000 is the default used by the recent,
15*f126890aSEmmanuel Vadot * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier
16*f126890aSEmmanuel Vadot * boards were delivered with an older version of the bootloader that
17*f126890aSEmmanuel Vadot * left internal registers mapped at 0xd0000000. If you are in this
18*f126890aSEmmanuel Vadot * situation, you should either update your bootloader (preferred
19*f126890aSEmmanuel Vadot * solution) or the below Device Tree should be adjusted.
20*f126890aSEmmanuel Vadot */
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot/dts-v1/;
23*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
24*f126890aSEmmanuel Vadot#include "armada-xp-mv78460.dtsi"
25*f126890aSEmmanuel Vadot
26*f126890aSEmmanuel Vadot/ {
27*f126890aSEmmanuel Vadot	model = "Marvell Armada XP Development Board DB-MV784MP-GP";
28*f126890aSEmmanuel Vadot	compatible = "marvell,axp-gp", "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp";
29*f126890aSEmmanuel Vadot
30*f126890aSEmmanuel Vadot	chosen {
31*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
32*f126890aSEmmanuel Vadot	};
33*f126890aSEmmanuel Vadot
34*f126890aSEmmanuel Vadot	memory@0 {
35*f126890aSEmmanuel Vadot		device_type = "memory";
36*f126890aSEmmanuel Vadot		/*
37*f126890aSEmmanuel Vadot                 * 8 GB of plug-in RAM modules by default.The amount
38*f126890aSEmmanuel Vadot                 * of memory available can be changed by the
39*f126890aSEmmanuel Vadot                 * bootloader according the size of the module
40*f126890aSEmmanuel Vadot                 * actually plugged. However, memory between
41*f126890aSEmmanuel Vadot                 * 0xF0000000 to 0xFFFFFFFF cannot be used, as it is
42*f126890aSEmmanuel Vadot                 * the address range used for I/O (internal registers,
43*f126890aSEmmanuel Vadot                 * MBus windows).
44*f126890aSEmmanuel Vadot		 */
45*f126890aSEmmanuel Vadot		reg = <0x00000000 0x00000000 0x00000000 0xf0000000>,
46*f126890aSEmmanuel Vadot		      <0x00000001 0x00000000 0x00000001 0x00000000>;
47*f126890aSEmmanuel Vadot	};
48*f126890aSEmmanuel Vadot
49*f126890aSEmmanuel Vadot	cpus {
50*f126890aSEmmanuel Vadot		pm_pic {
51*f126890aSEmmanuel Vadot			ctrl-gpios = <&gpio0 16 GPIO_ACTIVE_LOW>,
52*f126890aSEmmanuel Vadot				     <&gpio0 17 GPIO_ACTIVE_LOW>,
53*f126890aSEmmanuel Vadot				     <&gpio0 18 GPIO_ACTIVE_LOW>;
54*f126890aSEmmanuel Vadot		};
55*f126890aSEmmanuel Vadot	};
56*f126890aSEmmanuel Vadot
57*f126890aSEmmanuel Vadot	soc {
58*f126890aSEmmanuel Vadot		ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xf1000000 0x100000
59*f126890aSEmmanuel Vadot			  MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
60*f126890aSEmmanuel Vadot			  MBUS_ID(0x01, 0x2f) 0 0 0xf0000000 0x1000000
61*f126890aSEmmanuel Vadot			  MBUS_ID(0x09, 0x09) 0 0 0xf1100000 0x10000
62*f126890aSEmmanuel Vadot			  MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000
63*f126890aSEmmanuel Vadot			  MBUS_ID(0x0c, 0x04) 0 0 0xf1200000 0x100000>;
64*f126890aSEmmanuel Vadot
65*f126890aSEmmanuel Vadot		devbus-bootcs {
66*f126890aSEmmanuel Vadot			status = "okay";
67*f126890aSEmmanuel Vadot
68*f126890aSEmmanuel Vadot			/* Device Bus parameters are required */
69*f126890aSEmmanuel Vadot
70*f126890aSEmmanuel Vadot			/* Read parameters */
71*f126890aSEmmanuel Vadot			devbus,bus-width    = <16>;
72*f126890aSEmmanuel Vadot			devbus,turn-off-ps  = <60000>;
73*f126890aSEmmanuel Vadot			devbus,badr-skew-ps = <0>;
74*f126890aSEmmanuel Vadot			devbus,acc-first-ps = <124000>;
75*f126890aSEmmanuel Vadot			devbus,acc-next-ps  = <248000>;
76*f126890aSEmmanuel Vadot			devbus,rd-setup-ps  = <0>;
77*f126890aSEmmanuel Vadot			devbus,rd-hold-ps   = <0>;
78*f126890aSEmmanuel Vadot
79*f126890aSEmmanuel Vadot			/* Write parameters */
80*f126890aSEmmanuel Vadot			devbus,sync-enable = <0>;
81*f126890aSEmmanuel Vadot			devbus,wr-high-ps  = <60000>;
82*f126890aSEmmanuel Vadot			devbus,wr-low-ps   = <60000>;
83*f126890aSEmmanuel Vadot			devbus,ale-wr-ps   = <60000>;
84*f126890aSEmmanuel Vadot
85*f126890aSEmmanuel Vadot			/* NOR 16 MiB */
86*f126890aSEmmanuel Vadot			nor@0 {
87*f126890aSEmmanuel Vadot				compatible = "cfi-flash";
88*f126890aSEmmanuel Vadot				reg = <0 0x1000000>;
89*f126890aSEmmanuel Vadot				bank-width = <2>;
90*f126890aSEmmanuel Vadot			};
91*f126890aSEmmanuel Vadot		};
92*f126890aSEmmanuel Vadot
93*f126890aSEmmanuel Vadot		internal-regs {
94*f126890aSEmmanuel Vadot			serial@12000 {
95*f126890aSEmmanuel Vadot				status = "okay";
96*f126890aSEmmanuel Vadot			};
97*f126890aSEmmanuel Vadot			serial@12100 {
98*f126890aSEmmanuel Vadot				status = "okay";
99*f126890aSEmmanuel Vadot			};
100*f126890aSEmmanuel Vadot			serial@12200 {
101*f126890aSEmmanuel Vadot				status = "okay";
102*f126890aSEmmanuel Vadot			};
103*f126890aSEmmanuel Vadot			serial@12300 {
104*f126890aSEmmanuel Vadot				status = "okay";
105*f126890aSEmmanuel Vadot			};
106*f126890aSEmmanuel Vadot			pinctrl {
107*f126890aSEmmanuel Vadot				pinctrl-0 = <&pic_pins>;
108*f126890aSEmmanuel Vadot				pinctrl-names = "default";
109*f126890aSEmmanuel Vadot				pic_pins: pic-pins-0 {
110*f126890aSEmmanuel Vadot					marvell,pins = "mpp16", "mpp17",
111*f126890aSEmmanuel Vadot						       "mpp18";
112*f126890aSEmmanuel Vadot					marvell,function = "gpio";
113*f126890aSEmmanuel Vadot				};
114*f126890aSEmmanuel Vadot			};
115*f126890aSEmmanuel Vadot			sata@a0000 {
116*f126890aSEmmanuel Vadot				nr-ports = <2>;
117*f126890aSEmmanuel Vadot				status = "okay";
118*f126890aSEmmanuel Vadot			};
119*f126890aSEmmanuel Vadot
120*f126890aSEmmanuel Vadot			ethernet@70000 {
121*f126890aSEmmanuel Vadot				status = "okay";
122*f126890aSEmmanuel Vadot				phy = <&phy0>;
123*f126890aSEmmanuel Vadot				phy-mode = "qsgmii";
124*f126890aSEmmanuel Vadot				buffer-manager = <&bm>;
125*f126890aSEmmanuel Vadot				bm,pool-long = <0>;
126*f126890aSEmmanuel Vadot			};
127*f126890aSEmmanuel Vadot			ethernet@74000 {
128*f126890aSEmmanuel Vadot				status = "okay";
129*f126890aSEmmanuel Vadot				phy = <&phy1>;
130*f126890aSEmmanuel Vadot				phy-mode = "qsgmii";
131*f126890aSEmmanuel Vadot				buffer-manager = <&bm>;
132*f126890aSEmmanuel Vadot				bm,pool-long = <1>;
133*f126890aSEmmanuel Vadot			};
134*f126890aSEmmanuel Vadot			ethernet@30000 {
135*f126890aSEmmanuel Vadot				status = "okay";
136*f126890aSEmmanuel Vadot				phy = <&phy2>;
137*f126890aSEmmanuel Vadot				phy-mode = "qsgmii";
138*f126890aSEmmanuel Vadot				buffer-manager = <&bm>;
139*f126890aSEmmanuel Vadot				bm,pool-long = <2>;
140*f126890aSEmmanuel Vadot			};
141*f126890aSEmmanuel Vadot			ethernet@34000 {
142*f126890aSEmmanuel Vadot				status = "okay";
143*f126890aSEmmanuel Vadot				phy = <&phy3>;
144*f126890aSEmmanuel Vadot				phy-mode = "qsgmii";
145*f126890aSEmmanuel Vadot				buffer-manager = <&bm>;
146*f126890aSEmmanuel Vadot				bm,pool-long = <3>;
147*f126890aSEmmanuel Vadot			};
148*f126890aSEmmanuel Vadot
149*f126890aSEmmanuel Vadot			/* Front-side USB slot */
150*f126890aSEmmanuel Vadot			usb@50000 {
151*f126890aSEmmanuel Vadot				status = "okay";
152*f126890aSEmmanuel Vadot			};
153*f126890aSEmmanuel Vadot
154*f126890aSEmmanuel Vadot			/* Back-side USB slot */
155*f126890aSEmmanuel Vadot			usb@51000 {
156*f126890aSEmmanuel Vadot				status = "okay";
157*f126890aSEmmanuel Vadot			};
158*f126890aSEmmanuel Vadot
159*f126890aSEmmanuel Vadot			bm@c0000 {
160*f126890aSEmmanuel Vadot				status = "okay";
161*f126890aSEmmanuel Vadot			};
162*f126890aSEmmanuel Vadot
163*f126890aSEmmanuel Vadot			nand-controller@d0000 {
164*f126890aSEmmanuel Vadot				status = "okay";
165*f126890aSEmmanuel Vadot
166*f126890aSEmmanuel Vadot				nand@0 {
167*f126890aSEmmanuel Vadot					reg = <0>;
168*f126890aSEmmanuel Vadot					label = "pxa3xx_nand-0";
169*f126890aSEmmanuel Vadot					nand-rb = <0>;
170*f126890aSEmmanuel Vadot					nand-on-flash-bbt;
171*f126890aSEmmanuel Vadot				};
172*f126890aSEmmanuel Vadot			};
173*f126890aSEmmanuel Vadot		};
174*f126890aSEmmanuel Vadot
175*f126890aSEmmanuel Vadot		bm-bppi {
176*f126890aSEmmanuel Vadot			status = "okay";
177*f126890aSEmmanuel Vadot		};
178*f126890aSEmmanuel Vadot	};
179*f126890aSEmmanuel Vadot};
180*f126890aSEmmanuel Vadot
181*f126890aSEmmanuel Vadot&pciec {
182*f126890aSEmmanuel Vadot	status = "okay";
183*f126890aSEmmanuel Vadot
184*f126890aSEmmanuel Vadot	/*
185*f126890aSEmmanuel Vadot	 * The 3 slots are physically present as
186*f126890aSEmmanuel Vadot	 * standard PCIe slots on the board.
187*f126890aSEmmanuel Vadot	 */
188*f126890aSEmmanuel Vadot	pcie@1,0 {
189*f126890aSEmmanuel Vadot		/* Port 0, Lane 0 */
190*f126890aSEmmanuel Vadot		status = "okay";
191*f126890aSEmmanuel Vadot	};
192*f126890aSEmmanuel Vadot	pcie@9,0 {
193*f126890aSEmmanuel Vadot		/* Port 2, Lane 0 */
194*f126890aSEmmanuel Vadot		status = "okay";
195*f126890aSEmmanuel Vadot	};
196*f126890aSEmmanuel Vadot	pcie@a,0 {
197*f126890aSEmmanuel Vadot		/* Port 3, Lane 0 */
198*f126890aSEmmanuel Vadot		status = "okay";
199*f126890aSEmmanuel Vadot	};
200*f126890aSEmmanuel Vadot};
201*f126890aSEmmanuel Vadot
202*f126890aSEmmanuel Vadot&mdio {
203*f126890aSEmmanuel Vadot	phy0: ethernet-phy@0 {
204*f126890aSEmmanuel Vadot		reg = <16>;
205*f126890aSEmmanuel Vadot	};
206*f126890aSEmmanuel Vadot
207*f126890aSEmmanuel Vadot	phy1: ethernet-phy@1 {
208*f126890aSEmmanuel Vadot		reg = <17>;
209*f126890aSEmmanuel Vadot	};
210*f126890aSEmmanuel Vadot
211*f126890aSEmmanuel Vadot	phy2: ethernet-phy@2 {
212*f126890aSEmmanuel Vadot		reg = <18>;
213*f126890aSEmmanuel Vadot	};
214*f126890aSEmmanuel Vadot
215*f126890aSEmmanuel Vadot	phy3: ethernet-phy@3 {
216*f126890aSEmmanuel Vadot		reg = <19>;
217*f126890aSEmmanuel Vadot	};
218*f126890aSEmmanuel Vadot};
219*f126890aSEmmanuel Vadot
220*f126890aSEmmanuel Vadot&spi0 {
221*f126890aSEmmanuel Vadot	status = "okay";
222*f126890aSEmmanuel Vadot
223*f126890aSEmmanuel Vadot	flash@0 {
224*f126890aSEmmanuel Vadot		#address-cells = <1>;
225*f126890aSEmmanuel Vadot		#size-cells = <1>;
226*f126890aSEmmanuel Vadot		compatible = "n25q128a13", "jedec,spi-nor";
227*f126890aSEmmanuel Vadot		reg = <0>; /* Chip select 0 */
228*f126890aSEmmanuel Vadot		spi-max-frequency = <108000000>;
229*f126890aSEmmanuel Vadot	};
230*f126890aSEmmanuel Vadot};
231