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>
7 #include <dt-bindings/leds/common.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 function = LED_FUNCTION_POWER;
25 color = <LED_COLOR_ID_GREEN>;
26 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
31 label = "green:wlan2g";
32 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
36 label = "green:notification";
37 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
41 label = "green:wlan5g";
42 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
47 compatible = "gpio-keys";
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 compatible = "fixed-layout";
102 #address-cells = <1>;
105 eeprom_factory_0: eeprom@0 {
109 macaddr_factory_4: macaddr@4 {
115 iNIC_rf: partition@48000 {
117 reg = <0x48000 0x8000>;
121 compatible = "fixed-layout";
122 #address-cells = <1>;
125 eeprom_iNIC_rf_0: eeprom@0 {
133 reg = <0x50000 0x20000>;
138 compatible = "denx,uimage";
140 reg = <0x70000 0x6b4000>;
144 label = "manufacture";
145 reg = <0x724000 0x8c000>;
151 reg = <0x7b0000 0x10000>;
157 reg = <0x7c0000 0x40000>;
165 pinctrl-names = "default";
166 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
168 nvmem-cells = <&macaddr_factory_4>;
169 nvmem-cell-names = "mac-address";
173 mediatek,fixed-link = <1000 1 1 1>;
178 #address-cells = <1>;
215 mediatek,ephy-base = /bits/ 8 <12>;
220 groups = "i2c", "uartf";
231 reg = <0x0000 0 0 0 0>;
232 nvmem-cells = <&eeprom_iNIC_rf_0>;
233 nvmem-cell-names = "eeprom";
234 ieee80211-freq-limit = <5000000 6000000>;
239 nvmem-cells = <&eeprom_factory_0>;
240 nvmem-cell-names = "eeprom";