2 * Device Tree file for SolidRun Clearfog revision A1 rev 2.0 (88F6828)
4 * Copyright (C) 2015 Russell King
6 * This board is in development; the contents of this file work with
7 * the A1 rev 2.0 of the board, which does not represent final
8 * production board. Things will change, don't expect this file to
9 * remain compatible info the future.
11 * This file is dual-licensed: you can use it either under the terms
12 * of the GPL or the X11 license, at your option. Note that this dual
13 * licensing only applies to this file, and not this project as a
16 * a) This file is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU General Public License
18 * version 2 as published by the Free Software Foundation.
20 * This file is distributed in the hope that it will be useful
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
27 * b) Permission is hereby granted, free of charge, to any person
28 * obtaining a copy of this software and associated documentation
29 * files (the "Software"), to deal in the Software without
30 * restriction, including without limitation the rights to use
31 * copy, modify, merge, publish, distribute, sublicense, and/or
32 * sell copies of the Software, and to permit persons to whom the
33 * Software is furnished to do so, subject to the following
36 * The above copyright notice and this permission notice shall be
37 * included in all copies or substantial portions of the Software.
39 * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
40 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
41 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
42 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
43 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
44 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
45 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
46 * OTHER DEALINGS IN THE SOFTWARE.
50 #include <dt-bindings/input/input.h>
51 #include <dt-bindings/gpio/gpio.h>
52 #include "armada-388.dtsi"
55 model = "SolidRun Clearfog A1";
56 compatible = "solidrun,clearfog-a1", "marvell,armada388",
57 "marvell,armada385", "marvell,armada380";
60 /* So that mvebu u-boot can update the MAC addresses */
68 stdout-path = "serial0:115200n8";
72 device_type = "memory";
73 reg = <0x00000000 0x10000000>; /* 256 MB */
76 reg_3p3v: regulator-3p3v {
77 compatible = "regulator-fixed";
78 regulator-name = "3P3V";
79 regulator-min-microvolt = <3300000>;
80 regulator-max-microvolt = <3300000>;
85 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
86 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
87 MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
88 MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000>;
92 mac-address = [00 50 43 02 02 02];
103 mac-address = [00 50 43 02 02 03];
104 managed = "in-band-status";
110 mac-address = [00 50 43 02 02 01];
111 pinctrl-0 = <&ge0_rgmii_pins>;
112 pinctrl-names = "default";
113 phy = <&phy_dedicated>;
114 phy-mode = "rgmii-id";
119 /* Is there anything on this? */
120 clock-frequency = <100000>;
121 pinctrl-0 = <&i2c0_pins>;
122 pinctrl-names = "default";
126 * PCA9655 GPIO expander, up to 1MHz clock.
144 expander0: gpio-expander@20 {
146 * This is how it should be:
147 * compatible = "onnn,pca9655",
149 * but you can't do this because of
152 compatible = "nxp,pca9555";
159 gpios = <0 GPIO_ACTIVE_LOW>;
161 line-name = "pcie1.0-clkreq";
165 gpios = <3 GPIO_ACTIVE_LOW>;
167 line-name = "pcie1.0-w-disable";
171 gpios = <4 GPIO_ACTIVE_LOW>;
173 line-name = "pcie2.0-clkreq";
177 gpios = <7 GPIO_ACTIVE_LOW>;
179 line-name = "pcie2.0-w-disable";
183 gpios = <5 GPIO_ACTIVE_LOW>;
185 line-name = "usb3-current-limit";
189 gpios = <6 GPIO_ACTIVE_HIGH>;
191 line-name = "usb3-power";
195 gpios = <11 GPIO_ACTIVE_HIGH>;
197 line-name = "m.2 devslp";
201 /* The MCP3021 is 100kHz clock only */
202 mikrobus_adc: mcp3021@4c {
203 compatible = "microchip,mcp3021";
207 /* Also something at 0x64 */
212 * Routed to SFP, mikrobus, and PCIe.
213 * SFP limits this to 100kHz, and requires
214 * an AT24C01A/02/04 with address pins tied
215 * low, which takes addresses 0x50 and 0x51.
216 * Mikrobus doesn't specify beyond an I2C
218 * PCIe uses ARP to assign addresses, or
221 clock-frequency = <100000>;
222 pinctrl-0 = <&clearfog_i2c1_pins>;
223 pinctrl-names = "default";
228 pinctrl-0 = <&mdio_pins>;
229 pinctrl-names = "default";
231 phy_dedicated: ethernet-phy@0 {
233 * Annoyingly, the marvell phy driver
234 * configures the LED register, rather
235 * than preserving reset-loaded setting.
236 * We undo that rubbish here.
238 marvell,reg-init = <3 16 0 0x101e>;
244 clearfog_dsa0_clk_pins: clearfog-dsa0-clk-pins {
245 marvell,pins = "mpp46";
246 marvell,function = "ref";
248 clearfog_dsa0_pins: clearfog-dsa0-pins {
249 marvell,pins = "mpp23", "mpp41";
250 marvell,function = "gpio";
252 clearfog_i2c1_pins: i2c1-pins {
253 /* SFP, PCIe, mSATA, mikrobus */
254 marvell,pins = "mpp26", "mpp27";
255 marvell,function = "i2c1";
257 clearfog_sdhci_cd_pins: clearfog-sdhci-cd-pins {
258 marvell,pins = "mpp20";
259 marvell,function = "gpio";
261 clearfog_sdhci_pins: clearfog-sdhci-pins {
262 marvell,pins = "mpp21", "mpp28",
265 marvell,function = "sd0";
267 clearfog_spi1_cs_pins: spi1-cs-pins {
268 marvell,pins = "mpp55";
269 marvell,function = "spi1";
271 mikro_pins: mikro-pins {
272 /* int: mpp22 rst: mpp29 */
273 marvell,pins = "mpp22", "mpp29";
274 marvell,function = "gpio";
276 mikro_spi_pins: mikro-spi-pins {
277 marvell,pins = "mpp43";
278 marvell,function = "spi1";
280 mikro_uart_pins: mikro-uart-pins {
281 marvell,pins = "mpp24", "mpp25";
282 marvell,function = "ua1";
284 rear_button_pins: rear-button-pins {
285 marvell,pins = "mpp34";
286 marvell,function = "gpio";
292 * If the rtc doesn't work, run "date reset"
310 cd-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
312 pinctrl-0 = <&clearfog_sdhci_pins
313 &clearfog_sdhci_cd_pins>;
314 pinctrl-names = "default";
321 pinctrl-0 = <&uart0_pins>;
322 pinctrl-names = "default";
329 pinctrl-0 = <&mikro_uart_pins>;
330 pinctrl-names = "default";
340 pinctrl-0 = <&spi1_pins &clearfog_spi1_cs_pins &mikro_spi_pins>;
341 pinctrl-names = "default";
345 #address-cells = <1>;
347 compatible = "w25q32", "jedec,spi-nor", "spi-flash";
348 reg = <0>; /* Chip select 0 */
349 spi-max-frequency = <3000000>;
361 * The two PCIe units are accessible through
362 * the mini-PCIe connectors on the board.
365 /* Port 1, Lane 0. CONN3, nearest power. */
366 reset-gpios = <&expander0 1 GPIO_ACTIVE_LOW>;
370 /* Port 2, Lane 0. CONN2, nearest CPU. */
371 reset-gpios = <&expander0 2 GPIO_ACTIVE_LOW>;
378 compatible = "sff,sfp";
380 los-gpio = <&expander0 12 GPIO_ACTIVE_HIGH>;
381 moddef0-gpio = <&expander0 15 GPIO_ACTIVE_LOW>;
382 sfp,ethernet = <ð2>;
383 tx-disable-gpio = <&expander0 14 GPIO_ACTIVE_HIGH>;
384 tx-fault-gpio = <&expander0 13 GPIO_ACTIVE_HIGH>;
388 compatible = "marvell,dsa";
389 dsa,ethernet = <ð1>;
390 dsa,mii-bus = <&mdio>;
391 pinctrl-0 = <&clearfog_dsa0_clk_pins &clearfog_dsa0_pins>;
392 pinctrl-names = "default";
393 #address-cells = <2>;
397 #address-cells = <1>;
432 /* 88E1512 external phy */
444 compatible = "gpio-keys";
445 pinctrl-0 = <&rear_button_pins>;
446 pinctrl-names = "default";
449 /* The rear SW3 button */
450 label = "Rear Button";
451 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
453 linux,code = <BTN_0>;
459 +#define A38x_CUSTOMER_BOARD_1_MPP16_23 0x00400011
460 MPP18: gpio ? (pca9655 int?)
461 MPP19: gpio ? (clkreq?)
462 MPP20: gpio ? (sd0 detect)
464 MPP22: gpio x mikro int
465 MPP23: gpio x switch irq
466 +#define A38x_CUSTOMER_BOARD_1_MPP24_31 0x22043333
467 MPP24: ua1:rxd x mikro rx
468 MPP25: ua1:txd x mikro tx
469 MPP26: i2c1:sck x mikro sck
470 MPP27: i2c1:sda x mikro sda
472 MPP29: gpio x mikro rst
473 MPP30: ge1:txd2 ? (config)
474 MPP31: ge1:txd3 ? (config)
475 +#define A38x_CUSTOMER_BOARD_1_MPP32_39 0x44400002
476 MPP32: ge1:txctl ? (unused)
477 MPP33: gpio ? (pic_com0)
478 MPP34: gpio x rear button (pic_com1)
479 MPP35: gpio ? (pic_com2)
480 MPP36: gpio ? (unused)
484 +#define A38x_CUSTOMER_BOARD_1_MPP40_47 0x41144004
486 MPP41: gpio x switch reset
488 MPP43: spi1:cs2 x mikro cs
489 MPP44: sata3:prsnt ? (unused)
490 MPP45: ref:clk_out0 ?
491 MPP46: ref:clk_out1 x switch clk
493 +#define A38x_CUSTOMER_BOARD_1_MPP48_55 0x40333333
501 MPP55: spi1:cs1 x slic
502 +#define A38x_CUSTOMER_BOARD_1_MPP56_63 0x00004444
503 MPP56: spi1:mosi x mikro mosi
504 MPP57: spi1:sck x mikro sck
505 MPP58: spi1:miso x mikro miso
506 MPP59: spi1:cs0 x w25q32