1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6 #include <dt-bindings/gpio/gpio.h>
8 #include "mt7986a.dtsi"
11 model = "ZyXEL EX5700 (Telenor)";
12 compatible = "zyxel,ex5700-telenor", "mediatek,mt7986a";
17 led-boot = &led_status_green;
18 led-failsafe = &led_status_green;
19 led-running = &led_status_green;
20 led-upgrade = &led_status_amber;
24 stdout-path = "serial0:115200n8";
26 // Stock U-Boot crashes unless /chosen/bootargs exists
27 bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8";
31 reg = <0 0x40000000 0 0x40000000>;
34 reg_3p3v: regulator-3p3v {
35 compatible = "regulator-fixed";
36 regulator-name = "fixed-3.3V";
37 regulator-min-microvolt = <3300000>;
38 regulator-max-microvolt = <3300000>;
43 reg_5v: regulator-5v {
44 compatible = "regulator-fixed";
45 regulator-name = "fixed-5V";
46 regulator-min-microvolt = <5000000>;
47 regulator-max-microvolt = <5000000>;
54 compatible = "gpio-keys";
59 gpios = <&pio 9 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_RESTART>;
65 gpios = <&pio 10 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_WPS_BUTTON>;
71 compatible = "gpio-leds";
75 gpios = <&pio 23 GPIO_ACTIVE_HIGH>;
76 default-state = "off";
81 gpios = <&pio 25 GPIO_ACTIVE_HIGH>;
82 default-state = "off";
87 gpios = <&pio 29 GPIO_ACTIVE_HIGH>;
88 default-state = "off";
92 function = LED_FUNCTION_STATUS;
93 color = <LED_COLOR_ID_WHITE>;
94 gpios = <&pio 16 GPIO_ACTIVE_HIGH>;
95 default-state = "off";
99 function = LED_FUNCTION_STATUS;
100 color = <LED_COLOR_ID_RED>;
101 gpios = <&pio 17 GPIO_ACTIVE_HIGH>;
102 default-state = "off";
105 led_status_green: green2 {
106 function = LED_FUNCTION_STATUS;
107 color = <LED_COLOR_ID_GREEN>;
108 gpios = <&pio 31 GPIO_ACTIVE_HIGH>;
109 default-state = "off";
112 led_status_amber: amber2 {
113 function = LED_FUNCTION_STATUS;
114 color = <LED_COLOR_ID_AMBER>;
115 gpios = <&pio 18 GPIO_ACTIVE_HIGH>;
116 default-state = "off";
124 pinctrl-names = "default";
125 pinctrl-0 = <ð_pins>;
128 compatible = "mediatek,eth-mac";
130 phy-mode = "2500base-x";
140 compatible = "mediatek,eth-mac";
143 phy-mode = "2500base-x";
144 phy-handle = <&phy6>;
148 #address-cells = <1>;
154 reset-gpios = <&pio 6 GPIO_ACTIVE_LOW>;
155 reset-delay-us = <50000>;
156 reset-post-delay-us = <20000>;
159 compatible = "ethernet-phy-ieee802.3-c45";
164 compatible = "ethernet-phy-ieee802.3-c45";
169 compatible = "mediatek,mt7531";
171 reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
172 interrupt-controller;
173 #interrupt-cells = <1>;
174 interrupt-parent = <&pio>;
175 interrupts = <66 IRQ_TYPE_LEVEL_HIGH>;
181 #address-cells = <1>;
202 phy-mode = "2500base-x";
203 phy-handle = <&phy5>;
209 phy-mode = "2500base-x";
225 pinctrl-names = "default";
226 pinctrl-0 = <&pcie_pins>;
230 reg = <0x0000 0 0 0 0>;
233 compatible = "mediatek,mt76";
234 reg = <0x0000 0 0 0 0>;
235 mediatek,mtd-eeprom = <&factory 0xa0000>;
250 pinctrl-names = "default";
251 pinctrl-0 = <&wf_5g_pins>;
253 mediatek,mtd-eeprom = <&factory 0x0>;
260 groups = "switch_int", "mdc_mdio";
264 pcie_pins: pcie-pins {
267 groups = "pcie_pereset"; // "pcie_clk" and "pcie_wake" is unused?
271 spi_flash_pins: spi-flash-pins-33-to-38 {
274 groups = "spi0", "spi0_wp_hold";
277 pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
278 drive-strength = <8>;
279 mediatek,pull-up-adv = <0>; /* bias-disable */
282 pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
283 drive-strength = <8>;
284 mediatek,pull-down-adv = <0>; /* bias-disable */
288 wf_5g_pins: wf_5g-pins {
294 pins = "WF1_HB1", "WF1_HB2", "WF1_HB3", "WF1_HB4",
295 "WF1_HB0", "WF1_HB5", "WF1_HB6", "WF1_HB7",
296 "WF1_HB8", "WF1_TOP_CLK", "WF1_TOP_DATA";
297 drive-strength = <4>;
304 pinctrl-names = "default";
305 pinctrl-0 = <&spi_flash_pins>;
310 compatible = "jedec,spi-nor";
312 spi-max-frequency = <20000000>;
316 compatible = "spi-nand";
320 mediatek,bmt-max-ratio = <1>;
321 mediatek,bmt-max-reserved-blocks = <64>;
323 spi-max-frequency = <20000000>;
324 spi-tx-bus-width = <4>;
325 spi-rx-bus-width = <4>;
328 compatible = "fixed-partitions";
329 #address-cells = <1>;
334 reg = <0x000000 0x100000>;
338 label = "u-boot-env";
339 reg = <0x100000 0x80000>;
341 factory: partition@180000 {
343 reg = <0x180000 0x200000>;
348 reg = <0x380000 0x200000>;
353 reg = <0x580000 0x1da80000>;
360 vusb33-supply = <®_3p3v>;
361 vbus-supply = <®_5v>;