1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/gpio/gpio.h>
7 #include "mt7986a.dtsi"
10 model = "ZyXEL EX5700 (Telenor)";
11 compatible = "zyxel,ex5700-telenor", "mediatek,mt7986a";
16 led-boot = &led_status_green;
17 led-failsafe = &led_status_green;
18 led-running = &led_status_green;
19 led-upgrade = &led_status_amber;
23 stdout-path = "serial0:115200n8";
25 // Stock U-Boot crashes unless /chosen/bootargs exists
26 bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8";
30 reg = <0 0x40000000 0 0x40000000>;
33 reg_3p3v: regulator-3p3v {
34 compatible = "regulator-fixed";
35 regulator-name = "fixed-3.3V";
36 regulator-min-microvolt = <3300000>;
37 regulator-max-microvolt = <3300000>;
42 reg_5v: regulator-5v {
43 compatible = "regulator-fixed";
44 regulator-name = "fixed-5V";
45 regulator-min-microvolt = <5000000>;
46 regulator-max-microvolt = <5000000>;
53 compatible = "gpio-keys";
58 gpios = <&pio 9 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_RESTART>;
64 gpios = <&pio 10 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_WPS_BUTTON>;
70 compatible = "gpio-leds";
74 gpios = <&pio 23 GPIO_ACTIVE_HIGH>;
75 default-state = "off";
80 gpios = <&pio 25 GPIO_ACTIVE_HIGH>;
81 default-state = "off";
86 gpios = <&pio 29 GPIO_ACTIVE_HIGH>;
87 default-state = "off";
91 label = "white:status";
92 gpios = <&pio 16 GPIO_ACTIVE_HIGH>;
93 default-state = "off";
98 gpios = <&pio 17 GPIO_ACTIVE_HIGH>;
99 default-state = "off";
102 led_status_green: green2 {
103 label = "green:status";
104 gpios = <&pio 31 GPIO_ACTIVE_HIGH>;
105 default-state = "off";
108 led_status_amber: amber2 {
109 label = "amber:status";
110 gpios = <&pio 18 GPIO_ACTIVE_HIGH>;
111 default-state = "off";
119 pinctrl-names = "default";
120 pinctrl-0 = <ð_pins>;
123 compatible = "mediatek,eth-mac";
125 phy-mode = "2500base-x";
135 compatible = "mediatek,eth-mac";
138 phy-mode = "2500base-x";
139 phy-handle = <&phy6>;
143 #address-cells = <1>;
149 reset-gpios = <&pio 6 GPIO_ACTIVE_LOW>;
150 reset-delay-us = <50000>;
151 reset-post-delay-us = <20000>;
154 compatible = "ethernet-phy-ieee802.3-c45";
159 compatible = "ethernet-phy-ieee802.3-c45";
164 compatible = "mediatek,mt7531";
166 reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
167 interrupt-controller;
168 #interrupt-cells = <1>;
169 interrupt-parent = <&pio>;
170 interrupts = <66 IRQ_TYPE_LEVEL_HIGH>;
176 #address-cells = <1>;
197 phy-mode = "2500base-x";
198 phy-handle = <&phy5>;
204 phy-mode = "2500base-x";
220 pinctrl-names = "default";
221 pinctrl-0 = <&pcie_pins>;
225 reg = <0x0000 0 0 0 0>;
228 compatible = "mediatek,mt76";
229 reg = <0x0000 0 0 0 0>;
230 mediatek,mtd-eeprom = <&factory 0xa0000>;
245 pinctrl-names = "default";
246 pinctrl-0 = <&wf_5g_pins>;
248 mediatek,mtd-eeprom = <&factory 0x0>;
255 groups = "switch_int", "mdc_mdio";
259 pcie_pins: pcie-pins {
262 groups = "pcie_pereset"; // "pcie_clk" and "pcie_wake" is unused?
266 spi_flash_pins: spi-flash-pins-33-to-38 {
269 groups = "spi0", "spi0_wp_hold";
272 pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
273 drive-strength = <8>;
274 mediatek,pull-up-adv = <0>; /* bias-disable */
277 pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
278 drive-strength = <8>;
279 mediatek,pull-down-adv = <0>; /* bias-disable */
283 wf_5g_pins: wf_5g-pins {
289 pins = "WF1_HB1", "WF1_HB2", "WF1_HB3", "WF1_HB4",
290 "WF1_HB0", "WF1_HB5", "WF1_HB6", "WF1_HB7",
291 "WF1_HB8", "WF1_TOP_CLK", "WF1_TOP_DATA";
292 drive-strength = <4>;
299 pinctrl-names = "default";
300 pinctrl-0 = <&spi_flash_pins>;
305 compatible = "jedec,spi-nor";
307 spi-max-frequency = <20000000>;
311 compatible = "spi-nand";
315 mediatek,bmt-max-ratio = <1>;
316 mediatek,bmt-max-reserved-blocks = <64>;
318 spi-max-frequency = <20000000>;
319 spi-tx-buswidth = <4>;
320 spi-rx-buswidth = <4>;
323 compatible = "fixed-partitions";
324 #address-cells = <1>;
329 reg = <0x000000 0x100000>;
333 label = "u-boot-env";
334 reg = <0x100000 0x80000>;
336 factory: partition@180000 {
338 reg = <0x180000 0x200000>;
341 compatible = "nvmem-cells";
342 #address-cells = <1>;
347 reg = <0x380000 0x200000>;
352 reg = <0x580000 0x1da80000>;
359 vusb33-supply = <®_3p3v>;
360 vbus-supply = <®_5v>;