blob: f5fc1a3868a2e39e139fc76f900c23fb03457b2a [file] [log] [blame]
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +02001/*
2 * Device Tree file for Marvell Armada XP evaluation board
3 * (DB-78460-BP)
4 *
5 * Copyright (C) 2012 Marvell
6 *
7 * Lior Amsalem <alior@marvell.com>
8 * Gregory CLEMENT <gregory.clement@free-electrons.com>
9 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 *
11 * This file is licensed under the terms of the GNU General Public
12 * License version 2. This program is licensed "as is" without any
13 * warranty of any kind, whether express or implied.
14 */
15
16/dts-v1/;
Thomas Petazzoni0bec30a2012-09-13 17:41:50 +020017/include/ "armada-xp-mv78460.dtsi"
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020018
19/ {
20 model = "Marvell Armada XP Evaluation Board";
Thomas Petazzoni0bec30a2012-09-13 17:41:50 +020021 compatible = "marvell,axp-db", "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp";
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020022
23 chosen {
24 bootargs = "console=ttyS0,115200 earlyprintk";
25 };
26
27 memory {
28 device_type = "memory";
Gregory CLEMENT74898362013-04-12 16:29:10 +020029 reg = <0 0x00000000 0 0x80000000>; /* 2 GB */
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020030 };
31
32 soc {
Ezequiel Garciab484ff42013-05-17 08:09:58 -030033 ranges = <0 0 0xd0000000 0x100000 /* Internal registers 1MiB */
34 0xf0000000 0 0xf0000000 0x1000000>; /* Device Bus, NOR 16MiB */
35
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020036 internal-regs {
37 serial@12000 {
38 clock-frequency = <250000000>;
Thomas Petazzonibf4f9c62013-04-09 23:06:36 +020039 status = "okay";
40 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020041 serial@12100 {
42 clock-frequency = <250000000>;
Thomas Petazzonibf4f9c62013-04-09 23:06:36 +020043 status = "okay";
44 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020045 serial@12200 {
46 clock-frequency = <250000000>;
Thomas Petazzonibf4f9c62013-04-09 23:06:36 +020047 status = "okay";
48 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020049 serial@12300 {
50 clock-frequency = <250000000>;
Thomas Petazzonibf4f9c62013-04-09 23:06:36 +020051 status = "okay";
52 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020053
54 sata@a0000 {
55 nr-ports = <2>;
Thomas Petazzonibf4f9c62013-04-09 23:06:36 +020056 status = "okay";
57 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020058
59 mdio {
60 phy0: ethernet-phy@0 {
61 reg = <0>;
62 };
63
64 phy1: ethernet-phy@1 {
65 reg = <1>;
66 };
67
68 phy2: ethernet-phy@2 {
69 reg = <25>;
70 };
71
72 phy3: ethernet-phy@3 {
73 reg = <27>;
74 };
75 };
76
77 ethernet@70000 {
Thomas Petazzonibf4f9c62013-04-09 23:06:36 +020078 status = "okay";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020079 phy = <&phy0>;
80 phy-mode = "rgmii-id";
81 };
82 ethernet@74000 {
83 status = "okay";
84 phy = <&phy1>;
85 phy-mode = "rgmii-id";
86 };
87 ethernet@30000 {
88 status = "okay";
89 phy = <&phy2>;
90 phy-mode = "sgmii";
91 };
92 ethernet@34000 {
93 status = "okay";
94 phy = <&phy3>;
95 phy-mode = "sgmii";
96 };
97
98 mvsdio@d4000 {
99 pinctrl-0 = <&sdio_pins>;
100 pinctrl-names = "default";
101 status = "okay";
102 /* No CD or WP GPIOs */
Simon Baatzd87b5fb2013-05-13 23:18:58 +0200103 broken-cd;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200104 };
105
106 usb@50000 {
107 status = "okay";
108 };
109
110 usb@51000 {
111 status = "okay";
112 };
113
114 usb@52000 {
115 status = "okay";
116 };
117
118 spi0: spi@10600 {
119 status = "okay";
120
121 spi-flash@0 {
122 #address-cells = <1>;
123 #size-cells = <1>;
124 compatible = "m25p64";
125 reg = <0>; /* Chip select 0 */
126 spi-max-frequency = <20000000>;
127 };
128 };
129
130 pcie-controller {
131 status = "okay";
132
133 /*
134 * All 6 slots are physically present as
135 * standard PCIe slots on the board.
136 */
137 pcie@1,0 {
138 /* Port 0, Lane 0 */
139 status = "okay";
140 };
141 pcie@2,0 {
142 /* Port 0, Lane 1 */
143 status = "okay";
144 };
145 pcie@3,0 {
146 /* Port 0, Lane 2 */
147 status = "okay";
148 };
149 pcie@4,0 {
150 /* Port 0, Lane 3 */
151 status = "okay";
152 };
153 pcie@9,0 {
154 /* Port 2, Lane 0 */
155 status = "okay";
156 };
157 pcie@10,0 {
158 /* Port 3, Lane 0 */
159 status = "okay";
160 };
Thomas Petazzonibf4f9c62013-04-09 23:06:36 +0200161 };
Ezequiel Garciab484ff42013-05-17 08:09:58 -0300162
163 devbus-bootcs@10400 {
164 status = "okay";
165 ranges = <0 0xf0000000 0x1000000>;
166
167 /* Device Bus parameters are required */
168
169 /* Read parameters */
170 devbus,bus-width = <8>;
171 devbus,turn-off-ps = <60000>;
172 devbus,badr-skew-ps = <0>;
173 devbus,acc-first-ps = <124000>;
174 devbus,acc-next-ps = <248000>;
175 devbus,rd-setup-ps = <0>;
176 devbus,rd-hold-ps = <0>;
177
178 /* Write parameters */
179 devbus,sync-enable = <0>;
180 devbus,wr-high-ps = <60000>;
181 devbus,wr-low-ps = <60000>;
182 devbus,ale-wr-ps = <60000>;
183
184 /* NOR 16 MiB */
185 nor@0 {
186 compatible = "cfi-flash";
187 reg = <0 0x1000000>;
188 bank-width = <2>;
189 };
190 };
Thomas Petazzonibf4f9c62013-04-09 23:06:36 +0200191 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200192 };
193};