Commit | Line | Data |
---|---|---|
19b85c08 TP |
1 | /* |
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 | * | |
faeb8e20 GC |
8 | * This file is dual-licensed: you can use it either under the terms |
9 | * of the GPL or the X11 license, at your option. Note that this dual | |
10 | * licensing only applies to this file, and not this project as a | |
11 | * whole. | |
12 | * | |
13 | * a) This file is free software; you can redistribute it and/or | |
14 | * modify it under the terms of the GNU General Public License as | |
15 | * published by the Free Software Foundation; either version 2 of the | |
16 | * License, or (at your option) any later version. | |
17 | * | |
18 | * This file is distributed in the hope that it will be useful | |
19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21 | * GNU General Public License for more details. | |
22 | * | |
23 | * Or, alternatively | |
24 | * | |
25 | * b) Permission is hereby granted, free of charge, to any person | |
26 | * obtaining a copy of this software and associated documentation | |
27 | * files (the "Software"), to deal in the Software without | |
28 | * restriction, including without limitation the rights to use | |
29 | * copy, modify, merge, publish, distribute, sublicense, and/or | |
30 | * sell copies of the Software, and to permit persons to whom the | |
31 | * Software is furnished to do so, subject to the following | |
32 | * conditions: | |
33 | * | |
34 | * The above copyright notice and this permission notice shall be | |
35 | * included in all copies or substantial portions of the Software. | |
36 | * | |
37 | * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND | |
38 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
39 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
40 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
41 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY | |
42 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
43 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
44 | * OTHER DEALINGS IN THE SOFTWARE. | |
19b85c08 TP |
45 | */ |
46 | ||
47 | /dts-v1/; | |
29e74f8b | 48 | #include <dt-bindings/gpio/gpio.h> |
5c0169d1 | 49 | #include <dt-bindings/input/input.h> |
38149887 | 50 | #include "armada-xp-mv78260.dtsi" |
19b85c08 TP |
51 | |
52 | / { | |
53 | model = "PlatHome OpenBlocks AX3-4 board"; | |
54 | compatible = "plathome,openblocks-ax3-4", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp"; | |
55 | ||
56 | chosen { | |
9552203c | 57 | stdout-path = "serial0:115200n8"; |
19b85c08 TP |
58 | }; |
59 | ||
60 | memory { | |
61 | device_type = "memory"; | |
e47043ae | 62 | reg = <0 0x00000000 0 0x40000000>; /* 1 GB soldered on */ |
19b85c08 TP |
63 | }; |
64 | ||
65 | soc { | |
0cd3754a | 66 | ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000 |
de1af8d4 EG |
67 | MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000 |
68 | MBUS_ID(0x01, 0x2f) 0 0 0xf0000000 0x8000000>; | |
69 | ||
70 | devbus-bootcs { | |
71 | status = "okay"; | |
72 | ||
73 | /* Device Bus parameters are required */ | |
74 | ||
75 | /* Read parameters */ | |
6e20bae8 | 76 | devbus,bus-width = <16>; |
de1af8d4 EG |
77 | devbus,turn-off-ps = <60000>; |
78 | devbus,badr-skew-ps = <0>; | |
79 | devbus,acc-first-ps = <124000>; | |
80 | devbus,acc-next-ps = <248000>; | |
81 | devbus,rd-setup-ps = <0>; | |
82 | devbus,rd-hold-ps = <0>; | |
83 | ||
84 | /* Write parameters */ | |
85 | devbus,sync-enable = <0>; | |
86 | devbus,wr-high-ps = <60000>; | |
87 | devbus,wr-low-ps = <60000>; | |
88 | devbus,ale-wr-ps = <60000>; | |
89 | ||
90 | /* NOR 128 MiB */ | |
91 | nor@0 { | |
92 | compatible = "cfi-flash"; | |
93 | reg = <0 0x8000000>; | |
94 | bank-width = <2>; | |
95 | }; | |
96 | }; | |
00ed4a0b | 97 | |
14fd8ed0 EG |
98 | pcie-controller { |
99 | status = "okay"; | |
100 | /* Internal mini-PCIe connector */ | |
101 | pcie@1,0 { | |
102 | /* Port 0, Lane 0 */ | |
103 | status = "okay"; | |
104 | }; | |
105 | }; | |
106 | ||
467f54b2 | 107 | internal-regs { |
750e30d4 GC |
108 | rtc@10300 { |
109 | /* No crystal connected to the internal RTC */ | |
110 | status = "disabled"; | |
111 | }; | |
467f54b2 | 112 | serial@12000 { |
467f54b2 | 113 | status = "okay"; |
19b85c08 | 114 | }; |
467f54b2 | 115 | serial@12100 { |
467f54b2 | 116 | status = "okay"; |
19b85c08 | 117 | }; |
01c43422 | 118 | |
467f54b2 GC |
119 | leds { |
120 | compatible = "gpio-leds"; | |
121 | pinctrl-names = "default"; | |
122 | pinctrl-0 = <&led_pins>; | |
123 | ||
124 | red_led { | |
125 | label = "red_led"; | |
29e74f8b | 126 | gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; |
467f54b2 GC |
127 | default-state = "off"; |
128 | }; | |
129 | ||
130 | yellow_led { | |
131 | label = "yellow_led"; | |
29e74f8b | 132 | gpios = <&gpio1 19 GPIO_ACTIVE_LOW>; |
467f54b2 GC |
133 | default-state = "off"; |
134 | }; | |
135 | ||
136 | green_led { | |
137 | label = "green_led"; | |
29e74f8b | 138 | gpios = <&gpio1 21 GPIO_ACTIVE_LOW>; |
dcdf14c7 | 139 | default-state = "keep"; |
467f54b2 | 140 | }; |
19b85c08 | 141 | }; |
f69c92f4 | 142 | |
467f54b2 GC |
143 | gpio_keys { |
144 | compatible = "gpio-keys"; | |
145 | #address-cells = <1>; | |
146 | #size-cells = <0>; | |
4ca73962 | 147 | |
467f54b2 GC |
148 | button@1 { |
149 | label = "Init Button"; | |
5c0169d1 | 150 | linux,code = <KEY_POWER>; |
29e74f8b | 151 | gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; |
467f54b2 | 152 | }; |
4ca73962 | 153 | }; |
4ca73962 | 154 | |
467f54b2 GC |
155 | mdio { |
156 | phy0: ethernet-phy@0 { | |
157 | reg = <0>; | |
158 | }; | |
f69c92f4 | 159 | |
467f54b2 GC |
160 | phy1: ethernet-phy@1 { |
161 | reg = <1>; | |
162 | }; | |
f69c92f4 | 163 | |
467f54b2 GC |
164 | phy2: ethernet-phy@2 { |
165 | reg = <2>; | |
166 | }; | |
f69c92f4 | 167 | |
467f54b2 GC |
168 | phy3: ethernet-phy@3 { |
169 | reg = <3>; | |
170 | }; | |
f69c92f4 | 171 | }; |
f69c92f4 | 172 | |
467f54b2 GC |
173 | ethernet@70000 { |
174 | status = "okay"; | |
175 | phy = <&phy0>; | |
176 | phy-mode = "sgmii"; | |
177 | }; | |
178 | ethernet@74000 { | |
179 | status = "okay"; | |
180 | phy = <&phy1>; | |
181 | phy-mode = "sgmii"; | |
182 | }; | |
183 | ethernet@30000 { | |
184 | status = "okay"; | |
185 | phy = <&phy2>; | |
186 | phy-mode = "sgmii"; | |
187 | }; | |
188 | ethernet@34000 { | |
189 | status = "okay"; | |
190 | phy = <&phy3>; | |
191 | phy-mode = "sgmii"; | |
192 | }; | |
193 | i2c@11000 { | |
194 | status = "okay"; | |
195 | clock-frequency = <400000>; | |
196 | }; | |
197 | i2c@11100 { | |
198 | status = "okay"; | |
199 | clock-frequency = <400000>; | |
14bedd4a | 200 | |
467f54b2 GC |
201 | s35390a: s35390a@30 { |
202 | compatible = "s35390a"; | |
203 | reg = <0x30>; | |
204 | }; | |
205 | }; | |
206 | sata@a0000 { | |
207 | nr-ports = <2>; | |
208 | status = "okay"; | |
209 | }; | |
8034891b TP |
210 | |
211 | /* Front side USB 0 */ | |
467f54b2 GC |
212 | usb@50000 { |
213 | status = "okay"; | |
214 | }; | |
8034891b TP |
215 | |
216 | /* Front side USB 1 */ | |
467f54b2 GC |
217 | usb@51000 { |
218 | status = "okay"; | |
14bedd4a | 219 | }; |
95999cf0 | 220 | }; |
19b85c08 TP |
221 | }; |
222 | }; | |
01c43422 SH |
223 | |
224 | &pinctrl { | |
225 | led_pins: led-pins-0 { | |
226 | marvell,pins = "mpp49", "mpp51", "mpp53"; | |
227 | marvell,function = "gpio"; | |
228 | }; | |
229 | }; |