1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2016 Marvell Technology Group Ltd.
4 * Copyright (C) 2020 Sartura Ltd.
6 * Device Tree file for IEI Puzzle-M801
9 #include "armada-8040.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/leds/common.h>
15 model = "IEI-Puzzle-M801";
16 compatible = "marvell,armada8040", "marvell,armada-ap806-quad", "marvell,armada-ap806";
19 ethernet0 = &cp0_eth0;
20 ethernet1 = &cp1_eth0;
21 ethernet2 = &cp0_eth1;
22 ethernet3 = &cp0_eth2;
23 ethernet4 = &cp1_eth1;
24 ethernet5 = &cp1_eth2;
28 stdout-path = "serial0:115200n8";
32 device_type = "memory";
33 reg = <0x0 0x0 0x0 0x80000000>;
36 /* Regulator labels correspond with schematics */
37 v_3_3: regulator-3-3v {
38 compatible = "regulator-fixed";
39 regulator-name = "v_3_3";
40 regulator-min-microvolt = <3300000>;
41 regulator-max-microvolt = <3300000>;
46 v_5v0_usb3_hst_vbus: regulator-usb3-vbus0 {
47 compatible = "regulator-fixed";
49 gpio = <&cp0_gpio2 15 GPIO_ACTIVE_HIGH>;
50 pinctrl-names = "default";
51 pinctrl-0 = <&cp0_xhci_vbus_pins>;
52 regulator-name = "v_5v0_usb3_hst_vbus";
53 regulator-min-microvolt = <5000000>;
54 regulator-max-microvolt = <5000000>;
58 v_vddo_h: regulator-1-8v {
59 compatible = "regulator-fixed";
60 regulator-name = "v_vddo_h";
61 regulator-min-microvolt = <1800000>;
62 regulator-max-microvolt = <1800000>;
67 sfp_cp0_eth0: sfp-cp0-eth0 {
68 compatible = "sff,sfp";
69 i2c-bus = <&sfpplus0_i2c>;
70 los-gpio = <&sfpplus_gpio 11 GPIO_ACTIVE_HIGH>;
71 mod-def0-gpio = <&sfpplus_gpio 10 GPIO_ACTIVE_LOW>;
72 tx-disable-gpio = <&sfpplus_gpio 9 GPIO_ACTIVE_HIGH>;
73 tx-fault-gpio = <&sfpplus_gpio 8 GPIO_ACTIVE_HIGH>;
74 maximum-power-milliwatt = <3000>;
77 sfp_cp1_eth0: sfp-cp1-eth0 {
78 compatible = "sff,sfp";
79 i2c-bus = <&sfpplus1_i2c>;
80 los-gpio = <&sfpplus_gpio 3 GPIO_ACTIVE_HIGH>;
81 mod-def0-gpio = <&sfpplus_gpio 2 GPIO_ACTIVE_LOW>;
82 tx-disable-gpio = <&sfpplus_gpio 1 GPIO_ACTIVE_HIGH>;
83 tx-fault-gpio = <&sfpplus_gpio 0 GPIO_ACTIVE_HIGH>;
84 maximum-power-milliwatt = <3000>;
88 compatible = "gpio-leds";
90 pinctrl-0 = <&cp0_sfpplus_led_pins &cp1_sfpplus_led_pins>;
91 pinctrl-names = "default";
94 /* SFP+ port 2: Activity */
95 function = LED_FUNCTION_LAN;
96 function-enumerator = <0>;
97 gpios = <&cp1_gpio1 6 GPIO_ACTIVE_LOW>;
101 /* SFP+ port 1: Activity */
102 function = LED_FUNCTION_LAN;
103 function-enumerator = <1>;
104 gpios = <&cp1_gpio1 14 GPIO_ACTIVE_LOW>;
108 /* SFP+ port 2: 10 Gbps indicator */
109 function = LED_FUNCTION_LAN;
110 function-enumerator = <2>;
111 gpios = <&cp1_gpio1 7 GPIO_ACTIVE_LOW>;
115 /* SFP+ port 2: 1 Gbps indicator */
116 function = LED_FUNCTION_LAN;
117 function-enumerator = <3>;
118 gpios = <&cp1_gpio1 8 GPIO_ACTIVE_LOW>;
122 /* SFP+ port 1: 10 Gbps indicator */
123 function = LED_FUNCTION_LAN;
124 function-enumerator = <4>;
125 gpios = <&cp1_gpio1 10 GPIO_ACTIVE_LOW>;
129 /* SFP+ port 1: 1 Gbps indicator */
130 function = LED_FUNCTION_LAN;
131 function-enumerator = <5>;
132 gpios = <&cp1_gpio1 31 GPIO_ACTIVE_LOW>;
136 function = LED_FUNCTION_DISK;
137 linux,default-trigger = "disk-activity";
138 gpios = <&cp0_gpio2 22 GPIO_ACTIVE_HIGH>;
147 * Not stable in HS modes - phy needs "more calibration", so add
148 * the "slow-mode" and disable SDR104, SDR50 and DDR50 modes.
150 marvell,xenon-phy-slow-mode;
156 vqmmc-supply = <&v_vddo_h>;
161 cpu_active: cpu-active {
162 temperature = <44000>;
169 trip = <&cpu_active>;
170 cooling-device = <&chassis_fan_group0 64 THERMAL_NO_LIMIT>,
171 <&chassis_fan_group1 64 THERMAL_NO_LIMIT>;
177 clock-frequency = <100000>;
181 compatible = "epson,rx8010";
189 #address-cells = <0x1>;
191 compatible = "jedec,spi-nor";
193 spi-max-frequency = <20000000>;
196 reg = <0x00000000 0x001f0000>;
198 partition@u-boot-env {
199 label = "u-boot-env";
200 reg = <0x001f0000 0x00010000>;
204 reg = <0x00200000 0x03f00000>;
208 reg = <0x04100000 0x03f00000>;
215 pinctrl-0 = <&uart0_pins>;
216 pinctrl-names = "default";
221 /* IEI WT61P803 PUZZLE MCU Controller */
223 compatible = "iei,wt61p803-puzzle";
224 current-speed = <115200>;
228 compatible = "iei,wt61p803-puzzle-leds";
229 #address-cells = <1>;
234 function = LED_FUNCTION_POWER;
235 color = <LED_COLOR_ID_BLUE>;
240 compatible = "iei,wt61p803-puzzle-hwmon";
241 #address-cells = <1>;
244 chassis_fan_group0:fan-group@0 {
245 #cooling-cells = <2>;
247 cooling-levels = <64 102 170 230 250>;
250 chassis_fan_group1:fan-group@1 {
251 #cooling-cells = <2>;
253 cooling-levels = <64 102 170 230 250>;
264 clock-frequency = <100000>;
265 pinctrl-names = "default";
266 pinctrl-0 = <&cp0_i2c0_pins>;
269 sfpplus_gpio: gpio@21 {
270 compatible = "nxp,pca9555";
277 compatible = "atmel,24c04";
283 clock-frequency = <100000>;
284 pinctrl-names = "default";
285 pinctrl-0 = <&cp0_i2c1_pins>;
289 compatible = "nxp,pca9544";
290 #address-cells = <1>;
294 sfpplus0_i2c: i2c@0 {
295 #address-cells = <1>;
300 sfpplus1_i2c: i2c@1 {
301 #address-cells = <1>;
309 pinctrl-names = "default";
310 pinctrl-0 = <&cp0_uart1_pins>;
315 #address-cells = <1>;
320 ge_phy2: ethernet-phy@0 {
324 ge_phy3: ethernet-phy@1 {
330 pinctrl-names = "default";
331 pinctrl-0 = <&cp0_pcie_pins>;
334 reset-gpios = <&cp0_gpio2 20 GPIO_ACTIVE_LOW>;
335 ranges = <0x82000000 0x0 0xc0000000 0x0 0xc0000000 0x0 0x20000000>;
336 phys = <&cp0_comphy0 0>;
337 phy-names = "cp0-pcie0-x1-phy";
342 cp0_ge_mdio_pins: ge-mdio-pins {
343 marvell,pins = "mpp32", "mpp34";
344 marvell,function = "ge";
346 cp0_i2c1_pins: i2c1-pins {
347 marvell,pins = "mpp35", "mpp36";
348 marvell,function = "i2c1";
350 cp0_i2c0_pins: i2c0-pins {
351 marvell,pins = "mpp37", "mpp38";
352 marvell,function = "i2c0";
354 cp0_uart1_pins: uart1-pins {
355 marvell,pins = "mpp40", "mpp41";
356 marvell,function = "uart1";
358 cp0_xhci_vbus_pins: xhci0-vbus-pins {
359 marvell,pins = "mpp47";
360 marvell,function = "gpio";
362 cp0_pcie_pins: pcie-pins {
363 marvell,pins = "mpp52";
364 marvell,function = "gpio";
366 cp0_sdhci_pins: sdhci-pins {
367 marvell,pins = "mpp55", "mpp56", "mpp57", "mpp58", "mpp59",
369 marvell,function = "sdio";
371 cp0_sfpplus_led_pins: sfpplus-led-pins {
372 marvell,pins = "mpp54";
373 marvell,function = "gpio";
383 phy-mode = "10gbase-r";
384 phys = <&cp0_comphy4 0>;
385 local-mac-address = [ae 00 00 00 ff 00];
386 sfp = <&sfp_cp0_eth0>;
387 managed = "in-band-status";
394 local-mac-address = [ae 00 00 00 ff 01];
395 phys = <&cp0_comphy3 1>;
401 phys = <&cp0_comphy1 2>;
402 local-mac-address = [ae 00 00 00 ff 02];
410 phys = <&cp0_comphy2 0>;
411 phy-names = "cp0-sata0-0-phy";
415 phys = <&cp0_comphy5 1>;
416 phy-names = "cp0-sata0-1-phy";
423 pinctrl-names = "default";
424 pinctrl-0 = <&cp0_sdhci_pins>;
426 vqmmc-supply = <&v_3_3>;
438 clock-frequency = <100000>;
443 clock-frequency = <100000>;
457 phy-mode = "10gbase-r";
458 phys = <&cp1_comphy4 0>;
459 local-mac-address = [ae 00 00 00 ff 03];
460 sfp = <&sfp_cp1_eth0>;
461 managed = "in-band-status";
468 local-mac-address = [ae 00 00 00 ff 04];
469 phys = <&cp1_comphy3 1>;
475 local-mac-address = [ae 00 00 00 ff 05];
476 phys = <&cp1_comphy5 2>;
481 cp1_sfpplus_led_pins: sfpplus-led-pins {
482 marvell,pins = "mpp6", "mpp7", "mpp8", "mpp10", "mpp14", "mpp31";
483 marvell,function = "gpio";
492 cp1_usbh0_con: connector {
493 compatible = "usb-a-connector";
494 phy-supply = <&v_5v0_usb3_hst_vbus>;
499 phys = <&cp1_comphy2 0>;
500 phy-names = "cp1-usb3h0-comphy";
505 #address-cells = <1>;
510 ge_phy4: ethernet-phy@1 {
513 ge_phy5: ethernet-phy@0 {
520 phys = <&cp1_comphy0 0>, <&cp1_comphy1 0>;
521 phy-names = "cp1-pcie0-x2-lane0-phy", "cp1-pcie0-x2-lane1-phy";