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;
35 compatible = "pwm-fan";
37 cooling-levels = <0 51 102 153 204 255>;
39 pinctrl-names = "default";
40 pinctrl-0 = <&cp0_fan_pwm_pins>;
41 pwms = <&cp0_gpio2 16 40000>;
44 v_3_3: regulator-3-3v {
45 compatible = "regulator-fixed";
46 regulator-name = "v_3_3";
47 regulator-min-microvolt = <3300000>;
48 regulator-max-microvolt = <3300000>;
53 v_5v0_usb3_hst_vbus: regulator-usb3-vbus0 {
54 compatible = "regulator-fixed";
55 gpio = <&cp0_gpio2 15 GPIO_ACTIVE_LOW>;
56 pinctrl-names = "default";
57 pinctrl-0 = <&cp0_xhci_vbus_pins>;
58 regulator-name = "v_5v0_usb3_hst_vbus";
59 regulator-min-microvolt = <5000000>;
60 regulator-max-microvolt = <5000000>;
64 sfp_cp0_eth0: sfp-cp0-eth0 {
65 compatible = "sff,sfp";
66 i2c-bus = <&cp0_i2c1>;
67 mod-def0-gpios = <&cp0_gpio2 17 GPIO_ACTIVE_LOW>;
68 tx-disable-gpios = <&cp1_gpio1 29 GPIO_ACTIVE_HIGH>;
69 pinctrl-names = "default";
70 pinctrl-0 = <&cp0_sfp_present_pins &cp1_sfp_tx_disable_pins>;
71 maximum-power-milliwatt = <2000>;
75 compatible = "gpio-leds";
76 pinctrl-0 = <&cp0_led0_pins
78 pinctrl-names = "default";
79 /* No designated function for these LEDs at the moment */
81 label = "clearfog-gt-8k:green:led0";
82 gpios = <&cp0_gpio2 8 GPIO_ACTIVE_LOW>;
86 label = "clearfog-gt-8k:green:led1";
87 gpios = <&cp0_gpio2 9 GPIO_ACTIVE_LOW>;
93 compatible = "gpio-keys";
94 pinctrl-0 = <&cp0_gpio_reset_pins &cp1_wps_button_pins>;
95 pinctrl-names = "default";
99 label = "Rear Button";
100 gpios = <&cp0_gpio2 7 GPIO_ACTIVE_LOW>;
102 linux,code = <BTN_0>;
107 label = "WPS Button";
108 gpios = <&cp1_gpio1 30 GPIO_ACTIVE_LOW>;
110 linux,code = <KEY_WPS_BUTTON>;
116 polling-delay = <1000>; /* milliseconds */
118 ap_active: trip-active {
119 temperature = <40000>; /* millicelsius */
120 hysteresis = <4000>; /* millicelsius */
127 cooling-device = <&fan THERMAL_NO_LIMIT 4>;
131 cooling-device = <&fan 4 5>;
137 polling-delay = <1000>; /* milliseconds */
139 cp0_active0: trip-active0 {
140 temperature = <40000>; /* millicelsius */
141 hysteresis = <2500>; /* millicelsius */
144 cp0_active1: trip-active1 {
145 temperature = <45000>; /* millicelsius */
146 hysteresis = <2500>; /* millicelsius */
149 cp0_active2: trip-active2 {
150 temperature = <50000>; /* millicelsius */
151 hysteresis = <2500>; /* millicelsius */
154 cp0_active3: trip-active3 {
155 temperature = <60000>; /* millicelsius */
156 hysteresis = <2500>; /* millicelsius */
162 trip = <&cp0_active0>;
163 cooling-device = <&fan 0 1>;
166 trip = <&cp0_active1>;
167 cooling-device = <&fan 1 2>;
170 trip = <&cp0_active2>;
171 cooling-device = <&fan 2 3>;
174 trip = <&cp0_active3>;
175 cooling-device = <&fan 3 4>;
179 cooling-device = <&fan 4 5>;
185 polling-delay = <1000>; /* milliseconds */
187 cp1_active0: trip-active0 {
188 temperature = <40000>; /* millicelsius */
189 hysteresis = <2500>; /* millicelsius */
192 cp1_active1: trip-active1 {
193 temperature = <45000>; /* millicelsius */
194 hysteresis = <2500>; /* millicelsius */
197 cp1_active2: trip-active2 {
198 temperature = <50000>; /* millicelsius */
199 hysteresis = <2500>; /* millicelsius */
202 cp1_active3: trip-active3 {
203 temperature = <60000>; /* millicelsius */
204 hysteresis = <2500>; /* millicelsius */
210 trip = <&cp1_active0>;
211 cooling-device = <&fan 0 1>;
214 trip = <&cp1_active1>;
215 cooling-device = <&fan 1 2>;
218 trip = <&cp1_active2>;
219 cooling-device = <&fan 2 3>;
222 trip = <&cp1_active3>;
223 cooling-device = <&fan 3 4>;
227 cooling-device = <&fan 4 5>;
234 pinctrl-0 = <&uart0_pins>;
235 pinctrl-names = "default";
245 vqmmc-supply = <&v_3_3>;
249 clock-frequency = <100000>;
250 pinctrl-names = "default";
251 pinctrl-0 = <&cp0_i2c0_pins>;
256 clock-frequency = <100000>;
257 pinctrl-names = "default";
258 pinctrl-0 = <&cp0_i2c1_pins>;
265 * [0-31] = 0xff: Keep default CP0_shared_pins:
266 * [11] CLKOUT_MPP_11 (out)
267 * [23] LINK_RD_IN_CP2CP (in)
268 * [25] CLKOUT_MPP_25 (out)
269 * [29] AVS_FB_IN_CP2CP (in)
270 * [32, 33, 34] pci0/1/2 reset
271 * [35-38] CP0 I2C1 and I2C0
272 * [39] GPIO reset button
273 * [40,41] LED0 and LED1
274 * [43] 1512 phy reset
275 * [47] USB VBUS EN (active low)
277 * [49] SFP+ present signal
283 * [55] Micro SD card detect
287 cp0_pci0_reset_pins: pci0-reset-pins {
288 marvell,pins = "mpp32";
289 marvell,function = "gpio";
292 cp0_pci1_reset_pins: pci1-reset-pins {
293 marvell,pins = "mpp33";
294 marvell,function = "gpio";
297 cp0_pci2_reset_pins: pci2-reset-pins {
298 marvell,pins = "mpp34";
299 marvell,function = "gpio";
302 cp0_i2c1_pins: i2c1-pins {
303 marvell,pins = "mpp35", "mpp36";
304 marvell,function = "i2c1";
307 cp0_i2c0_pins: i2c0-pins {
308 marvell,pins = "mpp37", "mpp38";
309 marvell,function = "i2c0";
312 cp0_gpio_reset_pins: gpio-reset-pins {
313 marvell,pins = "mpp39";
314 marvell,function = "gpio";
317 cp0_led0_pins: led0-pins {
318 marvell,pins = "mpp40";
319 marvell,function = "gpio";
322 cp0_led1_pins: led1-pins {
323 marvell,pins = "mpp41";
324 marvell,function = "gpio";
327 cp0_copper_eth_phy_reset: copper-eth-phy-reset {
328 marvell,pins = "mpp43";
329 marvell,function = "gpio";
332 cp0_xhci_vbus_pins: xhci0-vbus-pins {
333 marvell,pins = "mpp47";
334 marvell,function = "gpio";
337 cp0_fan_pwm_pins: fan-pwm-pins {
338 marvell,pins = "mpp48";
339 marvell,function = "gpio";
342 cp0_sfp_present_pins: sfp-present-pins {
343 marvell,pins = "mpp49";
344 marvell,function = "gpio";
347 cp0_tpm_irq_pins: tpm-irq-pins {
348 marvell,pins = "mpp50";
349 marvell,function = "gpio";
352 cp0_wlan_disable_pins: wlan-disable-pins {
353 marvell,pins = "mpp51";
354 marvell,function = "gpio";
357 cp0_sdhci_pins: sdhci-pins {
358 marvell,pins = "mpp55", "mpp56", "mpp57", "mpp58", "mpp59",
360 marvell,function = "sdio";
365 pinctrl-names = "default";
366 pinctrl-0 = <&cp0_pci0_reset_pins &cp0_wlan_disable_pins>;
367 reset-gpios = <&cp0_gpio2 0 GPIO_ACTIVE_LOW>;
368 phys = <&cp0_comphy0 0>;
369 phy-names = "cp0-pcie0-x1-phy";
376 gpios = <1 GPIO_ACTIVE_HIGH>;
382 gpios = <2 GPIO_ACTIVE_LOW>;
388 gpios = <19 GPIO_ACTIVE_LOW>;
394 gpios = <21 GPIO_ACTIVE_LOW>;
406 phy-mode = "10gbase-r";
407 managed = "in-band-status";
408 phys = <&cp0_comphy2 0>;
409 sfp = <&sfp_cp0_eth0>;
415 pinctrl-names = "default";
416 pinctrl-0 = <&cp0_sdhci_pins>;
418 vqmmc-supply = <&v_3_3>;
430 * [7] CP1 SPI0 CSn1 (FXS)
431 * [8] CP1 SPI0 CSn0 (TPM)
432 * [9.11]CP1 SPI0 MOSI/MISO/CLK
433 * [13] CP1 SPI1 MISO (TDM and SPI ROM shared)
434 * [14] CP1 SPI1 CS0n (64Mb SPI ROM)
435 * [15] CP1 SPI1 MOSI (TDM and SPI ROM shared)
436 * [16] CP1 SPI1 CLK (TDM and SPI ROM shared)
437 * [24] Topaz switch reset
441 * [29] CP0 10G SFP TX Disable
443 * [31] Front panel button
446 cp1_spi1_pins: spi1-pins {
447 marvell,pins = "mpp13", "mpp14", "mpp15", "mpp16";
448 marvell,function = "spi1";
451 cp1_switch_reset_pins: switch-reset-pins {
452 marvell,pins = "mpp24";
453 marvell,function = "gpio";
456 cp1_ge_mdio_pins: ge-mdio-pins {
457 marvell,pins = "mpp27", "mpp28";
458 marvell,function = "ge";
461 cp1_sfp_tx_disable_pins: sfp-tx-disable-pins {
462 marvell,pins = "mpp29";
463 marvell,function = "gpio";
466 cp1_wps_button_pins: wps-button-pins {
467 marvell,pins = "mpp30";
468 marvell,function = "gpio";
473 pinctrl-0 = <&cp0_pci1_reset_pins>;
477 phys = <&cp1_comphy0 1>;
478 phy-names = "cp1-sata0-1-phy";
483 pinctrl-names = "default";
484 pinctrl-0 = <&cp1_ge_mdio_pins>;
487 ge_phy: ethernet-phy@0 {
489 * LED1 - on: link, blink: activity
491 marvell,reg-init = <3 16 0 0x1017>;
493 pinctrl-names = "default";
494 pinctrl-0 = <&cp0_copper_eth_phy_reset>;
495 reset-gpios = <&cp0_gpio2 11 GPIO_ACTIVE_LOW>;
496 reset-assert-us = <10000>;
497 reset-deassert-us = <10000>;
501 compatible = "marvell,mv88e6085";
503 pinctrl-names = "default";
504 pinctrl-0 = <&cp1_switch_reset_pins>;
505 reset-gpios = <&cp1_gpio1 24 GPIO_ACTIVE_LOW>;
508 #address-cells = <1>;
514 phy-handle = <&switch0phy0>;
520 phy-handle = <&switch0phy1>;
526 phy-handle = <&switch0phy2>;
532 phy-handle = <&switch0phy3>;
538 ethernet = <&cp1_eth2>;
539 phy-mode = "2500base-x";
540 managed = "in-band-status";
545 #address-cells = <1>;
548 switch0phy0: switch0phy0@11 {
552 switch0phy1: switch0phy1@12 {
556 switch0phy2: switch0phy2@13 {
560 switch0phy3: switch0phy3@14 {
576 phys = <&cp1_comphy3 1>;
582 phy-mode = "2500base-x";
583 phys = <&cp1_comphy5 2>;
584 managed = "in-band-status";
588 pinctrl-names = "default";
589 pinctrl-0 = <&cp1_spi1_pins>;
593 compatible = "st,w25q32";
594 spi-max-frequency = <50000000>;
600 cp1_usbh0_con: connector {
601 compatible = "usb-a-connector";
602 phy-supply = <&v_5v0_usb3_hst_vbus>;
607 phys = <&cp1_comphy2 0>;
608 phy-names = "cp1-usb3h0-comphy";