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";
161 mxl,led-config = <0x3f0 0x330 0x0 0x0>;
165 compatible = "ethernet-phy-ieee802.3-c45";
167 mxl,led-config = <0x3f0 0x330 0x0 0x0>;
171 compatible = "mediatek,mt7531";
173 reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
174 interrupt-controller;
175 #interrupt-cells = <1>;
176 interrupt-parent = <&pio>;
177 interrupts = <66 IRQ_TYPE_LEVEL_HIGH>;
183 #address-cells = <1>;
204 phy-mode = "2500base-x";
205 phy-handle = <&phy5>;
211 phy-mode = "2500base-x";
227 pinctrl-names = "default";
228 pinctrl-0 = <&pcie_pins>;
232 reg = <0x0000 0 0 0 0>;
235 compatible = "mediatek,mt76";
236 reg = <0x0000 0 0 0 0>;
237 mediatek,mtd-eeprom = <&factory 0xa0000>;
252 pinctrl-names = "default";
253 pinctrl-0 = <&wf_5g_pins>;
255 mediatek,mtd-eeprom = <&factory 0x0>;
262 groups = "switch_int", "mdc_mdio";
266 pcie_pins: pcie-pins {
269 groups = "pcie_pereset"; // "pcie_clk" and "pcie_wake" is unused?
273 spi_flash_pins: spi-flash-pins-33-to-38 {
276 groups = "spi0", "spi0_wp_hold";
279 pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
280 drive-strength = <8>;
281 mediatek,pull-up-adv = <0>; /* bias-disable */
284 pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
285 drive-strength = <8>;
286 mediatek,pull-down-adv = <0>; /* bias-disable */
290 wf_5g_pins: wf_5g-pins {
296 pins = "WF1_HB1", "WF1_HB2", "WF1_HB3", "WF1_HB4",
297 "WF1_HB0", "WF1_HB5", "WF1_HB6", "WF1_HB7",
298 "WF1_HB8", "WF1_TOP_CLK", "WF1_TOP_DATA";
299 drive-strength = <4>;
306 pinctrl-names = "default";
307 pinctrl-0 = <&spi_flash_pins>;
312 compatible = "jedec,spi-nor";
314 spi-max-frequency = <20000000>;
318 compatible = "spi-nand";
322 mediatek,bmt-max-ratio = <1>;
323 mediatek,bmt-max-reserved-blocks = <64>;
325 spi-max-frequency = <20000000>;
326 spi-tx-bus-width = <4>;
327 spi-rx-bus-width = <4>;
330 compatible = "fixed-partitions";
331 #address-cells = <1>;
336 reg = <0x000000 0x100000>;
340 label = "u-boot-env";
341 reg = <0x100000 0x80000>;
343 factory: partition@180000 {
345 reg = <0x180000 0x200000>;
350 reg = <0x380000 0x200000>;
355 reg = <0x580000 0x1da80000>;
362 vusb33-supply = <®_3p3v>;
363 vbus-supply = <®_5v>;