1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device Tree file for CZ.NIC Turris Mox Board
4 * 2019 by Marek Behun <marek.behun@nic.cz>
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>;
106 /* enabled by U-Boot if SFP module is present */
112 compatible = "cznic,turris-mox-rwtm";
120 pinctrl-names = "default";
121 pinctrl-0 = <&i2c1_pins>;
122 clock-frequency = <100000>;
126 compatible = "microchip,mcp7940x";
136 pinctrl-names = "default";
137 pinctrl-0 = <&pcie_reset_pins &pcie_clkreq_pins>;
139 max-link-speed = <2>;
140 reset-gpios = <&gpiosb 3 GPIO_ACTIVE_LOW>;
143 /* enabled by U-Boot if PCIe module is present */
152 pinctrl-names = "default";
153 pinctrl-0 = <&rgmii_pins>;
154 phy-mode = "rgmii-id";
160 phy-mode = "2500base-x";
161 managed = "in-band-status";
168 cd-gpios = <&gpionb 10 GPIO_ACTIVE_HIGH>;
169 vqmmc-supply = <&vsdc_reg>;
170 marvell,pad-type = "sd";
175 pinctrl-names = "default";
176 pinctrl-0 = <&sdio_pins>;
179 marvell,pad-type = "sd";
180 vqmmc-supply = <&vsdio_reg>;
181 mmc-pwrseq = <&sdhci1_pwrseq>;
187 pinctrl-names = "default";
188 pinctrl-0 = <&spi_quad_pins &spi_cs1_pins>;
189 assigned-clocks = <&nb_periph_clk 7>;
190 assigned-clock-parents = <&tbg 1>;
191 assigned-clock-rates = <20000000>;
194 #address-cells = <1>;
196 compatible = "jedec,spi-nor";
198 spi-max-frequency = <20000000>;
201 compatible = "fixed-partitions";
202 #address-cells = <1>;
206 label = "secure-firmware";
212 reg = <0x20000 0x160000>;
216 label = "u-boot-env";
217 reg = <0x180000 0x10000>;
221 label = "Rescue system";
222 reg = <0x190000 0x660000>;
227 reg = <0x7f0000 0x10000>;
233 #address-cells = <1>;
235 compatible = "cznic,moxtet";
237 reset-gpios = <&gpiosb 2 GPIO_ACTIVE_LOW>;
238 spi-max-frequency = <10000000>;
241 interrupt-controller;
242 #interrupt-cells = <1>;
243 interrupt-parent = <&gpiosb>;
244 interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
248 compatible = "cznic,moxtet-gpio";
263 compatible = "usb-a-connector";
264 phy-supply = <&exp_usb3_vbus>;
274 pinctrl-names = "default";
275 pinctrl-0 = <&smi_pins>;
278 phy1: ethernet-phy@1 {
282 /* switch nodes are enabled by U-Boot if modules are present */
284 compatible = "marvell,mv88e6190";
287 interrupt-parent = <&moxtet>;
288 interrupts = <MOXTET_IRQ_PERIDOT(0)>;
292 #address-cells = <1>;
295 switch0phy1: switch0phy1@1 {
299 switch0phy2: switch0phy2@2 {
303 switch0phy3: switch0phy3@3 {
307 switch0phy4: switch0phy4@4 {
311 switch0phy5: switch0phy5@5 {
315 switch0phy6: switch0phy6@6 {
319 switch0phy7: switch0phy7@7 {
323 switch0phy8: switch0phy8@8 {
329 #address-cells = <1>;
335 phy-handle = <&switch0phy1>;
341 phy-handle = <&switch0phy2>;
347 phy-handle = <&switch0phy3>;
353 phy-handle = <&switch0phy4>;
359 phy-handle = <&switch0phy5>;
365 phy-handle = <&switch0phy6>;
371 phy-handle = <&switch0phy7>;
377 phy-handle = <&switch0phy8>;
384 phy-mode = "2500base-x";
385 managed = "in-band-status";
388 switch0port10: port@a {
391 phy-mode = "2500base-x";
392 managed = "in-band-status";
393 link = <&switch1port9 &switch2port9>;
402 managed = "in-band-status";
409 compatible = "marvell,mv88e6085";
412 interrupt-parent = <&moxtet>;
413 interrupts = <MOXTET_IRQ_TOPAZ>;
417 #address-cells = <1>;
420 switch0phy1_topaz: switch0phy1@11 {
424 switch0phy2_topaz: switch0phy2@12 {
428 switch0phy3_topaz: switch0phy3@13 {
432 switch0phy4_topaz: switch0phy4@14 {
438 #address-cells = <1>;
444 phy-handle = <&switch0phy1_topaz>;
450 phy-handle = <&switch0phy2_topaz>;
456 phy-handle = <&switch0phy3_topaz>;
462 phy-handle = <&switch0phy4_topaz>;
468 phy-mode = "2500base-x";
469 managed = "in-band-status";
476 compatible = "marvell,mv88e6190";
479 interrupt-parent = <&moxtet>;
480 interrupts = <MOXTET_IRQ_PERIDOT(1)>;
484 #address-cells = <1>;
487 switch1phy1: switch1phy1@1 {
491 switch1phy2: switch1phy2@2 {
495 switch1phy3: switch1phy3@3 {
499 switch1phy4: switch1phy4@4 {
503 switch1phy5: switch1phy5@5 {
507 switch1phy6: switch1phy6@6 {
511 switch1phy7: switch1phy7@7 {
515 switch1phy8: switch1phy8@8 {
521 #address-cells = <1>;
527 phy-handle = <&switch1phy1>;
533 phy-handle = <&switch1phy2>;
539 phy-handle = <&switch1phy3>;
545 phy-handle = <&switch1phy4>;
551 phy-handle = <&switch1phy5>;
557 phy-handle = <&switch1phy6>;
563 phy-handle = <&switch1phy7>;
569 phy-handle = <&switch1phy8>;
572 switch1port9: port@9 {
575 phy-mode = "2500base-x";
576 managed = "in-band-status";
577 link = <&switch0port10>;
580 switch1port10: port@a {
583 phy-mode = "2500base-x";
584 managed = "in-band-status";
585 link = <&switch2port9>;
594 managed = "in-band-status";
601 compatible = "marvell,mv88e6085";
604 interrupt-parent = <&moxtet>;
605 interrupts = <MOXTET_IRQ_TOPAZ>;
609 #address-cells = <1>;
612 switch1phy1_topaz: switch1phy1@11 {
616 switch1phy2_topaz: switch1phy2@12 {
620 switch1phy3_topaz: switch1phy3@13 {
624 switch1phy4_topaz: switch1phy4@14 {
630 #address-cells = <1>;
636 phy-handle = <&switch1phy1_topaz>;
642 phy-handle = <&switch1phy2_topaz>;
648 phy-handle = <&switch1phy3_topaz>;
654 phy-handle = <&switch1phy4_topaz>;
660 phy-mode = "2500base-x";
661 managed = "in-band-status";
662 link = <&switch0port10>;
668 compatible = "marvell,mv88e6190";
671 interrupt-parent = <&moxtet>;
672 interrupts = <MOXTET_IRQ_PERIDOT(2)>;
676 #address-cells = <1>;
679 switch2phy1: switch2phy1@1 {
683 switch2phy2: switch2phy2@2 {
687 switch2phy3: switch2phy3@3 {
691 switch2phy4: switch2phy4@4 {
695 switch2phy5: switch2phy5@5 {
699 switch2phy6: switch2phy6@6 {
703 switch2phy7: switch2phy7@7 {
707 switch2phy8: switch2phy8@8 {
713 #address-cells = <1>;
719 phy-handle = <&switch2phy1>;
725 phy-handle = <&switch2phy2>;
731 phy-handle = <&switch2phy3>;
737 phy-handle = <&switch2phy4>;
743 phy-handle = <&switch2phy5>;
749 phy-handle = <&switch2phy6>;
755 phy-handle = <&switch2phy7>;
761 phy-handle = <&switch2phy8>;
764 switch2port9: port@9 {
767 phy-mode = "2500base-x";
768 managed = "in-band-status";
769 link = <&switch1port10 &switch0port10>;
777 managed = "in-band-status";
784 compatible = "marvell,mv88e6085";
787 interrupt-parent = <&moxtet>;
788 interrupts = <MOXTET_IRQ_TOPAZ>;
792 #address-cells = <1>;
795 switch2phy1_topaz: switch2phy1@11 {
799 switch2phy2_topaz: switch2phy2@12 {
803 switch2phy3_topaz: switch2phy3@13 {
807 switch2phy4_topaz: switch2phy4@14 {
813 #address-cells = <1>;
819 phy-handle = <&switch2phy1_topaz>;
825 phy-handle = <&switch2phy2_topaz>;
831 phy-handle = <&switch2phy3_topaz>;
837 phy-handle = <&switch2phy4_topaz>;
843 phy-mode = "2500base-x";
844 managed = "in-band-status";
845 link = <&switch1port10 &switch0port10>;