1 // SPDX-License-Identifier: GPL-2.0-only
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 = "lb-link,bl-w1200", "ralink,mt7620a-soc";
11 model = "LB-Link BL-W1200";
15 led-failsafe = &led_wps;
16 led-upgrade = &led_wps;
20 compatible = "gpio-keys";
24 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
30 compatible = "gpio-leds";
33 function = LED_FUNCTION_WPS;
34 color = <LED_COLOR_ID_GREEN>;
35 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
48 compatible = "jedec,spi-nor";
50 spi-max-frequency = <50000000>;
53 compatible = "fixed-partitions";
65 reg = <0x30000 0x10000>;
69 factory: partition@40000 {
71 reg = <0x40000 0x10000>;
75 compatible = "fixed-layout";
79 eeprom_factory_0: eeprom@0 {
83 eeprom_factory_8000: eeprom@8000 {
87 macaddr_factory_28: macaddr@28 {
94 compatible = "denx,uimage";
96 reg = <0x50000 0x7b0000>;
104 groups = "uartf", "spi refclk";
110 pinctrl-names = "default";
111 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
113 nvmem-cells = <&macaddr_factory_28>;
114 nvmem-cell-names = "mac-address";
116 mediatek,portmap = "wllll";
120 mediatek,fixed-link = <1000 1 1 1>;
160 mediatek,ephy-base = /bits/ 8 <12>;
164 nvmem-cells = <&eeprom_factory_0>;
165 nvmem-cell-names = "eeprom";
174 compatible = "mediatek,mt76";
175 reg = <0x0000 0 0 0 0>;
176 ieee80211-freq-limit = <5000000 6000000>;
177 nvmem-cells = <&eeprom_factory_8000>;
178 nvmem-cell-names = "eeprom";