1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2022, Marcel Ziswiler <marcel@ziswiler.com> */
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
11 model = "Netgear WAX206";
12 compatible = "netgear,wax206", "mediatek,mt7622";
16 led-boot = &led_power_r;
17 led-failsafe = &led_power_r;
18 led-running = &led_power_g;
19 led-upgrade = &led_power_g;
24 stdout-path = "serial0:115200n8";
25 bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8 swiotlb=512";
30 proc-supply = <&mt6380_vcpu_reg>;
31 sram-supply = <&mt6380_vm_reg>;
35 proc-supply = <&mt6380_vcpu_reg>;
36 sram-supply = <&mt6380_vm_reg>;
41 compatible = "gpio-keys";
44 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RESTART>;
50 gpios = <&pio 102 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_WPS_BUTTON>;
57 compatible = "gpio-leds";
59 led_power_r: power_red {
61 gpios = <&pio 3 GPIO_ACTIVE_LOW>;
65 led_power_g: power_green {
66 default-state = "off";
67 gpios = <&pio 4 GPIO_ACTIVE_LOW>;
68 label = "power:green";
72 default-state = "off";
73 gpios = <&pio 20 GPIO_ACTIVE_HIGH>;
78 default-state = "off";
79 gpios = <&pio 17 GPIO_ACTIVE_LOW>;
84 default-state = "off";
85 gpios = <&pio 85 GPIO_ACTIVE_LOW>;
86 label = "wifin:green";
90 default-state = "off";
91 gpios = <&pio 86 GPIO_ACTIVE_LOW>;
96 default-state = "off";
97 gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
98 label = "wifia:green";
102 default-state = "off";
103 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
104 label = "wifia:blue";
109 reg = <0 0x40000000 0 0x40000000>;
122 pinctrl-names = "default";
123 pinctrl-0 = <&irrx_pins>;
128 pinctrl-names = "default";
129 pinctrl-0 = <ð_pins>;
133 compatible = "mediatek,eth-mac";
134 nvmem-cells = <&macaddr_factory_7fff4>;
135 nvmem-cell-names = "mac-address";
136 phy-mode = "2500base-x";
147 #address-cells = <1>;
151 compatible = "mediatek,mt7531";
152 #interrupt-cells = <1>;
153 interrupt-controller;
154 interrupt-parent = <&pio>;
155 interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
157 reset-gpios = <&pio 54 GPIO_ACTIVE_HIGH>;
160 #address-cells = <1>;
185 nvmem-cells = <&macaddr_factory_7fffa>;
186 nvmem-cell-names = "mac-address";
187 phy-handle = <&rtl8221b_phy>;
195 phy-mode = "2500base-x";
207 rtl8221b_phy: ethernet-phy@7 {
208 compatible = "ethernet-phy-id001c.c849";
210 reset-gpios = <&pio 101 GPIO_ACTIVE_LOW>;
211 interrupts = <52 IRQ_TYPE_LEVEL_HIGH>;
212 reset-assert-us = <100000>;
213 reset-deassert-us = <100000>;
219 pinctrl-names = "default";
220 pinctrl-0 = <&pcie0_pins>;
225 pinctrl-names = "default";
226 pinctrl-0 = <&pcie1_pins>;
234 groups = "mdc_mdio", "rgmii_via_gmac2";
238 irrx_pins: irrx-pins {
245 irtx_pins: irtx-pins {
252 pcie0_pins: pcie0-pins {
255 groups = "pcie0_pad_perst",
261 pcie1_pins: pcie1-pins {
264 groups = "pcie1_pad_perst",
270 pmic_bus_pins: pmic-bus-pins {
277 pwm7_pins: pwm1-2-pins {
280 groups = "pwm_ch7_2";
284 wled_pins: wled-pins {
291 /* Serial NAND is shared pin with SPI-NOR */
292 serial_nand_pins: serial-nand-pins {
299 spic0_pins: spic0-pins {
306 spic1_pins: spic1-pins {
313 uart0_pins: uart0-pins {
316 groups = "uart0_0_tx_rx";
320 uart2_pins: uart2-pins {
323 groups = "uart2_1_tx_rx";
327 watchdog_pins: watchdog-pins {
329 function = "watchdog";
336 pinctrl-names = "default";
337 pinctrl-0 = <&pwm7_pins>;
342 pinctrl-names = "default";
343 pinctrl-0 = <&pmic_bus_pins>;
361 reg = <0x0000 0 0 0 0>;
362 ieee80211-freq-limit = <5000000 6000000>;
367 pinctrl-names = "default";
368 pinctrl-0 = <&serial_nand_pins>;
372 compatible = "spi-nand";
373 mediatek,bmt-table-size = <0x1000>;
375 nand-ecc-engine = <&snfi>;
377 spi-rx-bus-width = <4>;
378 spi-tx-bus-width = <4>;
381 compatible = "fixed-partitions";
382 #address-cells = <1>;
387 reg = <0x00000 0x0080000>;
393 reg = <0x80000 0x0040000>;
398 label = "Bootloader";
399 reg = <0xc0000 0x0080000>;
405 reg = <0x140000 0x0080000>;
408 factory: partition@1c0000 {
409 compatible = "nvmem-cells";
411 reg = <0x1c0000 0x0100000>;
412 #address-cells = <1>;
416 macaddr_factory_7fff4: macaddr@7fff4 {
420 macaddr_factory_7fffa: macaddr@7fffa {
427 reg = <0x2c0000 0x2600000>;
429 compatible = "fixed-partitions";
430 #address-cells = <1>;
435 reg = <0x0 0x600000>;
440 reg = <0x600000 0x2000000>;
445 label = "firmware_backup";
446 reg = <0x28c0000 0x2600000>;
452 reg = <0x4ec0000 0x800000>;
458 reg = <0x56c0000 0x400000>;
464 reg = <0x5ac0000 0x100000>;
470 reg = <0x5bc0000 0x400000>;
476 reg = <0x5fc0000 0x200000>;
482 reg = <0x61c0000 0x100000>;
487 label = "NTGRcryptK";
488 reg = <0x62c0000 0x100000>;
493 label = "NTGRcryptD";
494 reg = <0x63c0000 0x500000>;
500 reg = <0x68c0000 0x100000>;
506 reg = <0x69c0000 0x640000>;
515 pinctrl-names = "default";
516 pinctrl-0 = <&spic0_pins>;
521 pinctrl-names = "default";
522 pinctrl-0 = <&spic1_pins>;
535 pinctrl-names = "default";
536 pinctrl-0 = <&uart0_pins>;
541 pinctrl-names = "default";
542 pinctrl-0 = <&uart2_pins>;
547 pinctrl-names = "default";
548 pinctrl-0 = <&watchdog_pins>;
553 mediatek,mtd-eeprom = <&factory 0x0000>;
558 mediatek,mtd-eeprom = <&factory 0x05000>;