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";
50 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_WPS_BUTTON>;
56 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_RESTART>;
62 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
64 linux,input-type = <EV_SW>;
73 compatible = "jedec,spi-nor";
75 spi-max-frequency = <10000000>;
78 compatible = "fixed-partitions";
90 reg = <0x30000 0x10000>;
94 factory: partition@40000 {
96 reg = <0x40000 0x8000>;
100 iNIC_rf: partition@48000 {
102 reg = <0x48000 0x8000>;
108 reg = <0x50000 0x20000>;
113 compatible = "denx,uimage";
115 reg = <0x70000 0x6b4000>;
119 label = "manufacture";
120 reg = <0x724000 0x8c000>;
126 reg = <0x7b0000 0x10000>;
132 reg = <0x7c0000 0x40000>;
140 pinctrl-names = "default";
141 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
142 mtd-mac-address = <&factory 0x4>;
146 mediatek,fixed-link = <1000 1 1 1>;
151 #address-cells = <1>;
188 state_default: pinctrl0 {
190 ralink,group = "i2c", "uartf";
191 ralink,function = "gpio";
202 reg = <0x0000 0 0 0 0>;
203 mediatek,mtd-eeprom = <&iNIC_rf 0x0>;
204 ieee80211-freq-limit = <5000000 6000000>;
209 ralink,mtd-eeprom = <&factory 0x0>;