Loading...
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Device Tree file for OpenBlocks AX3-4 board
4 *
5 * Copyright (C) 2012 Marvell
6 *
7 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 */
9
10/dts-v1/;
11#include <dt-bindings/gpio/gpio.h>
12#include <dt-bindings/input/input.h>
13#include "armada-xp-mv78260.dtsi"
14
15/ {
16 model = "PlatHome OpenBlocks AX3-4 board";
17 compatible = "plathome,openblocks-ax3-4", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
18
19 chosen {
20 stdout-path = "serial0:115200n8";
21 };
22
23 memory@0 {
24 device_type = "memory";
25 reg = <0 0x00000000 0 0x40000000>; /* 1 GB soldered on */
26 };
27
28 soc {
29 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
30 MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
31 MBUS_ID(0x01, 0x2f) 0 0 0xe8000000 0x8000000
32 MBUS_ID(0x09, 0x09) 0 0 0xf1100000 0x10000
33 MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000
34 MBUS_ID(0x0c, 0x04) 0 0 0xd1200000 0x100000>;
35
36 devbus-bootcs {
37 status = "okay";
38
39 /* Device Bus parameters are required */
40
41 /* Read parameters */
42 devbus,bus-width = <16>;
43 devbus,turn-off-ps = <60000>;
44 devbus,badr-skew-ps = <0>;
45 devbus,acc-first-ps = <124000>;
46 devbus,acc-next-ps = <248000>;
47 devbus,rd-setup-ps = <0>;
48 devbus,rd-hold-ps = <0>;
49
50 /* Write parameters */
51 devbus,sync-enable = <0>;
52 devbus,wr-high-ps = <60000>;
53 devbus,wr-low-ps = <60000>;
54 devbus,ale-wr-ps = <60000>;
55
56 /* NOR 128 MiB */
57 nor@0 {
58 compatible = "cfi-flash";
59 reg = <0 0x8000000>;
60 bank-width = <2>;
61 };
62 };
63
64 internal-regs {
65 rtc@10300 {
66 /* No crystal connected to the internal RTC */
67 status = "disabled";
68 };
69 serial@12000 {
70 status = "okay";
71 };
72 serial@12100 {
73 status = "okay";
74 };
75
76 leds {
77 compatible = "gpio-leds";
78 pinctrl-names = "default";
79 pinctrl-0 = <&led_pins>;
80
81 red_led {
82 label = "red_led";
83 gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
84 default-state = "off";
85 };
86
87 yellow_led {
88 label = "yellow_led";
89 gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
90 default-state = "off";
91 };
92
93 green_led {
94 label = "green_led";
95 gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
96 default-state = "keep";
97 };
98 };
99
100 gpio_keys {
101 compatible = "gpio-keys";
102 #address-cells = <1>;
103 #size-cells = <0>;
104
105 init {
106 label = "Init Button";
107 linux,code = <KEY_POWER>;
108 gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
109 };
110 };
111
112 ethernet@70000 {
113 status = "okay";
114 phy = <&phy0>;
115 phy-mode = "sgmii";
116 buffer-manager = <&bm>;
117 bm,pool-long = <0>;
118 };
119 ethernet@74000 {
120 status = "okay";
121 phy = <&phy1>;
122 phy-mode = "sgmii";
123 buffer-manager = <&bm>;
124 bm,pool-long = <1>;
125 };
126 ethernet@30000 {
127 status = "okay";
128 phy = <&phy2>;
129 phy-mode = "sgmii";
130 buffer-manager = <&bm>;
131 bm,pool-long = <2>;
132 };
133 ethernet@34000 {
134 status = "okay";
135 phy = <&phy3>;
136 phy-mode = "sgmii";
137 buffer-manager = <&bm>;
138 bm,pool-long = <3>;
139 };
140 i2c@11000 {
141 status = "okay";
142 clock-frequency = <400000>;
143 };
144 i2c@11100 {
145 status = "okay";
146 clock-frequency = <400000>;
147
148 s35390a: s35390a@30 {
149 compatible = "s35390a";
150 reg = <0x30>;
151 };
152 };
153 sata@a0000 {
154 nr-ports = <2>;
155 status = "okay";
156 };
157
158 /* Front side USB 0 */
159 usb@50000 {
160 status = "okay";
161 };
162
163 /* Front side USB 1 */
164 usb@51000 {
165 status = "okay";
166 };
167
168 bm@c0000 {
169 status = "okay";
170 };
171 };
172
173 bm-bppi {
174 status = "okay";
175 };
176 };
177};
178
179&pciec {
180 status = "okay";
181 /* Internal mini-PCIe connector */
182 pcie@1,0 {
183 /* Port 0, Lane 0 */
184 status = "okay";
185 };
186};
187
188&mdio {
189 phy0: ethernet-phy@0 {
190 reg = <0>;
191 };
192
193 phy1: ethernet-phy@1 {
194 reg = <1>;
195 };
196
197 phy2: ethernet-phy@2 {
198 reg = <2>;
199 };
200
201 phy3: ethernet-phy@3 {
202 reg = <3>;
203 };
204};
205
206&pinctrl {
207 led_pins: led-pins-0 {
208 marvell,pins = "mpp49", "mpp51", "mpp53";
209 marvell,function = "gpio";
210 };
211};
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 *
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.
45 */
46
47/dts-v1/;
48#include <dt-bindings/gpio/gpio.h>
49#include <dt-bindings/input/input.h>
50#include "armada-xp-mv78260.dtsi"
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 {
57 stdout-path = "serial0:115200n8";
58 };
59
60 memory@0 {
61 device_type = "memory";
62 reg = <0 0x00000000 0 0x40000000>; /* 1 GB soldered on */
63 };
64
65 soc {
66 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
67 MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
68 MBUS_ID(0x01, 0x2f) 0 0 0xe8000000 0x8000000
69 MBUS_ID(0x09, 0x09) 0 0 0xf1100000 0x10000
70 MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000
71 MBUS_ID(0x0c, 0x04) 0 0 0xd1200000 0x100000>;
72
73 devbus-bootcs {
74 status = "okay";
75
76 /* Device Bus parameters are required */
77
78 /* Read parameters */
79 devbus,bus-width = <16>;
80 devbus,turn-off-ps = <60000>;
81 devbus,badr-skew-ps = <0>;
82 devbus,acc-first-ps = <124000>;
83 devbus,acc-next-ps = <248000>;
84 devbus,rd-setup-ps = <0>;
85 devbus,rd-hold-ps = <0>;
86
87 /* Write parameters */
88 devbus,sync-enable = <0>;
89 devbus,wr-high-ps = <60000>;
90 devbus,wr-low-ps = <60000>;
91 devbus,ale-wr-ps = <60000>;
92
93 /* NOR 128 MiB */
94 nor@0 {
95 compatible = "cfi-flash";
96 reg = <0 0x8000000>;
97 bank-width = <2>;
98 };
99 };
100
101 internal-regs {
102 rtc@10300 {
103 /* No crystal connected to the internal RTC */
104 status = "disabled";
105 };
106 serial@12000 {
107 status = "okay";
108 };
109 serial@12100 {
110 status = "okay";
111 };
112
113 leds {
114 compatible = "gpio-leds";
115 pinctrl-names = "default";
116 pinctrl-0 = <&led_pins>;
117
118 red_led {
119 label = "red_led";
120 gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
121 default-state = "off";
122 };
123
124 yellow_led {
125 label = "yellow_led";
126 gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
127 default-state = "off";
128 };
129
130 green_led {
131 label = "green_led";
132 gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
133 default-state = "keep";
134 };
135 };
136
137 gpio_keys {
138 compatible = "gpio-keys";
139 #address-cells = <1>;
140 #size-cells = <0>;
141
142 init {
143 label = "Init Button";
144 linux,code = <KEY_POWER>;
145 gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
146 };
147 };
148
149 ethernet@70000 {
150 status = "okay";
151 phy = <&phy0>;
152 phy-mode = "sgmii";
153 buffer-manager = <&bm>;
154 bm,pool-long = <0>;
155 };
156 ethernet@74000 {
157 status = "okay";
158 phy = <&phy1>;
159 phy-mode = "sgmii";
160 buffer-manager = <&bm>;
161 bm,pool-long = <1>;
162 };
163 ethernet@30000 {
164 status = "okay";
165 phy = <&phy2>;
166 phy-mode = "sgmii";
167 buffer-manager = <&bm>;
168 bm,pool-long = <2>;
169 };
170 ethernet@34000 {
171 status = "okay";
172 phy = <&phy3>;
173 phy-mode = "sgmii";
174 buffer-manager = <&bm>;
175 bm,pool-long = <3>;
176 };
177 i2c@11000 {
178 status = "okay";
179 clock-frequency = <400000>;
180 };
181 i2c@11100 {
182 status = "okay";
183 clock-frequency = <400000>;
184
185 s35390a: s35390a@30 {
186 compatible = "s35390a";
187 reg = <0x30>;
188 };
189 };
190 sata@a0000 {
191 nr-ports = <2>;
192 status = "okay";
193 };
194
195 /* Front side USB 0 */
196 usb@50000 {
197 status = "okay";
198 };
199
200 /* Front side USB 1 */
201 usb@51000 {
202 status = "okay";
203 };
204
205 bm@c0000 {
206 status = "okay";
207 };
208 };
209
210 bm-bppi {
211 status = "okay";
212 };
213 };
214};
215
216&pciec {
217 status = "okay";
218 /* Internal mini-PCIe connector */
219 pcie@1,0 {
220 /* Port 0, Lane 0 */
221 status = "okay";
222 };
223};
224
225&mdio {
226 phy0: ethernet-phy@0 {
227 reg = <0>;
228 };
229
230 phy1: ethernet-phy@1 {
231 reg = <1>;
232 };
233
234 phy2: ethernet-phy@2 {
235 reg = <2>;
236 };
237
238 phy3: ethernet-phy@3 {
239 reg = <3>;
240 };
241};
242
243&pinctrl {
244 led_pins: led-pins-0 {
245 marvell,pins = "mpp49", "mpp51", "mpp53";
246 marvell,function = "gpio";
247 };
248};