1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2018 SolidRun ltd.
4 * Based on Marvell MACCHIATOBin board
6 * Device Tree file for SolidRun's ClearFog GT 8K
9 #include "armada-8040.dtsi"
11 #include <dt-bindings/input/input.h>
12 #include <dt-bindings/gpio/gpio.h>
15 model = "SolidRun ClearFog GT 8K";
16 compatible = "solidrun,clearfog-gt-8k", "marvell,armada8040",
17 "marvell,armada-ap806-quad", "marvell,armada-ap806";
20 stdout-path = "serial0:115200n8";
24 device_type = "memory";
25 reg = <0x0 0x0 0x0 0x80000000>;
29 ethernet0 = &cp1_eth1;
30 ethernet1 = &cp0_eth0;
31 ethernet2 = &cp1_eth2;
34 v_3_3: regulator-3-3v {
35 compatible = "regulator-fixed";
36 regulator-name = "v_3_3";
37 regulator-min-microvolt = <3300000>;
38 regulator-max-microvolt = <3300000>;
43 v_5v0_usb3_hst_vbus: regulator-usb3-vbus0 {
44 compatible = "regulator-fixed";
45 gpio = <&cp0_gpio2 15 GPIO_ACTIVE_LOW>;
46 pinctrl-names = "default";
47 pinctrl-0 = <&cp0_xhci_vbus_pins>;
48 regulator-name = "v_5v0_usb3_hst_vbus";
49 regulator-min-microvolt = <5000000>;
50 regulator-max-microvolt = <5000000>;
54 usb3h0_phy: usb3_phy0 {
55 compatible = "usb-nop-xceiv";
56 vcc-supply = <&v_5v0_usb3_hst_vbus>;
59 sfp_cp0_eth0: sfp-cp0-eth0 {
60 compatible = "sff,sfp";
61 i2c-bus = <&cp0_i2c1>;
62 mod-def0-gpio = <&cp0_gpio2 17 GPIO_ACTIVE_LOW>;
63 tx-disable-gpio = <&cp1_gpio1 29 GPIO_ACTIVE_HIGH>;
64 pinctrl-names = "default";
65 pinctrl-0 = <&cp0_sfp_present_pins &cp1_sfp_tx_disable_pins>;
66 maximum-power-milliwatt = <2000>;
70 compatible = "gpio-leds";
71 pinctrl-0 = <&cp0_led0_pins
73 pinctrl-names = "default";
74 /* No designated function for these LEDs at the moment */
76 label = "clearfog-gt-8k:green:led0";
77 gpios = <&cp0_gpio2 8 GPIO_ACTIVE_LOW>;
81 label = "clearfog-gt-8k:green:led1";
82 gpios = <&cp0_gpio2 9 GPIO_ACTIVE_LOW>;
88 compatible = "gpio-keys";
89 pinctrl-0 = <&cp0_gpio_reset_pins &cp1_wps_button_pins>;
90 pinctrl-names = "default";
94 label = "Rear Button";
95 gpios = <&cp0_gpio2 7 GPIO_ACTIVE_LOW>;
102 label = "WPS Button";
103 gpios = <&cp1_gpio1 30 GPIO_ACTIVE_LOW>;
105 linux,code = <KEY_WPS_BUTTON>;
112 pinctrl-0 = <&uart0_pins>;
113 pinctrl-names = "default";
123 vqmmc-supply = <&v_3_3>;
127 clock-frequency = <100000>;
128 pinctrl-names = "default";
129 pinctrl-0 = <&cp0_i2c0_pins>;
134 clock-frequency = <100000>;
135 pinctrl-names = "default";
136 pinctrl-0 = <&cp0_i2c1_pins>;
143 * [0-31] = 0xff: Keep default CP0_shared_pins:
144 * [11] CLKOUT_MPP_11 (out)
145 * [23] LINK_RD_IN_CP2CP (in)
146 * [25] CLKOUT_MPP_25 (out)
147 * [29] AVS_FB_IN_CP2CP (in)
148 * [32, 33, 34] pci0/1/2 reset
149 * [35-38] CP0 I2C1 and I2C0
150 * [39] GPIO reset button
151 * [40,41] LED0 and LED1
152 * [43] 1512 phy reset
153 * [47] USB VBUS EN (active low)
155 * [49] SFP+ present signal
161 * [55] Micro SD card detect
165 cp0_pci0_reset_pins: pci0-reset-pins {
166 marvell,pins = "mpp32";
167 marvell,function = "gpio";
170 cp0_pci1_reset_pins: pci1-reset-pins {
171 marvell,pins = "mpp33";
172 marvell,function = "gpio";
175 cp0_pci2_reset_pins: pci2-reset-pins {
176 marvell,pins = "mpp34";
177 marvell,function = "gpio";
180 cp0_i2c1_pins: i2c1-pins {
181 marvell,pins = "mpp35", "mpp36";
182 marvell,function = "i2c1";
185 cp0_i2c0_pins: i2c0-pins {
186 marvell,pins = "mpp37", "mpp38";
187 marvell,function = "i2c0";
190 cp0_gpio_reset_pins: gpio-reset-pins {
191 marvell,pins = "mpp39";
192 marvell,function = "gpio";
195 cp0_led0_pins: led0-pins {
196 marvell,pins = "mpp40";
197 marvell,function = "gpio";
200 cp0_led1_pins: led1-pins {
201 marvell,pins = "mpp41";
202 marvell,function = "gpio";
205 cp0_copper_eth_phy_reset: copper-eth-phy-reset {
206 marvell,pins = "mpp43";
207 marvell,function = "gpio";
210 cp0_xhci_vbus_pins: xhci0-vbus-pins {
211 marvell,pins = "mpp47";
212 marvell,function = "gpio";
215 cp0_fan_pwm_pins: fan-pwm-pins {
216 marvell,pins = "mpp48";
217 marvell,function = "gpio";
220 cp0_sfp_present_pins: sfp-present-pins {
221 marvell,pins = "mpp49";
222 marvell,function = "gpio";
225 cp0_tpm_irq_pins: tpm-irq-pins {
226 marvell,pins = "mpp50";
227 marvell,function = "gpio";
230 cp0_wlan_disable_pins: wlan-disable-pins {
231 marvell,pins = "mpp51";
232 marvell,function = "gpio";
235 cp0_sdhci_pins: sdhci-pins {
236 marvell,pins = "mpp55", "mpp56", "mpp57", "mpp58", "mpp59",
238 marvell,function = "sdio";
243 pinctrl-names = "default";
244 pinctrl-0 = <&cp0_pci0_reset_pins &cp0_wlan_disable_pins>;
245 reset-gpios = <&cp0_gpio2 0 GPIO_ACTIVE_LOW>;
252 gpios = <1 GPIO_ACTIVE_HIGH>;
258 gpios = <2 GPIO_ACTIVE_LOW>;
264 gpios = <19 GPIO_ACTIVE_LOW>;
270 gpios = <21 GPIO_ACTIVE_LOW>;
282 phy-mode = "10gbase-kr";
283 managed = "in-band-status";
284 phys = <&cp0_comphy2 0>;
285 sfp = <&sfp_cp0_eth0>;
291 pinctrl-names = "default";
292 pinctrl-0 = <&cp0_sdhci_pins>;
294 vqmmc-supply = <&v_3_3>;
306 * [7] CP1 SPI0 CSn1 (FXS)
307 * [8] CP1 SPI0 CSn0 (TPM)
308 * [9.11]CP1 SPI0 MOSI/MISO/CLK
309 * [13] CP1 SPI1 MISO (TDM and SPI ROM shared)
310 * [14] CP1 SPI1 CS0n (64Mb SPI ROM)
311 * [15] CP1 SPI1 MOSI (TDM and SPI ROM shared)
312 * [16] CP1 SPI1 CLK (TDM and SPI ROM shared)
313 * [24] Topaz switch reset
317 * [29] CP0 10G SFP TX Disable
319 * [31] Front panel button
322 cp1_spi1_pins: spi1-pins {
323 marvell,pins = "mpp13", "mpp14", "mpp15", "mpp16";
324 marvell,function = "spi1";
327 cp1_switch_reset_pins: switch-reset-pins {
328 marvell,pins = "mpp24";
329 marvell,function = "gpio";
332 cp1_ge_mdio_pins: ge-mdio-pins {
333 marvell,pins = "mpp27", "mpp28";
334 marvell,function = "ge";
337 cp1_sfp_tx_disable_pins: sfp-tx-disable-pins {
338 marvell,pins = "mpp29";
339 marvell,function = "gpio";
342 cp1_wps_button_pins: wps-button-pins {
343 marvell,pins = "mpp30";
344 marvell,function = "gpio";
349 pinctrl-0 = <&cp0_pci1_reset_pins>;
354 pinctrl-names = "default";
355 pinctrl-0 = <&cp1_ge_mdio_pins>;
358 ge_phy: ethernet-phy@0 {
360 * LED1 - on: link, blink: activity
362 marvell,reg-init = <3 16 0 0x1017>;
364 pinctrl-names = "default";
365 pinctrl-0 = <&cp0_copper_eth_phy_reset>;
366 reset-gpios = <&cp0_gpio2 11 GPIO_ACTIVE_LOW>;
367 reset-assert-us = <10000>;
371 compatible = "marvell,mv88e6085";
373 pinctrl-names = "default";
374 pinctrl-0 = <&cp1_switch_reset_pins>;
375 reset-gpios = <&cp1_gpio1 24 GPIO_ACTIVE_LOW>;
378 #address-cells = <1>;
384 phy-handle = <&switch0phy0>;
390 phy-handle = <&switch0phy1>;
396 phy-handle = <&switch0phy2>;
402 phy-handle = <&switch0phy3>;
408 ethernet = <&cp1_eth2>;
413 #address-cells = <1>;
416 switch0phy0: switch0phy0@11 {
420 switch0phy1: switch0phy1@12 {
424 switch0phy2: switch0phy2@13 {
428 switch0phy3: switch0phy3@14 {
444 phys = <&cp1_comphy3 1>;
450 phy-mode = "2500base-x";
451 phys = <&cp1_comphy5 2>;
459 pinctrl-names = "default";
460 pinctrl-0 = <&cp1_spi1_pins>;
464 compatible = "st,w25q32";
465 spi-max-frequency = <50000000>;
471 usb-phy = <&usb3h0_phy>;