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 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
29 color = <LED_COLOR_ID_GREEN>;
30 function = LED_FUNCTION_STATUS;
33 led_status_red: led-1 {
34 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
35 color = <LED_COLOR_ID_RED>;
36 function = LED_FUNCTION_STATUS;
40 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
41 color = <LED_COLOR_ID_GREEN>;
42 function = LED_FUNCTION_WPS;
46 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
47 color = <LED_COLOR_ID_GREEN>;
48 function = LED_FUNCTION_POWER;
53 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
54 color = <LED_COLOR_ID_GREEN>;
55 function = LED_FUNCTION_INDICATOR;
59 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
60 color = <LED_COLOR_ID_GREEN>;
61 function = LED_FUNCTION_WAN;
66 compatible = "gpio-keys";
70 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_WPS_BUTTON>;
76 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_RESTART>;
82 gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
84 linux,input-type = <EV_SW>;
93 mediatek,bmt-remap-range =
94 <0x0000000 0x780000>, /* u-boot - kernel1(6 MiB) */
95 <0x2f80000 0x600000>, /* kernel2 - kernel2(6 MiB) */
96 <0x5d80000 0x780000>; /* storage - working */
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
110 label = "u-boot-env";
111 reg = <0x80000 0x80000>;
117 reg = <0x100000 0x80000>;
121 compatible = "fixed-layout";
122 #address-cells = <1>;
129 macaddr_factory_4: macaddr@4 {
130 compatible = "mac-base";
132 #nvmem-cell-cells = <1>;
136 reg = <0xe10 0x19c10>;
143 reg = <0x180000 0x600000>;
148 reg = <0x780000 0x2800000>;
153 reg = <0x2f80000 0x2e00000>;
158 reg = <0x5d80000 0x600000>;
164 reg = <0x6380000 0x100000>;
170 reg = <0x6480000 0x80000>;
176 nvmem-cells = <&macaddr_factory_4 0>;
177 nvmem-cell-names = "mac-address";
183 phy-handle = <ðphy0>;
185 nvmem-cells = <&macaddr_factory_4 2>;
186 nvmem-cell-names = "mac-address";
190 ethphy0: ethernet-phy@0 {
214 * pcie0: MT7915 HIF (14c3,7916)
215 * pcie1: MT7915 (14c3,7915)
219 compatible = "mediatek,mt76";
220 reg = <0x0000 0 0 0 0>;
222 nvmem-cells = <&eeprom>, <&precal>;
223 nvmem-cell-names = "eeprom", "precal";
229 groups = "i2c", "jtag", "uart2", "uart3";