1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
3 * Copyright (C) 2019 Marvell International Ltd.
5 * Device tree for the CN9132-DB board.
10 #include <dt-bindings/gpio/gpio.h>
13 model = "iEi Puzzle-M902";
14 compatible = "iei,puzzle-m902",
15 "marvell,armada-ap807-quad", "marvell,armada-ap807";
18 stdout-path = "serial0:115200n8";
30 ethernet0 = &cp0_eth0;
31 ethernet1 = &cp0_eth1;
32 ethernet2 = &cp0_eth2;
33 ethernet3 = &cp1_eth0;
34 ethernet4 = &cp1_eth1;
35 ethernet5 = &cp1_eth2;
36 ethernet6 = &cp2_eth0;
37 ethernet7 = &cp2_eth1;
38 ethernet8 = &cp2_eth2;
41 led-boot = &led_power;
42 led-failsafe = &led_info;
43 led-running = &led_power;
44 led-upgrade = &led_info;
48 device_type = "memory";
49 reg = <0x0 0x0 0x0 0x80000000>;
52 cp2_reg_usb3_vbus0: cp2_usb3_vbus@0 {
53 compatible = "regulator-fixed";
54 regulator-name = "cp2-xhci0-vbus";
55 regulator-min-microvolt = <5000000>;
56 regulator-max-microvolt = <5000000>;
58 gpio = <&cp2_gpio1 2 GPIO_ACTIVE_HIGH>;
61 cp2_usb3_0_phy0: cp2_usb3_phy0 {
62 compatible = "usb-nop-xceiv";
63 vcc-supply = <&cp2_reg_usb3_vbus0>;
66 cp2_reg_usb3_vbus1: cp2_usb3_vbus@1 {
67 compatible = "regulator-fixed";
68 regulator-name = "cp2-xhci1-vbus";
69 regulator-min-microvolt = <5000000>;
70 regulator-max-microvolt = <5000000>;
72 gpio = <&cp2_gpio1 3 GPIO_ACTIVE_HIGH>;
75 cp2_usb3_0_phy1: cp2_usb3_phy1 {
76 compatible = "usb-nop-xceiv";
77 vcc-supply = <&cp2_reg_usb3_vbus1>;
80 cp2_sfp_eth0: sfp-eth0 {
81 compatible = "sff,sfp";
82 i2c-bus = <&cp2_sfpp0_i2c>;
83 los-gpio = <&cp2_module_expander1 11 GPIO_ACTIVE_HIGH>;
84 mod-def0-gpio = <&cp2_module_expander1 10 GPIO_ACTIVE_LOW>;
85 tx-disable-gpio = <&cp2_module_expander1 9 GPIO_ACTIVE_HIGH>;
86 tx-fault-gpio = <&cp2_module_expander1 8 GPIO_ACTIVE_HIGH>;
99 compatible = "iei,wt61p803-puzzle";
100 #address-cells = <1>;
102 current-speed = <115200>;
107 compatible = "iei,wt61p803-puzzle-leds";
108 #address-cells = <1>;
114 label = "white:network";
120 label = "green:cloud";
126 label = "orange:info";
132 label = "yellow:power";
134 default-state = "on";
139 compatible = "iei,wt61p803-puzzle-hwmon";
140 #address-cells = <1>;
143 chassis_fan_group0: fan-group@0 {
144 #cooling-cells = <2>;
146 cooling-levels = <64 102 170 230 250>;
154 cpu_active: cpu-active {
155 temperature = <44000>;
162 trip = <&cpu_active>;
163 cooling-device = <&chassis_fan_group0 64 THERMAL_NO_LIMIT>;
168 /* on-board eMMC - U9 */
170 pinctrl-names = "default";
183 cp0_nbaset_phy0: ethernet-phy@0 {
184 compatible = "ethernet-phy-ieee802.3-c45";
187 cp0_nbaset_phy1: ethernet-phy@1 {
188 compatible = "ethernet-phy-ieee802.3-c45";
191 cp0_nbaset_phy2: ethernet-phy@2 {
192 compatible = "ethernet-phy-ieee802.3-c45";
201 /* SLM-1521-V2, CON9 */
204 phy-mode = "10gbase-kr";
205 phys = <&cp0_comphy2 0>;
206 managed = "in-band-status";
211 phy-mode = "2500base-x";
212 phys = <&cp0_comphy4 1>;
213 managed = "in-band-status";
218 phy-mode = "2500base-x";
219 phys = <&cp0_comphy1 2>;
220 managed = "in-band-status";
232 pinctrl-names = "default";
233 pinctrl-0 = <&cp0_i2c0_pins>;
235 clock-frequency = <100000>;
237 compatible = "epson,rx8130";
244 clock-frequency = <100000>;
247 /* SLM-1521-V2, CON6 */
252 phys = <&cp0_comphy0 1>;
260 phys = <&cp0_comphy5 2>;
265 pinctrl-names = "default";
266 pinctrl-0 = <&cp0_spi0_pins>;
267 reg = <0x700680 0x50>, /* control */
268 <0x2000000 0x1000000>; /* CS0 */
271 #address-cells = <0x1>;
273 compatible = "jedec,spi-nor";
275 spi-max-frequency = <40000000>;
277 compatible = "fixed-partitions";
278 #address-cells = <1>;
282 reg = <0x0 0x1f0000>;
285 label = "U-Boot ENV Factory";
286 reg = <0x1f0000 0x10000>;
290 reg = <0x200000 0x1f0000>;
293 label = "U-Boot ENV";
294 reg = <0x3f0000 0x10000>;
301 cp0_pinctrl: pinctrl {
302 compatible = "marvell,cp115-standalone-pinctrl";
303 cp0_i2c0_pins: cp0-i2c-pins-0 {
304 marvell,pins = "mpp37", "mpp38";
305 marvell,function = "i2c0";
307 cp0_i2c1_pins: cp0-i2c-pins-1 {
308 marvell,pins = "mpp35", "mpp36";
309 marvell,function = "i2c1";
311 cp0_ge1_rgmii_pins: cp0-ge-rgmii-pins-0 {
312 marvell,pins = "mpp0", "mpp1", "mpp2",
313 "mpp3", "mpp4", "mpp5",
314 "mpp6", "mpp7", "mpp8",
315 "mpp9", "mpp10", "mpp11";
316 marvell,function = "ge0";
318 cp0_ge2_rgmii_pins: cp0-ge-rgmii-pins-1 {
319 marvell,pins = "mpp44", "mpp45", "mpp46",
320 "mpp47", "mpp48", "mpp49",
321 "mpp50", "mpp51", "mpp52",
322 "mpp53", "mpp54", "mpp55";
323 marvell,function = "ge1";
325 cp0_spi0_pins: cp0-spi-pins-0 {
326 marvell,pins = "mpp13", "mpp14", "mpp15", "mpp16";
327 marvell,function = "spi1";
334 phys = <&cp0_comphy3 1>;
339 * Instantiate the first connected CP115
342 #define CP11X_NAME cp1
343 #define CP11X_BASE f4000000
344 #define CP11X_PCIEx_MEM_BASE(iface) (0xe2000000 + (iface * 0x1000000))
345 #define CP11X_PCIEx_MEM_SIZE(iface) 0xf00000
346 #define CP11X_PCIE0_BASE f4600000
347 #define CP11X_PCIE1_BASE f4620000
348 #define CP11X_PCIE2_BASE f4640000
350 #include "armada-cp115.dtsi"
354 #undef CP11X_PCIEx_MEM_BASE
355 #undef CP11X_PCIEx_MEM_SIZE
356 #undef CP11X_PCIE0_BASE
357 #undef CP11X_PCIE1_BASE
358 #undef CP11X_PCIE2_BASE
366 cp1_nbaset_phy0: ethernet-phy@3 {
367 compatible = "ethernet-phy-ieee802.3-c45";
370 cp1_nbaset_phy1: ethernet-phy@4 {
371 compatible = "ethernet-phy-ieee802.3-c45";
374 cp1_nbaset_phy2: ethernet-phy@5 {
375 compatible = "ethernet-phy-ieee802.3-c45";
387 phy-mode = "10gbase-kr";
388 phys = <&cp1_comphy2 0>;
389 managed = "in-band-status";
394 phy-mode = "2500base-x";
395 phys = <&cp1_comphy4 1>;
396 managed = "in-band-status";
401 phy-mode = "2500base-x";
402 phys = <&cp1_comphy1 2>;
403 managed = "in-band-status";
416 pinctrl-names = "default";
417 pinctrl-0 = <&cp1_i2c0_pins>;
418 clock-frequency = <100000>;
422 cp1_pinctrl: pinctrl {
423 compatible = "marvell,cp115-standalone-pinctrl";
424 cp1_i2c0_pins: cp1-i2c-pins-0 {
425 marvell,pins = "mpp37", "mpp38";
426 marvell,function = "i2c0";
428 cp1_spi0_pins: cp1-spi-pins-0 {
429 marvell,pins = "mpp13", "mpp14", "mpp15", "mpp16";
430 marvell,function = "spi1";
432 cp1_xhci0_vbus_pins: cp1-xhci0-vbus-pins {
433 marvell,pins = "mpp3";
434 marvell,function = "gpio";
440 * Instantiate the second connected CP115
443 #define CP11X_NAME cp2
444 #define CP11X_BASE f6000000
445 #define CP11X_PCIEx_MEM_BASE(iface) (0xe5000000 + (iface * 0x1000000))
446 #define CP11X_PCIEx_MEM_SIZE(iface) 0xf00000
447 #define CP11X_PCIE0_BASE f6600000
448 #define CP11X_PCIE1_BASE f6620000
449 #define CP11X_PCIE2_BASE f6640000
451 #include "armada-cp115.dtsi"
455 #undef CP11X_PCIEx_MEM_BASE
456 #undef CP11X_PCIEx_MEM_SIZE
457 #undef CP11X_PCIE0_BASE
458 #undef CP11X_PCIE1_BASE
459 #undef CP11X_PCIE2_BASE
471 cp2_nbaset_phy0: ethernet-phy@6 {
472 compatible = "ethernet-phy-ieee802.3-c45";
475 cp2_nbaset_phy1: ethernet-phy@7 {
476 compatible = "ethernet-phy-ieee802.3-c45";
479 cp2_nbaset_phy2: ethernet-phy@8 {
480 compatible = "ethernet-phy-ieee802.3-c45";
485 /* SLM-1521-V2, CON9 */
488 phy-mode = "10gbase-kr";
489 phys = <&cp2_comphy2 0>;
490 managed = "in-band-status";
495 phy-mode = "2500base-x";
496 phys = <&cp2_comphy4 1>;
497 managed = "in-band-status";
502 phy-mode = "2500base-x";
503 phys = <&cp2_comphy1 2>;
504 managed = "in-band-status";
516 clock-frequency = <100000>;
517 /* SLM-1521-V2 - U3 */
519 compatible = "nxp,pca9544";
520 #address-cells = <1>;
523 cp2_sfpp0_i2c: i2c@0 {
524 #address-cells = <1>;
530 #address-cells = <1>;
534 cp2_module_expander1: pca9555@21 {
535 compatible = "nxp,pca9555";
536 pinctrl-names = "default";
546 cp2_pinctrl: pinctrl {
547 compatible = "marvell,cp115-standalone-pinctrl";
548 cp2_i2c0_pins: cp2-i2c-pins-0 {
549 marvell,pins = "mpp37", "mpp38";
550 marvell,function = "i2c0";