1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device Tree file for CZ.NIC Turris Mox Board
4 * 2019 by Marek BehĂșn <kabel@kernel.org>
9 #include <dt-bindings/bus/moxtet.h>
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
12 #include "armada-372x.dtsi"
15 model = "CZ.NIC Turris Mox Board";
16 compatible = "cznic,turris-mox", "marvell,armada3720",
25 stdout-path = "serial0:115200n8";
29 device_type = "memory";
30 reg = <0x00000000 0x00000000 0x00000000 0x20000000>;
34 compatible = "gpio-leds";
36 label = "mox:red:activity";
37 gpios = <&gpiosb 21 GPIO_ACTIVE_LOW>;
38 linux,default-trigger = "default-on";
43 compatible = "gpio-keys";
47 linux,code = <KEY_RESTART>;
48 gpios = <&gpiosb 20 GPIO_ACTIVE_LOW>;
49 debounce-interval = <60>;
53 exp_usb3_vbus: usb3-vbus {
54 compatible = "regulator-fixed";
55 regulator-name = "usb3-vbus";
56 regulator-min-microvolt = <5000000>;
57 regulator-max-microvolt = <5000000>;
60 gpio = <&gpiosb 0 GPIO_ACTIVE_HIGH>;
64 compatible = "regulator-gpio";
65 regulator-name = "vsdc";
66 regulator-min-microvolt = <1800000>;
67 regulator-max-microvolt = <3300000>;
70 gpios = <&gpiosb 23 GPIO_ACTIVE_HIGH>;
77 vsdio_reg: vsdio-reg {
78 compatible = "regulator-gpio";
79 regulator-name = "vsdio";
80 regulator-min-microvolt = <1800000>;
81 regulator-max-microvolt = <3300000>;
84 gpios = <&gpiosb 22 GPIO_ACTIVE_HIGH>;
91 sdhci1_pwrseq: sdhci1-pwrseq {
92 compatible = "mmc-pwrseq-simple";
93 reset-gpios = <&gpionb 19 GPIO_ACTIVE_HIGH>;
98 compatible = "sff,sfp";
100 los-gpio = <&moxtet_sfp 0 GPIO_ACTIVE_HIGH>;
101 tx-fault-gpio = <&moxtet_sfp 1 GPIO_ACTIVE_HIGH>;
102 mod-def0-gpio = <&moxtet_sfp 2 GPIO_ACTIVE_LOW>;
103 tx-disable-gpio = <&moxtet_sfp 4 GPIO_ACTIVE_HIGH>;
104 rate-select0-gpio = <&moxtet_sfp 5 GPIO_ACTIVE_HIGH>;
105 maximum-power-milliwatt = <3000>;
107 /* enabled by U-Boot if SFP module is present */
113 compatible = "marvell,armada-3700-rwtm-firmware", "cznic,turris-mox-rwtm";
119 pinctrl-names = "default";
120 pinctrl-0 = <&i2c1_pins>;
121 clock-frequency = <100000>;
125 compatible = "microchip,mcp7940x";
131 pinctrl-names = "default";
132 pinctrl-0 = <&pcie_reset_pins &pcie_clkreq_pins>;
134 reset-gpios = <&gpiosb 3 GPIO_ACTIVE_LOW>;
136 /* enabled by U-Boot if PCIe module is present */
145 pinctrl-names = "default";
146 pinctrl-0 = <&rgmii_pins>;
147 phy-mode = "rgmii-id";
148 phy-handle = <&phy1>;
153 phy-mode = "2500base-x";
154 managed = "in-band-status";
161 cd-gpios = <&gpionb 10 GPIO_ACTIVE_HIGH>;
162 vqmmc-supply = <&vsdc_reg>;
163 marvell,pad-type = "sd";
168 pinctrl-names = "default";
169 pinctrl-0 = <&sdio_pins>;
172 marvell,pad-type = "sd";
173 vqmmc-supply = <&vsdio_reg>;
174 mmc-pwrseq = <&sdhci1_pwrseq>;
175 /* forbid SDR104 for FCC purposes */
176 sdhci-caps-mask = <0x2 0x0>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&spi_quad_pins &spi_cs1_pins>;
184 assigned-clocks = <&nb_periph_clk 7>;
185 assigned-clock-parents = <&tbg 1>;
186 assigned-clock-rates = <20000000>;
189 #address-cells = <1>;
191 compatible = "jedec,spi-nor";
193 spi-max-frequency = <20000000>;
196 compatible = "fixed-partitions";
197 #address-cells = <1>;
201 label = "secure-firmware";
206 label = "a53-firmware";
207 reg = <0x20000 0x160000>;
211 label = "u-boot-env";
212 reg = <0x180000 0x10000>;
216 label = "Rescue system";
217 reg = <0x190000 0x660000>;
222 reg = <0x7f0000 0x10000>;
228 #address-cells = <1>;
230 compatible = "cznic,moxtet";
232 reset-gpios = <&gpiosb 2 GPIO_ACTIVE_LOW>;
233 spi-max-frequency = <10000000>;
236 interrupt-controller;
237 #interrupt-cells = <1>;
238 interrupt-parent = <&gpiosb>;
239 interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
243 compatible = "cznic,moxtet-gpio";
258 compatible = "usb-a-connector";
259 phy-supply = <&exp_usb3_vbus>;
269 pinctrl-names = "default";
270 pinctrl-0 = <&smi_pins>;
273 phy1: ethernet-phy@1 {
277 /* switch nodes are enabled by U-Boot if modules are present */
279 compatible = "marvell,mv88e6190";
282 interrupt-parent = <&moxtet>;
283 interrupts = <MOXTET_IRQ_PERIDOT(0)>;
287 #address-cells = <1>;
290 switch0phy1: switch0phy1@1 {
294 switch0phy2: switch0phy2@2 {
298 switch0phy3: switch0phy3@3 {
302 switch0phy4: switch0phy4@4 {
306 switch0phy5: switch0phy5@5 {
310 switch0phy6: switch0phy6@6 {
314 switch0phy7: switch0phy7@7 {
318 switch0phy8: switch0phy8@8 {
324 #address-cells = <1>;
330 phy-handle = <&switch0phy1>;
336 phy-handle = <&switch0phy2>;
342 phy-handle = <&switch0phy3>;
348 phy-handle = <&switch0phy4>;
354 phy-handle = <&switch0phy5>;
360 phy-handle = <&switch0phy6>;
366 phy-handle = <&switch0phy7>;
372 phy-handle = <&switch0phy8>;
379 phy-mode = "2500base-x";
380 managed = "in-band-status";
383 switch0port10: port@a {
386 phy-mode = "2500base-x";
387 managed = "in-band-status";
388 link = <&switch1port9 &switch2port9>;
397 managed = "in-band-status";
404 compatible = "marvell,mv88e6085";
407 interrupt-parent = <&moxtet>;
408 interrupts = <MOXTET_IRQ_TOPAZ>;
412 #address-cells = <1>;
415 switch0phy1_topaz: switch0phy1@11 {
419 switch0phy2_topaz: switch0phy2@12 {
423 switch0phy3_topaz: switch0phy3@13 {
427 switch0phy4_topaz: switch0phy4@14 {
433 #address-cells = <1>;
439 phy-handle = <&switch0phy1_topaz>;
445 phy-handle = <&switch0phy2_topaz>;
451 phy-handle = <&switch0phy3_topaz>;
457 phy-handle = <&switch0phy4_topaz>;
463 phy-mode = "2500base-x";
464 managed = "in-band-status";
471 compatible = "marvell,mv88e6190";
474 interrupt-parent = <&moxtet>;
475 interrupts = <MOXTET_IRQ_PERIDOT(1)>;
479 #address-cells = <1>;
482 switch1phy1: switch1phy1@1 {
486 switch1phy2: switch1phy2@2 {
490 switch1phy3: switch1phy3@3 {
494 switch1phy4: switch1phy4@4 {
498 switch1phy5: switch1phy5@5 {
502 switch1phy6: switch1phy6@6 {
506 switch1phy7: switch1phy7@7 {
510 switch1phy8: switch1phy8@8 {
516 #address-cells = <1>;
522 phy-handle = <&switch1phy1>;
528 phy-handle = <&switch1phy2>;
534 phy-handle = <&switch1phy3>;
540 phy-handle = <&switch1phy4>;
546 phy-handle = <&switch1phy5>;
552 phy-handle = <&switch1phy6>;
558 phy-handle = <&switch1phy7>;
564 phy-handle = <&switch1phy8>;
567 switch1port9: port@9 {
570 phy-mode = "2500base-x";
571 managed = "in-band-status";
572 link = <&switch0port10>;
575 switch1port10: port@a {
578 phy-mode = "2500base-x";
579 managed = "in-band-status";
580 link = <&switch2port9>;
589 managed = "in-band-status";
596 compatible = "marvell,mv88e6085";
599 interrupt-parent = <&moxtet>;
600 interrupts = <MOXTET_IRQ_TOPAZ>;
604 #address-cells = <1>;
607 switch1phy1_topaz: switch1phy1@11 {
611 switch1phy2_topaz: switch1phy2@12 {
615 switch1phy3_topaz: switch1phy3@13 {
619 switch1phy4_topaz: switch1phy4@14 {
625 #address-cells = <1>;
631 phy-handle = <&switch1phy1_topaz>;
637 phy-handle = <&switch1phy2_topaz>;
643 phy-handle = <&switch1phy3_topaz>;
649 phy-handle = <&switch1phy4_topaz>;
655 phy-mode = "2500base-x";
656 managed = "in-band-status";
657 link = <&switch0port10>;
663 compatible = "marvell,mv88e6190";
666 interrupt-parent = <&moxtet>;
667 interrupts = <MOXTET_IRQ_PERIDOT(2)>;
671 #address-cells = <1>;
674 switch2phy1: switch2phy1@1 {
678 switch2phy2: switch2phy2@2 {
682 switch2phy3: switch2phy3@3 {
686 switch2phy4: switch2phy4@4 {
690 switch2phy5: switch2phy5@5 {
694 switch2phy6: switch2phy6@6 {
698 switch2phy7: switch2phy7@7 {
702 switch2phy8: switch2phy8@8 {
708 #address-cells = <1>;
714 phy-handle = <&switch2phy1>;
720 phy-handle = <&switch2phy2>;
726 phy-handle = <&switch2phy3>;
732 phy-handle = <&switch2phy4>;
738 phy-handle = <&switch2phy5>;
744 phy-handle = <&switch2phy6>;
750 phy-handle = <&switch2phy7>;
756 phy-handle = <&switch2phy8>;
759 switch2port9: port@9 {
762 phy-mode = "2500base-x";
763 managed = "in-band-status";
764 link = <&switch1port10 &switch0port10>;
772 managed = "in-band-status";
779 compatible = "marvell,mv88e6085";
782 interrupt-parent = <&moxtet>;
783 interrupts = <MOXTET_IRQ_TOPAZ>;
787 #address-cells = <1>;
790 switch2phy1_topaz: switch2phy1@11 {
794 switch2phy2_topaz: switch2phy2@12 {
798 switch2phy3_topaz: switch2phy3@13 {
802 switch2phy4_topaz: switch2phy4@14 {
808 #address-cells = <1>;
814 phy-handle = <&switch2phy1_topaz>;
820 phy-handle = <&switch2phy2_topaz>;
826 phy-handle = <&switch2phy3_topaz>;
832 phy-handle = <&switch2phy4_topaz>;
838 phy-mode = "2500base-x";
839 managed = "in-band-status";
840 link = <&switch1port10 &switch0port10>;