2 * Device Tree include file for SolidRun Clearfog 88F6828 based boards
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.
49 #include "armada-388.dtsi"
50 #include "armada-38x-solidrun-microsom.dtsi"
54 /* So that mvebu u-boot can update the MAC addresses */
61 stdout-path = "serial0:115200n8";
64 reg_3p3v: regulator-3p3v {
65 compatible = "regulator-fixed";
66 regulator-name = "3P3V";
67 regulator-min-microvolt = <3300000>;
68 regulator-max-microvolt = <3300000>;
86 cd-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
88 pinctrl-0 = <µsom_sdhci_pins
89 &clearfog_sdhci_cd_pins>;
90 pinctrl-names = "default";
98 pinctrl-0 = <&mikro_uart_pins>;
99 pinctrl-names = "default";
104 /* CON3, nearest power. */
117 * The two PCIe units are accessible through
118 * the mini-PCIe connectors on the board.
121 /* Port 1, Lane 0. CON3, nearest power. */
122 reset-gpios = <&expander0 1 GPIO_ACTIVE_LOW>;
133 buffer-manager = <&bm>;
142 buffer-manager = <&bm>;
153 /* Is there anything on this? */
154 clock-frequency = <100000>;
155 pinctrl-0 = <&i2c0_pins>;
156 pinctrl-names = "default";
160 * PCA9655 GPIO expander, up to 1MHz clock.
178 expander0: gpio-expander@20 {
180 * This is how it should be:
181 * compatible = "onnn,pca9655", "nxp,pca9555";
182 * but you can't do this because of the way I2C works.
184 compatible = "nxp,pca9555";
191 gpios = <0 GPIO_ACTIVE_LOW>;
193 line-name = "pcie1.0-clkreq";
197 gpios = <3 GPIO_ACTIVE_LOW>;
199 line-name = "pcie1.0-w-disable";
203 gpios = <5 GPIO_ACTIVE_LOW>;
205 line-name = "usb3-current-limit";
209 gpios = <6 GPIO_ACTIVE_HIGH>;
211 line-name = "usb3-power";
215 gpios = <11 GPIO_ACTIVE_HIGH>;
217 line-name = "m.2 devslp";
220 /* SFP loss of signal */
222 gpios = <12 GPIO_ACTIVE_HIGH>;
224 line-name = "sfp-los";
227 /* SFP laser fault */
229 gpios = <13 GPIO_ACTIVE_HIGH>;
231 line-name = "sfp-tx-fault";
234 /* SFP transmit disable */
236 gpios = <14 GPIO_ACTIVE_HIGH>;
238 line-name = "sfp-tx-disable";
241 /* SFP module present */
243 gpios = <15 GPIO_ACTIVE_LOW>;
245 line-name = "sfp-mod-def0";
249 /* The MCP3021 is 100kHz clock only */
250 mikrobus_adc: mcp3021@4c {
251 compatible = "microchip,mcp3021";
255 /* Also something at 0x64 */
260 * Routed to SFP, mikrobus, and PCIe.
261 * SFP limits this to 100kHz, and requires an AT24C01A/02/04 with
262 * address pins tied low, which takes addresses 0x50 and 0x51.
263 * Mikrobus doesn't specify beyond an I2C bus being present.
264 * PCIe uses ARP to assign addresses, or 0x63-0x64.
266 clock-frequency = <100000>;
267 pinctrl-0 = <&clearfog_i2c1_pins>;
268 pinctrl-names = "default";
273 clearfog_i2c1_pins: i2c1-pins {
274 /* SFP, PCIe, mSATA, mikrobus */
275 marvell,pins = "mpp26", "mpp27";
276 marvell,function = "i2c1";
278 clearfog_sdhci_cd_pins: clearfog-sdhci-cd-pins {
279 marvell,pins = "mpp20";
280 marvell,function = "gpio";
282 mikro_pins: mikro-pins {
283 /* int: mpp22 rst: mpp29 */
284 marvell,pins = "mpp22", "mpp29";
285 marvell,function = "gpio";
287 mikro_spi_pins: mikro-spi-pins {
288 marvell,pins = "mpp43";
289 marvell,function = "spi1";
291 mikro_uart_pins: mikro-uart-pins {
292 marvell,pins = "mpp24", "mpp25";
293 marvell,function = "ua1";
299 * Add SPI CS pins for clearfog:
300 * CS0: W25Q32 (not populated on uSOM)
301 * CS1: PIC microcontroller (Pro models)
304 pinctrl-0 = <&spi1_pins &mikro_spi_pins>;
305 pinctrl-names = "default";