blob: 1700f6fd612749ff09c0857b524ecc932f8ee68c [file] [log] [blame]
Thomas Petazzoni19b85c02012-10-23 08:17:20 +02001/*
2 * Device Tree file for OpenBlocks AX3-4 board
3 *
4 * Copyright (C) 2012 Marvell
5 *
6 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 *
8 * This file is licensed under the terms of the GNU General Public
9 * License version 2. This program is licensed "as is" without any
10 * warranty of any kind, whether express or implied.
11 */
12
13/dts-v1/;
Ezequiel Garcia38149882013-07-26 10:17:56 -030014#include "armada-xp-mv78260.dtsi"
Thomas Petazzoni19b85c02012-10-23 08:17:20 +020015
16/ {
17 model = "PlatHome OpenBlocks AX3-4 board";
18 compatible = "plathome,openblocks-ax3-4", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
19
20 chosen {
21 bootargs = "console=ttyS0,115200 earlyprintk";
22 };
23
24 memory {
25 device_type = "memory";
Gregory CLEMENT74898362013-04-12 16:29:10 +020026 reg = <0 0x00000000 0 0xC0000000>; /* 3 GB */
Thomas Petazzoni19b85c02012-10-23 08:17:20 +020027 };
28
29 soc {
Ezequiel Garcia0cd37542013-07-26 10:17:58 -030030 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
31 MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000>;
Ezequiel Garcia00ed4a02013-05-13 12:22:53 -030032
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020033 internal-regs {
34 serial@12000 {
35 clock-frequency = <250000000>;
Thomas Petazzoni95999cf2013-04-09 23:06:35 +020036 status = "okay";
37 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020038 serial@12100 {
39 clock-frequency = <250000000>;
40 status = "okay";
41 };
42 pinctrl {
43 led_pins: led-pins-0 {
44 marvell,pins = "mpp49", "mpp51", "mpp53";
45 marvell,function = "gpio";
46 };
47 };
48 leds {
49 compatible = "gpio-leds";
50 pinctrl-names = "default";
51 pinctrl-0 = <&led_pins>;
52
53 red_led {
54 label = "red_led";
55 gpios = <&gpio1 17 1>;
56 default-state = "off";
57 };
58
59 yellow_led {
60 label = "yellow_led";
61 gpios = <&gpio1 19 1>;
62 default-state = "off";
63 };
64
65 green_led {
66 label = "green_led";
67 gpios = <&gpio1 21 1>;
68 default-state = "off";
69 linux,default-trigger = "heartbeat";
70 };
71 };
72
73 gpio_keys {
74 compatible = "gpio-keys";
75 #address-cells = <1>;
76 #size-cells = <0>;
77
78 button@1 {
79 label = "Init Button";
80 linux,code = <116>;
81 gpios = <&gpio1 28 0>;
82 };
83 };
84
85 mdio {
86 phy0: ethernet-phy@0 {
87 reg = <0>;
88 };
89
90 phy1: ethernet-phy@1 {
91 reg = <1>;
92 };
93
94 phy2: ethernet-phy@2 {
95 reg = <2>;
96 };
97
98 phy3: ethernet-phy@3 {
99 reg = <3>;
100 };
101 };
102
103 ethernet@70000 {
104 status = "okay";
105 phy = <&phy0>;
106 phy-mode = "sgmii";
107 };
108 ethernet@74000 {
109 status = "okay";
110 phy = <&phy1>;
111 phy-mode = "sgmii";
112 };
113 ethernet@30000 {
114 status = "okay";
115 phy = <&phy2>;
116 phy-mode = "sgmii";
117 };
118 ethernet@34000 {
119 status = "okay";
120 phy = <&phy3>;
121 phy-mode = "sgmii";
122 };
123 i2c@11000 {
124 status = "okay";
125 clock-frequency = <400000>;
126 };
127 i2c@11100 {
128 status = "okay";
129 clock-frequency = <400000>;
130
131 s35390a: s35390a@30 {
132 compatible = "s35390a";
133 reg = <0x30>;
134 };
135 };
136 sata@a0000 {
137 nr-ports = <2>;
138 status = "okay";
139 };
Thomas Petazzoni80348912013-05-16 18:07:24 +0200140
141 /* Front side USB 0 */
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200142 usb@50000 {
143 status = "okay";
144 };
Thomas Petazzoni80348912013-05-16 18:07:24 +0200145
146 /* Front side USB 1 */
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200147 usb@51000 {
148 status = "okay";
149 };
150
Thomas Petazzoni80348912013-05-16 18:07:24 +0200151 /* USB interface in the mini-PCIe connector */
152 usb@52000 {
153 status = "okay";
154 };
155
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200156 devbus-bootcs@10400 {
157 status = "okay";
158 ranges = <0 0xf0000000 0x8000000>; /* @addr 0xf000000, size 0x8000000 */
159
160 /* Device Bus parameters are required */
161
162 /* Read parameters */
163 devbus,bus-width = <8>;
164 devbus,turn-off-ps = <60000>;
165 devbus,badr-skew-ps = <0>;
166 devbus,acc-first-ps = <124000>;
167 devbus,acc-next-ps = <248000>;
168 devbus,rd-setup-ps = <0>;
169 devbus,rd-hold-ps = <0>;
170
171 /* Write parameters */
172 devbus,sync-enable = <0>;
173 devbus,wr-high-ps = <60000>;
174 devbus,wr-low-ps = <60000>;
175 devbus,ale-wr-ps = <60000>;
176
177 /* NOR 128 MiB */
178 nor@0 {
179 compatible = "cfi-flash";
180 reg = <0 0x8000000>;
181 bank-width = <2>;
182 };
183 };
184
185 pcie-controller {
186 status = "okay";
187 /* Internal mini-PCIe connector */
188 pcie@1,0 {
189 /* Port 0, Lane 0 */
190 status = "okay";
191 };
192 };
Thomas Petazzoni95999cf2013-04-09 23:06:35 +0200193 };
Thomas Petazzoni19b85c02012-10-23 08:17:20 +0200194 };
195};