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>;
105 maximum-power-milliwatt = <3000>;
107 /* enabled by U-Boot if SFP module is present */
113 compatible = "cznic,turris-mox-rwtm";
121 pinctrl-names = "default";
122 pinctrl-0 = <&i2c1_pins>;
123 clock-frequency = <100000>;
127 compatible = "microchip,mcp7940x";
133 pinctrl-names = "default";
134 pinctrl-0 = <&pcie_reset_pins &pcie_clkreq_pins>;
136 reset-gpios = <&gpiosb 3 GPIO_ACTIVE_LOW>;
138 /* enabled by U-Boot if PCIe module is present */
147 pinctrl-names = "default";
148 pinctrl-0 = <&rgmii_pins>;
149 phy-mode = "rgmii-id";
150 phy-handle = <&phy1>;
155 phy-mode = "2500base-x";
156 managed = "in-band-status";
163 cd-gpios = <&gpionb 10 GPIO_ACTIVE_HIGH>;
164 vqmmc-supply = <&vsdc_reg>;
165 marvell,pad-type = "sd";
170 pinctrl-names = "default";
171 pinctrl-0 = <&sdio_pins>;
174 marvell,pad-type = "sd";
175 vqmmc-supply = <&vsdio_reg>;
176 mmc-pwrseq = <&sdhci1_pwrseq>;
177 /* forbid SDR104 for FCC purposes */
178 sdhci-caps-mask = <0x2 0x0>;
184 pinctrl-names = "default";
185 pinctrl-0 = <&spi_quad_pins &spi_cs1_pins>;
186 assigned-clocks = <&nb_periph_clk 7>;
187 assigned-clock-parents = <&tbg 1>;
188 assigned-clock-rates = <20000000>;
191 #address-cells = <1>;
193 compatible = "jedec,spi-nor";
195 spi-max-frequency = <20000000>;
198 compatible = "fixed-partitions";
199 #address-cells = <1>;
203 label = "secure-firmware";
209 reg = <0x20000 0x160000>;
213 label = "u-boot-env";
214 reg = <0x180000 0x10000>;
218 label = "Rescue system";
219 reg = <0x190000 0x660000>;
224 reg = <0x7f0000 0x10000>;
230 #address-cells = <1>;
232 compatible = "cznic,moxtet";
234 reset-gpios = <&gpiosb 2 GPIO_ACTIVE_LOW>;
235 spi-max-frequency = <10000000>;
238 interrupt-controller;
239 #interrupt-cells = <1>;
240 interrupt-parent = <&gpiosb>;
241 interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
245 compatible = "cznic,moxtet-gpio";
260 compatible = "usb-a-connector";
261 phy-supply = <&exp_usb3_vbus>;
271 pinctrl-names = "default";
272 pinctrl-0 = <&smi_pins>;
275 phy1: ethernet-phy@1 {
279 /* switch nodes are enabled by U-Boot if modules are present */
281 compatible = "marvell,mv88e6190";
284 interrupt-parent = <&moxtet>;
285 interrupts = <MOXTET_IRQ_PERIDOT(0)>;
289 #address-cells = <1>;
292 switch0phy1: switch0phy1@1 {
296 switch0phy2: switch0phy2@2 {
300 switch0phy3: switch0phy3@3 {
304 switch0phy4: switch0phy4@4 {
308 switch0phy5: switch0phy5@5 {
312 switch0phy6: switch0phy6@6 {
316 switch0phy7: switch0phy7@7 {
320 switch0phy8: switch0phy8@8 {
326 #address-cells = <1>;
332 phy-handle = <&switch0phy1>;
338 phy-handle = <&switch0phy2>;
344 phy-handle = <&switch0phy3>;
350 phy-handle = <&switch0phy4>;
356 phy-handle = <&switch0phy5>;
362 phy-handle = <&switch0phy6>;
368 phy-handle = <&switch0phy7>;
374 phy-handle = <&switch0phy8>;
381 phy-mode = "2500base-x";
382 managed = "in-band-status";
385 switch0port10: port@a {
388 phy-mode = "2500base-x";
389 managed = "in-band-status";
390 link = <&switch1port9 &switch2port9>;
399 managed = "in-band-status";
406 compatible = "marvell,mv88e6085";
409 interrupt-parent = <&moxtet>;
410 interrupts = <MOXTET_IRQ_TOPAZ>;
414 #address-cells = <1>;
417 switch0phy1_topaz: switch0phy1@11 {
421 switch0phy2_topaz: switch0phy2@12 {
425 switch0phy3_topaz: switch0phy3@13 {
429 switch0phy4_topaz: switch0phy4@14 {
435 #address-cells = <1>;
441 phy-handle = <&switch0phy1_topaz>;
447 phy-handle = <&switch0phy2_topaz>;
453 phy-handle = <&switch0phy3_topaz>;
459 phy-handle = <&switch0phy4_topaz>;
465 phy-mode = "2500base-x";
466 managed = "in-band-status";
473 compatible = "marvell,mv88e6190";
476 interrupt-parent = <&moxtet>;
477 interrupts = <MOXTET_IRQ_PERIDOT(1)>;
481 #address-cells = <1>;
484 switch1phy1: switch1phy1@1 {
488 switch1phy2: switch1phy2@2 {
492 switch1phy3: switch1phy3@3 {
496 switch1phy4: switch1phy4@4 {
500 switch1phy5: switch1phy5@5 {
504 switch1phy6: switch1phy6@6 {
508 switch1phy7: switch1phy7@7 {
512 switch1phy8: switch1phy8@8 {
518 #address-cells = <1>;
524 phy-handle = <&switch1phy1>;
530 phy-handle = <&switch1phy2>;
536 phy-handle = <&switch1phy3>;
542 phy-handle = <&switch1phy4>;
548 phy-handle = <&switch1phy5>;
554 phy-handle = <&switch1phy6>;
560 phy-handle = <&switch1phy7>;
566 phy-handle = <&switch1phy8>;
569 switch1port9: port@9 {
572 phy-mode = "2500base-x";
573 managed = "in-band-status";
574 link = <&switch0port10>;
577 switch1port10: port@a {
580 phy-mode = "2500base-x";
581 managed = "in-band-status";
582 link = <&switch2port9>;
591 managed = "in-band-status";
598 compatible = "marvell,mv88e6085";
601 interrupt-parent = <&moxtet>;
602 interrupts = <MOXTET_IRQ_TOPAZ>;
606 #address-cells = <1>;
609 switch1phy1_topaz: switch1phy1@11 {
613 switch1phy2_topaz: switch1phy2@12 {
617 switch1phy3_topaz: switch1phy3@13 {
621 switch1phy4_topaz: switch1phy4@14 {
627 #address-cells = <1>;
633 phy-handle = <&switch1phy1_topaz>;
639 phy-handle = <&switch1phy2_topaz>;
645 phy-handle = <&switch1phy3_topaz>;
651 phy-handle = <&switch1phy4_topaz>;
657 phy-mode = "2500base-x";
658 managed = "in-band-status";
659 link = <&switch0port10>;
665 compatible = "marvell,mv88e6190";
668 interrupt-parent = <&moxtet>;
669 interrupts = <MOXTET_IRQ_PERIDOT(2)>;
673 #address-cells = <1>;
676 switch2phy1: switch2phy1@1 {
680 switch2phy2: switch2phy2@2 {
684 switch2phy3: switch2phy3@3 {
688 switch2phy4: switch2phy4@4 {
692 switch2phy5: switch2phy5@5 {
696 switch2phy6: switch2phy6@6 {
700 switch2phy7: switch2phy7@7 {
704 switch2phy8: switch2phy8@8 {
710 #address-cells = <1>;
716 phy-handle = <&switch2phy1>;
722 phy-handle = <&switch2phy2>;
728 phy-handle = <&switch2phy3>;
734 phy-handle = <&switch2phy4>;
740 phy-handle = <&switch2phy5>;
746 phy-handle = <&switch2phy6>;
752 phy-handle = <&switch2phy7>;
758 phy-handle = <&switch2phy8>;
761 switch2port9: port@9 {
764 phy-mode = "2500base-x";
765 managed = "in-band-status";
766 link = <&switch1port10 &switch0port10>;
774 managed = "in-band-status";
781 compatible = "marvell,mv88e6085";
784 interrupt-parent = <&moxtet>;
785 interrupts = <MOXTET_IRQ_TOPAZ>;
789 #address-cells = <1>;
792 switch2phy1_topaz: switch2phy1@11 {
796 switch2phy2_topaz: switch2phy2@12 {
800 switch2phy3_topaz: switch2phy3@13 {
804 switch2phy4_topaz: switch2phy4@14 {
810 #address-cells = <1>;
816 phy-handle = <&switch2phy1_topaz>;
822 phy-handle = <&switch2phy2_topaz>;
828 phy-handle = <&switch2phy3_topaz>;
834 phy-handle = <&switch2phy4_topaz>;
840 phy-mode = "2500base-x";
841 managed = "in-band-status";
842 link = <&switch1port10 &switch0port10>;