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 device_type = "memory";
22 reg = <0x0 0x4000000>;
26 compatible = "gpio-leds";
29 label = "wn-ac1167gr:green:power";
30 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
35 label = "wn-ac1167gr:green:wlan2g";
36 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
40 label = "wn-ac1167gr:green:notification";
41 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
45 label = "wn-ac1167gr:green:wlan5g";
46 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
51 compatible = "gpio-keys-polled";
56 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_WPS_BUTTON>;
62 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_RESTART>;
68 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
70 linux,input-type = <EV_SW>;
79 compatible = "jedec,spi-nor";
81 spi-max-frequency = <10000000>;
84 compatible = "fixed-partitions";
96 reg = <0x30000 0x10000>;
100 Factory: partition@40000 {
102 reg = <0x40000 0x8000>;
106 iNIC_rf: partition@48000 {
108 reg = <0x48000 0x8000>;
114 reg = <0x50000 0x20000>;
119 compatible = "denx,uimage";
121 reg = <0x70000 0x6b4000>;
125 label = "manufacture";
126 reg = <0x724000 0x8c000>;
132 reg = <0x7b0000 0x10000>;
138 reg = <0x7c0000 0x40000>;
146 pinctrl-names = "default";
147 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
148 mtd-mac-address = <&Factory 0x4>;
152 mediatek,fixed-link = <1000 1 1 1>;
157 #address-cells = <1>;
194 state_default: pinctrl0 {
196 ralink,group = "i2c", "uartf";
197 ralink,function = "gpio";
208 reg = <0x0000 0 0 0 0>;
209 mediatek,mtd-eeprom = <&iNIC_rf 0x0>;
210 ieee80211-freq-limit = <5000000 6000000>;
215 ralink,mtd-eeprom = <&Factory 0x0>;