1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "iodata,wn-deax1800gr", "mediatek,mt7621-soc";
11 model = "I-O DATA WN-DEAX1800GR";
14 led-boot = &led_status_green;
15 led-failsafe = &led_status_red;
16 led-upgrade = &led_status_green;
17 label-mac-device = &gmac1;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-leds";
27 led_status_green: led-0 {
28 label = "green:status";
29 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
30 color = <LED_COLOR_ID_GREEN>;
31 function = LED_FUNCTION_STATUS;
34 led_status_red: led-1 {
36 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
37 color = <LED_COLOR_ID_RED>;
38 function = LED_FUNCTION_STATUS;
42 label = "green:wps_wifi";
43 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
44 color = <LED_COLOR_ID_GREEN>;
45 function = LED_FUNCTION_WPS;
49 label = "green:power";
50 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
51 color = <LED_COLOR_ID_GREEN>;
52 function = LED_FUNCTION_POWER;
57 label = "green:router";
58 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
59 color = <LED_COLOR_ID_GREEN>;
60 function = LED_FUNCTION_INDICATOR;
64 label = "green:internet";
65 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
66 color = <LED_COLOR_ID_GREEN>;
67 function = LED_FUNCTION_WAN;
72 compatible = "gpio-keys";
76 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_WPS_BUTTON>;
82 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_RESTART>;
88 gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
90 linux,input-type = <EV_SW>;
99 mediatek,bmt-remap-range =
100 <0x0000000 0x780000>, /* u-boot - kernel1(6 MiB) */
101 <0x2f80000 0x600000>, /* kernel2 - kernel2(6 MiB) */
102 <0x5d80000 0x780000>; /* storage - working */
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
116 label = "u-boot-env";
117 reg = <0x80000 0x80000>;
122 compatible = "nvmem-cells";
124 reg = <0x100000 0x80000>;
128 compatible = "fixed-layout";
129 #address-cells = <1>;
136 macaddr_factory_4: macaddr@4 {
137 compatible = "mac-base";
139 #nvmem-cell-cells = <1>;
146 reg = <0x180000 0x600000>;
151 reg = <0x780000 0x2800000>;
156 reg = <0x2f80000 0x2e00000>;
161 reg = <0x5d80000 0x600000>;
167 reg = <0x6380000 0x100000>;
173 reg = <0x6480000 0x80000>;
179 nvmem-cells = <&macaddr_factory_4 0>;
180 nvmem-cell-names = "mac-address";
186 phy-handle = <ðphy0>;
188 nvmem-cells = <&macaddr_factory_4 2>;
189 nvmem-cell-names = "mac-address";
193 ethphy0: ethernet-phy@0 {
217 * pcie0: MT7915 HIF (14c3,7916)
218 * pcie1: MT7915 (14c3,7915)
222 compatible = "mediatek,mt76";
223 reg = <0x0000 0 0 0 0>;
225 nvmem-cells = <&eeprom>;
226 nvmem-cell-names = "eeprom";
232 groups = "i2c", "jtag", "uart2", "uart3";