1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7620a.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "iodata,wn-ac1167gr", "ralink,mt7620a-soc";
11 model = "I-O DATA WN-AC1167GR";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 compatible = "gpio-leds";
24 label = "wn-ac1167gr:green:power";
25 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
30 label = "wn-ac1167gr:green:wlan2g";
31 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
35 label = "wn-ac1167gr:green:notification";
36 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
40 label = "wn-ac1167gr:green:wlan5g";
41 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-keys-polled";
51 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_WPS_BUTTON>;
57 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_RESTART>;
63 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
65 linux,input-type = <EV_SW>;
74 compatible = "jedec,spi-nor";
76 spi-max-frequency = <10000000>;
79 compatible = "fixed-partitions";
91 reg = <0x30000 0x10000>;
95 Factory: partition@40000 {
97 reg = <0x40000 0x8000>;
101 iNIC_rf: partition@48000 {
103 reg = <0x48000 0x8000>;
109 reg = <0x50000 0x20000>;
114 compatible = "denx,uimage";
116 reg = <0x70000 0x6b4000>;
120 label = "manufacture";
121 reg = <0x724000 0x8c000>;
127 reg = <0x7b0000 0x10000>;
133 reg = <0x7c0000 0x40000>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
143 mtd-mac-address = <&Factory 0x4>;
147 mediatek,fixed-link = <1000 1 1 1>;
152 #address-cells = <1>;
189 state_default: pinctrl0 {
191 ralink,group = "i2c", "uartf";
192 ralink,function = "gpio";
203 reg = <0x0000 0 0 0 0>;
204 mediatek,mtd-eeprom = <&iNIC_rf 0x0>;
205 ieee80211-freq-limit = <5000000 6000000>;
210 ralink,mtd-eeprom = <&Factory 0x0>;