1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/leds/common.h>
8 #include "mt7986b.dtsi"
11 model = "Netgear WAX220";
12 compatible = "netgear,wax220", "mediatek,mt7986b";
16 led-boot = &led_power_blue;
17 led-failsafe = &led_power_amber;
18 led-running = &led_power_green;
19 led-upgrade = &led_power_amber;
23 compatible = "gpio-keys";
26 gpios = <&pio 9 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
33 stdout-path = "serial0:115200n8";
37 compatible = "gpio-leds";
40 gpios = <&pio 12 GPIO_ACTIVE_LOW>;
41 label = "green:wlan5g";
44 led_power_amber: power_amber {
45 gpios = <&pio 15 GPIO_ACTIVE_LOW>;
46 function = LED_FUNCTION_POWER;
47 color = <LED_COLOR_ID_AMBER>;
51 gpios = <&pio 19 GPIO_ACTIVE_HIGH>;
52 label = "green:wlan2g";
55 led_power_blue: power_blue {
56 gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
57 function = LED_FUNCTION_POWER;
58 color = <LED_COLOR_ID_BLUE>;
61 led_power_green: power_green {
62 gpios = <&pio 10 GPIO_ACTIVE_LOW>;
63 function = LED_FUNCTION_POWER;
64 color = <LED_COLOR_ID_GREEN>;
68 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
69 label = "blue:wlan2g";
73 gpios = <&pio 22 GPIO_ACTIVE_HIGH>;
74 function = LED_FUNCTION_LAN;
75 color = <LED_COLOR_ID_GREEN>;
79 gpios = <&pio 13 GPIO_ACTIVE_LOW>;
80 function = LED_FUNCTION_LAN;
81 color = <LED_COLOR_ID_AMBER>;
85 gpios = <&pio 2 GPIO_ACTIVE_LOW>;
86 label = "blue:wlan5g";
99 compatible = "mediatek,eth-mac";
101 phy-handle = <&phy6>;
102 phy-mode = "2500base-x";
106 #address-cells = <1>;
112 phy6: ethernet-phy@6 {
114 reset-assert-us = <100000>;
115 reset-deassert-us = <100000>;
116 reset-gpios = <&pio 6 GPIO_ACTIVE_LOW>;
117 interrupt-controller;
118 #interrupt-cells = <1>;
119 interrupt-parent = <&pio>;
120 interrupts = <46 IRQ_TYPE_LEVEL_HIGH>;
125 spi_flash_pins: spi-flash-pins-33-to-38 {
128 groups = "spi0", "spi0_wp_hold";
131 pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
132 drive-strength = <8>;
133 mediatek,pull-up-adv = <0>; /* bias-disable */
136 pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
137 drive-strength = <8>;
138 mediatek,pull-down-adv = <0>; /* bias-disable */
142 wf_2g_5g_pins: wf_2g_5g-pins {
145 groups = "wf_2g", "wf_5g";
148 pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4",
149 "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
150 "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
151 "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1",
152 "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
153 "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
154 "WF1_TOP_CLK", "WF1_TOP_DATA";
155 drive-strength = <4>;
159 wf_dbdc_pins: wf-dbdc-pins {
165 pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4",
166 "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
167 "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
168 "WF0_TOP_CLK", "WF0_TOP_DATA";
169 drive-strength = <4>;
175 pinctrl-names = "default";
176 pinctrl-0 = <&spi_flash_pins>;
179 spi_nand_flash: flash@0 {
180 #address-cells = <1>;
182 compatible = "spi-nand";
185 spi-max-frequency = <20000000>;
186 spi-tx-bus-width = <4>;
187 spi-rx-bus-width = <4>;
190 mediatek,bmt-max-ratio = <1>;
191 mediatek,bmt-max-reserved-blocks = <256>;
192 mediatek,bmt-remap-range = <0x0 0x580000>;
194 partitions: partitions {
195 #address-cells = <0x1>;
197 compatible = "fixed-partitions";
202 reg = <0x0 0x100000>;
206 label = "u-boot-env";
207 reg = <0x100000 0x80000>;
210 factory: partition@180000 {
212 reg = <0x180000 0x200000>;
217 reg = <0x380000 0x200000>;
222 reg = <0x580000 0x5140000>;
227 reg = <0x56c0000 0x400000>;
232 reg = <0x5ac0000 0x100000>;
237 reg = <0x5bc0000 0x400000>;
242 reg = <0x5fc0000 0x200000>;
247 reg = <0x61c0000 0x100000>;
251 label = "NTGRcryptK";
252 reg = <0x62c0000 0x100000>;
256 label = "NTGRcryptD";
257 reg = <0x63c0000 0x500000>;
262 reg = <0x68c0000 0x100000>;
267 reg = <0x69c0000 0x640000>;
288 pinctrl-names = "default", "dbdc";
289 pinctrl-0 = <&wf_2g_5g_pins>;
290 pinctrl-1 = <&wf_dbdc_pins>;
292 mediatek,mtd-eeprom = <&factory 0x0>;