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>
11 #include <dt-bindings/input/input.h>
14 model = "iEi Puzzle-M902";
15 compatible = "iei,puzzle-m902",
16 "marvell,armada-ap807-quad", "marvell,armada-ap807";
19 stdout-path = "serial0:115200n8";
31 ethernet0 = &cp0_eth0;
32 ethernet1 = &cp0_eth1;
33 ethernet2 = &cp0_eth2;
34 ethernet3 = &cp1_eth0;
35 ethernet4 = &cp1_eth1;
36 ethernet5 = &cp1_eth2;
37 ethernet6 = &cp2_eth0;
38 ethernet7 = &cp2_eth1;
39 ethernet8 = &cp2_eth2;
42 led-boot = &led_power;
43 led-failsafe = &led_info;
44 led-running = &led_power;
45 led-upgrade = &led_info;
49 device_type = "memory";
50 reg = <0x0 0x0 0x0 0x80000000>;
54 compatible = "gpio-keys";
58 linux,code = <KEY_RESTART>;
59 gpios = <&cp0_gpio2 4 GPIO_ACTIVE_LOW>;
63 cp2_reg_usb3_vbus0: cp2_usb3_vbus@0 {
64 compatible = "regulator-fixed";
65 regulator-name = "cp2-xhci0-vbus";
66 regulator-min-microvolt = <5000000>;
67 regulator-max-microvolt = <5000000>;
69 gpio = <&cp2_gpio1 2 GPIO_ACTIVE_HIGH>;
72 cp2_usb3_0_phy0: cp2_usb3_phy0 {
73 compatible = "usb-nop-xceiv";
74 vcc-supply = <&cp2_reg_usb3_vbus0>;
77 cp2_reg_usb3_vbus1: cp2_usb3_vbus@1 {
78 compatible = "regulator-fixed";
79 regulator-name = "cp2-xhci1-vbus";
80 regulator-min-microvolt = <5000000>;
81 regulator-max-microvolt = <5000000>;
83 gpio = <&cp2_gpio1 3 GPIO_ACTIVE_HIGH>;
86 cp2_usb3_0_phy1: cp2_usb3_phy1 {
87 compatible = "usb-nop-xceiv";
88 vcc-supply = <&cp2_reg_usb3_vbus1>;
91 cp2_sfp_eth0: sfp-eth0 {
92 compatible = "sff,sfp";
93 i2c-bus = <&cp2_sfpp0_i2c>;
94 los-gpio = <&cp2_module_expander1 11 GPIO_ACTIVE_HIGH>;
95 mod-def0-gpio = <&cp2_module_expander1 10 GPIO_ACTIVE_LOW>;
96 tx-disable-gpio = <&cp2_module_expander1 9 GPIO_ACTIVE_HIGH>;
97 tx-fault-gpio = <&cp2_module_expander1 8 GPIO_ACTIVE_HIGH>;
110 compatible = "iei,wt61p803-puzzle";
111 #address-cells = <1>;
113 current-speed = <115200>;
118 compatible = "iei,wt61p803-puzzle-leds";
119 #address-cells = <1>;
125 label = "white:network";
131 label = "green:cloud";
137 label = "orange:info";
143 label = "yellow:power";
145 default-state = "on";
150 compatible = "iei,wt61p803-puzzle-hwmon";
151 #address-cells = <1>;
154 chassis_fan_group0: fan-group@0 {
155 #cooling-cells = <2>;
157 cooling-levels = <64 102 170 230 250>;
165 cpu_active: cpu-active {
166 temperature = <44000>;
173 trip = <&cpu_active>;
174 cooling-device = <&chassis_fan_group0 64 THERMAL_NO_LIMIT>;
179 /* on-board eMMC - U9 */
181 pinctrl-names = "default";
194 cp0_nbaset_phy0: ethernet-phy@0 {
195 compatible = "ethernet-phy-ieee802.3-c45";
198 cp0_nbaset_phy1: ethernet-phy@1 {
199 compatible = "ethernet-phy-ieee802.3-c45";
202 cp0_nbaset_phy2: ethernet-phy@2 {
203 compatible = "ethernet-phy-ieee802.3-c45";
212 /* SLM-1521-V2, CON9 */
215 phy-mode = "10gbase-kr";
216 phys = <&cp0_comphy2 0>;
217 phy = <&cp0_nbaset_phy0>;
222 phy-mode = "2500base-x";
223 phys = <&cp0_comphy4 1>;
224 phy = <&cp0_nbaset_phy1>;
229 phy-mode = "2500base-x";
230 phys = <&cp0_comphy1 2>;
231 phy = <&cp0_nbaset_phy2>;
243 pinctrl-names = "default";
244 pinctrl-0 = <&cp0_i2c0_pins>;
246 clock-frequency = <100000>;
248 compatible = "epson,rx8130";
255 clock-frequency = <100000>;
258 /* SLM-1521-V2, CON6 */
263 phys = <&cp0_comphy0 1>;
271 phys = <&cp0_comphy5 2>;
276 pinctrl-names = "default";
277 pinctrl-0 = <&cp0_spi0_pins>;
278 reg = <0x700680 0x50>, /* control */
279 <0x2000000 0x1000000>; /* CS0 */
282 #address-cells = <0x1>;
284 compatible = "jedec,spi-nor";
286 spi-max-frequency = <40000000>;
288 compatible = "fixed-partitions";
289 #address-cells = <1>;
293 reg = <0x0 0x1f0000>;
296 label = "U-Boot ENV Factory";
297 reg = <0x1f0000 0x10000>;
301 reg = <0x200000 0x1f0000>;
304 label = "U-Boot ENV";
305 reg = <0x3f0000 0x10000>;
312 cp0_pinctrl: pinctrl {
313 compatible = "marvell,cp115-standalone-pinctrl";
314 cp0_i2c0_pins: cp0-i2c-pins-0 {
315 marvell,pins = "mpp37", "mpp38";
316 marvell,function = "i2c0";
318 cp0_i2c1_pins: cp0-i2c-pins-1 {
319 marvell,pins = "mpp35", "mpp36";
320 marvell,function = "i2c1";
322 cp0_ge1_rgmii_pins: cp0-ge-rgmii-pins-0 {
323 marvell,pins = "mpp0", "mpp1", "mpp2",
324 "mpp3", "mpp4", "mpp5",
325 "mpp6", "mpp7", "mpp8",
326 "mpp9", "mpp10", "mpp11";
327 marvell,function = "ge0";
329 cp0_ge2_rgmii_pins: cp0-ge-rgmii-pins-1 {
330 marvell,pins = "mpp44", "mpp45", "mpp46",
331 "mpp47", "mpp48", "mpp49",
332 "mpp50", "mpp51", "mpp52",
333 "mpp53", "mpp54", "mpp55";
334 marvell,function = "ge1";
336 cp0_spi0_pins: cp0-spi-pins-0 {
337 marvell,pins = "mpp13", "mpp14", "mpp15", "mpp16";
338 marvell,function = "spi1";
345 phys = <&cp0_comphy3 1>;
350 * Instantiate the first connected CP115
353 #define CP11X_NAME cp1
354 #define CP11X_BASE f4000000
355 #define CP11X_PCIEx_MEM_BASE(iface) (0xe2000000 + (iface * 0x1000000))
356 #define CP11X_PCIEx_MEM_SIZE(iface) 0xf00000
357 #define CP11X_PCIE0_BASE f4600000
358 #define CP11X_PCIE1_BASE f4620000
359 #define CP11X_PCIE2_BASE f4640000
361 #include "armada-cp115.dtsi"
365 #undef CP11X_PCIEx_MEM_BASE
366 #undef CP11X_PCIEx_MEM_SIZE
367 #undef CP11X_PCIE0_BASE
368 #undef CP11X_PCIE1_BASE
369 #undef CP11X_PCIE2_BASE
377 cp1_nbaset_phy0: ethernet-phy@3 {
378 compatible = "ethernet-phy-ieee802.3-c45";
381 cp1_nbaset_phy1: ethernet-phy@4 {
382 compatible = "ethernet-phy-ieee802.3-c45";
385 cp1_nbaset_phy2: ethernet-phy@5 {
386 compatible = "ethernet-phy-ieee802.3-c45";
398 phy-mode = "10gbase-kr";
399 phys = <&cp1_comphy2 0>;
400 phy = <&cp1_nbaset_phy0>;
405 phy-mode = "2500base-x";
406 phys = <&cp1_comphy4 1>;
407 phy = <&cp1_nbaset_phy1>;
412 phy-mode = "2500base-x";
413 phys = <&cp1_comphy1 2>;
414 phy = <&cp1_nbaset_phy2>;
427 pinctrl-names = "default";
428 pinctrl-0 = <&cp1_i2c0_pins>;
429 clock-frequency = <100000>;
433 cp1_pinctrl: pinctrl {
434 compatible = "marvell,cp115-standalone-pinctrl";
435 cp1_i2c0_pins: cp1-i2c-pins-0 {
436 marvell,pins = "mpp37", "mpp38";
437 marvell,function = "i2c0";
439 cp1_spi0_pins: cp1-spi-pins-0 {
440 marvell,pins = "mpp13", "mpp14", "mpp15", "mpp16";
441 marvell,function = "spi1";
443 cp1_xhci0_vbus_pins: cp1-xhci0-vbus-pins {
444 marvell,pins = "mpp3";
445 marvell,function = "gpio";
451 * Instantiate the second connected CP115
454 #define CP11X_NAME cp2
455 #define CP11X_BASE f6000000
456 #define CP11X_PCIEx_MEM_BASE(iface) (0xe5000000 + (iface * 0x1000000))
457 #define CP11X_PCIEx_MEM_SIZE(iface) 0xf00000
458 #define CP11X_PCIE0_BASE f6600000
459 #define CP11X_PCIE1_BASE f6620000
460 #define CP11X_PCIE2_BASE f6640000
462 #include "armada-cp115.dtsi"
466 #undef CP11X_PCIEx_MEM_BASE
467 #undef CP11X_PCIEx_MEM_SIZE
468 #undef CP11X_PCIE0_BASE
469 #undef CP11X_PCIE1_BASE
470 #undef CP11X_PCIE2_BASE
482 cp2_nbaset_phy0: ethernet-phy@6 {
483 compatible = "ethernet-phy-ieee802.3-c45";
486 cp2_nbaset_phy1: ethernet-phy@7 {
487 compatible = "ethernet-phy-ieee802.3-c45";
490 cp2_nbaset_phy2: ethernet-phy@8 {
491 compatible = "ethernet-phy-ieee802.3-c45";
496 /* SLM-1521-V2, CON9 */
499 phy-mode = "10gbase-kr";
500 phys = <&cp2_comphy2 0>;
501 phy = <&cp2_nbaset_phy0>;
506 phy-mode = "2500base-x";
507 phys = <&cp2_comphy4 1>;
508 phy = <&cp2_nbaset_phy1>;
513 phy-mode = "2500base-x";
514 phys = <&cp2_comphy1 2>;
515 phy = <&cp2_nbaset_phy2>;
527 clock-frequency = <100000>;
528 /* SLM-1521-V2 - U3 */
530 compatible = "nxp,pca9544";
531 #address-cells = <1>;
534 cp2_sfpp0_i2c: i2c@0 {
535 #address-cells = <1>;
541 #address-cells = <1>;
545 cp2_module_expander1: pca9555@21 {
546 compatible = "nxp,pca9555";
547 pinctrl-names = "default";
557 cp2_pinctrl: pinctrl {
558 compatible = "marvell,cp115-standalone-pinctrl";
559 cp2_i2c0_pins: cp2-i2c-pins-0 {
560 marvell,pins = "mpp37", "mpp38";
561 marvell,function = "i2c0";