1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "iodata,wn-ac1167gr", "ralink,mt7620a-soc";
10 model = "I-O DATA WN-AC1167GR";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 compatible = "gpio-leds";
23 label = "green:power";
24 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
29 label = "green:wlan2g";
30 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
34 label = "green:notification";
35 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
39 label = "green:wlan5g";
40 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
45 compatible = "gpio-keys";
49 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_WPS_BUTTON>;
55 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
61 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
63 linux,input-type = <EV_SW>;
72 compatible = "jedec,spi-nor";
74 spi-max-frequency = <10000000>;
77 compatible = "fixed-partitions";
89 reg = <0x30000 0x10000>;
93 factory: partition@40000 {
95 reg = <0x40000 0x8000>;
99 compatible = "fixed-layout";
100 #address-cells = <1>;
103 eeprom_factory_0: eeprom@0 {
107 macaddr_factory_4: macaddr@4 {
113 iNIC_rf: partition@48000 {
115 reg = <0x48000 0x8000>;
119 compatible = "fixed-layout";
120 #address-cells = <1>;
123 eeprom_iNIC_rf_0: eeprom@0 {
131 reg = <0x50000 0x20000>;
136 compatible = "denx,uimage";
138 reg = <0x70000 0x6b4000>;
142 label = "manufacture";
143 reg = <0x724000 0x8c000>;
149 reg = <0x7b0000 0x10000>;
155 reg = <0x7c0000 0x40000>;
163 pinctrl-names = "default";
164 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
166 nvmem-cells = <&macaddr_factory_4>;
167 nvmem-cell-names = "mac-address";
171 mediatek,fixed-link = <1000 1 1 1>;
176 #address-cells = <1>;
213 mediatek,ephy-base = /bits/ 8 <12>;
218 groups = "i2c", "uartf";
229 reg = <0x0000 0 0 0 0>;
230 nvmem-cells = <&eeprom_iNIC_rf_0>;
231 nvmem-cell-names = "eeprom";
232 ieee80211-freq-limit = <5000000 6000000>;
237 nvmem-cells = <&eeprom_factory_0>;
238 nvmem-cell-names = "eeprom";