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 */
67 stdout-path = "serial0:115200n8";
71 device_type = "memory";
72 reg = <0x00000000 0x10000000>; /* 256 MB */
75 reg_3p3v: regulator-3p3v {
76 compatible = "regulator-fixed";
77 regulator-name = "3P3V";
78 regulator-min-microvolt = <3300000>;
79 regulator-max-microvolt = <3300000>;
84 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
85 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
86 MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
87 MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000>;
91 mac-address = [00 50 43 02 02 02];
102 mac-address = [00 50 43 02 02 03];
103 managed = "in-band-status";
109 mac-address = [00 50 43 02 02 01];
110 pinctrl-0 = <&ge0_rgmii_pins>;
111 pinctrl-names = "default";
112 phy = <&phy_dedicated>;
113 phy-mode = "rgmii-id";
118 /* Is there anything on this? */
119 clock-frequency = <100000>;
120 pinctrl-0 = <&i2c0_pins>;
121 pinctrl-names = "default";
125 * PCA9655 GPIO expander, up to 1MHz clock.
143 expander0: gpio-expander@20 {
145 * This is how it should be:
146 * compatible = "onnn,pca9655",
148 * but you can't do this because of
151 compatible = "nxp,pca9555";
158 gpios = <0 GPIO_ACTIVE_LOW>;
160 line-name = "pcie1.0-clkreq";
164 gpios = <3 GPIO_ACTIVE_LOW>;
166 line-name = "pcie1.0-w-disable";
170 gpios = <4 GPIO_ACTIVE_LOW>;
172 line-name = "pcie2.0-clkreq";
176 gpios = <7 GPIO_ACTIVE_LOW>;
178 line-name = "pcie2.0-w-disable";
182 gpios = <5 GPIO_ACTIVE_LOW>;
184 line-name = "usb3-current-limit";
188 gpios = <6 GPIO_ACTIVE_HIGH>;
190 line-name = "usb3-power";
194 gpios = <11 GPIO_ACTIVE_HIGH>;
196 line-name = "m.2 devslp";
200 /* The MCP3021 is 100kHz clock only */
201 mikrobus_adc: mcp3021@4c {
202 compatible = "microchip,mcp3021";
206 /* Also something at 0x64 */
211 * Routed to SFP, mikrobus, and PCIe.
212 * SFP limits this to 100kHz, and requires
213 * an AT24C01A/02/04 with address pins tied
214 * low, which takes addresses 0x50 and 0x51.
215 * Mikrobus doesn't specify beyond an I2C
217 * PCIe uses ARP to assign addresses, or
220 clock-frequency = <100000>;
221 pinctrl-0 = <&clearfog_i2c1_pins>;
222 pinctrl-names = "default";
227 pinctrl-0 = <&mdio_pins>;
228 pinctrl-names = "default";
230 phy_dedicated: ethernet-phy@0 {
232 * Annoyingly, the marvell phy driver
233 * configures the LED register, rather
234 * than preserving reset-loaded setting.
235 * We undo that rubbish here.
237 marvell,reg-init = <3 16 0 0x101e>;
243 clearfog_dsa0_clk_pins: clearfog-dsa0-clk-pins {
244 marvell,pins = "mpp46";
245 marvell,function = "ref";
247 clearfog_dsa0_pins: clearfog-dsa0-pins {
248 marvell,pins = "mpp23", "mpp41";
249 marvell,function = "gpio";
251 clearfog_i2c1_pins: i2c1-pins {
252 /* SFP, PCIe, mSATA, mikrobus */
253 marvell,pins = "mpp26", "mpp27";
254 marvell,function = "i2c1";
256 clearfog_sdhci_cd_pins: clearfog-sdhci-cd-pins {
257 marvell,pins = "mpp20";
258 marvell,function = "gpio";
260 clearfog_sdhci_pins: clearfog-sdhci-pins {
261 marvell,pins = "mpp21", "mpp28",
264 marvell,function = "sd0";
266 clearfog_spi1_cs_pins: spi1-cs-pins {
267 marvell,pins = "mpp55";
268 marvell,function = "spi1";
270 mikro_pins: mikro-pins {
271 /* int: mpp22 rst: mpp29 */
272 marvell,pins = "mpp22", "mpp29";
273 marvell,function = "gpio";
275 mikro_spi_pins: mikro-spi-pins {
276 marvell,pins = "mpp43";
277 marvell,function = "spi1";
279 mikro_uart_pins: mikro-uart-pins {
280 marvell,pins = "mpp24", "mpp25";
281 marvell,function = "ua1";
283 rear_button_pins: rear-button-pins {
284 marvell,pins = "mpp34";
285 marvell,function = "gpio";
291 * If the rtc doesn't work, run "date reset"
309 cd-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
311 pinctrl-0 = <&clearfog_sdhci_pins
312 &clearfog_sdhci_cd_pins>;
313 pinctrl-names = "default";
320 pinctrl-0 = <&uart0_pins>;
321 pinctrl-names = "default";
328 pinctrl-0 = <&mikro_uart_pins>;
329 pinctrl-names = "default";
335 * We don't seem to have the W25Q32 on the
336 * A1 Rev 2.0 boards, so disable SPI.
337 * CS0: W25Q32 (doesn't appear to be present)
341 pinctrl-0 = <&spi1_pins &clearfog_spi1_cs_pins &mikro_spi_pins>;
342 pinctrl-names = "default";
346 #address-cells = <1>;
348 compatible = "w25q32", "jedec,spi-nor";
349 reg = <0>; /* Chip select 0 */
350 spi-max-frequency = <3000000>;
363 * The two PCIe units are accessible through
364 * the mini-PCIe connectors on the board.
367 /* Port 1, Lane 0. CONN3, nearest power. */
368 reset-gpios = <&expander0 1 GPIO_ACTIVE_LOW>;
372 /* Port 2, Lane 0. CONN2, nearest CPU. */
373 reset-gpios = <&expander0 2 GPIO_ACTIVE_LOW>;
380 compatible = "sff,sfp";
382 los-gpio = <&expander0 12 GPIO_ACTIVE_HIGH>;
383 moddef0-gpio = <&expander0 15 GPIO_ACTIVE_LOW>;
384 sfp,ethernet = <ð2>;
385 tx-disable-gpio = <&expander0 14 GPIO_ACTIVE_HIGH>;
386 tx-fault-gpio = <&expander0 13 GPIO_ACTIVE_HIGH>;
390 compatible = "marvell,dsa";
391 dsa,ethernet = <ð1>;
392 dsa,mii-bus = <&mdio>;
393 pinctrl-0 = <&clearfog_dsa0_clk_pins &clearfog_dsa0_pins>;
394 pinctrl-names = "default";
395 #address-cells = <2>;
399 #address-cells = <1>;
434 /* 88E1512 external phy */
446 compatible = "gpio-keys";
447 pinctrl-0 = <&rear_button_pins>;
448 pinctrl-names = "default";
451 /* The rear SW3 button */
452 label = "Rear Button";
453 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
455 linux,code = <BTN_0>;
461 +#define A38x_CUSTOMER_BOARD_1_MPP16_23 0x00400011
462 MPP18: gpio ? (pca9655 int?)
463 MPP19: gpio ? (clkreq?)
464 MPP20: gpio ? (sd0 detect)
466 MPP22: gpio x mikro int
467 MPP23: gpio x switch irq
468 +#define A38x_CUSTOMER_BOARD_1_MPP24_31 0x22043333
469 MPP24: ua1:rxd x mikro rx
470 MPP25: ua1:txd x mikro tx
471 MPP26: i2c1:sck x mikro sck
472 MPP27: i2c1:sda x mikro sda
474 MPP29: gpio x mikro rst
475 MPP30: ge1:txd2 ? (config)
476 MPP31: ge1:txd3 ? (config)
477 +#define A38x_CUSTOMER_BOARD_1_MPP32_39 0x44400002
478 MPP32: ge1:txctl ? (unused)
479 MPP33: gpio ? (pic_com0)
480 MPP34: gpio x rear button (pic_com1)
481 MPP35: gpio ? (pic_com2)
482 MPP36: gpio ? (unused)
486 +#define A38x_CUSTOMER_BOARD_1_MPP40_47 0x41144004
488 MPP41: gpio x switch reset
490 MPP43: spi1:cs2 x mikro cs
491 MPP44: sata3:prsnt ? (unused)
492 MPP45: ref:clk_out0 ?
493 MPP46: ref:clk_out1 x switch clk
495 +#define A38x_CUSTOMER_BOARD_1_MPP48_55 0x40333333
503 MPP55: spi1:cs1 x slic
504 +#define A38x_CUSTOMER_BOARD_1_MPP56_63 0x00004444
505 MPP56: spi1:mosi x mikro mosi
506 MPP57: spi1:sck x mikro sck
507 MPP58: spi1:miso x mikro miso
508 MPP59: spi1:cs0 x w25q32