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 = "dlink,dir-806a-b1", "ralink,mt7620a-soc";
11 model = "D-Link DIR-806A B1";
15 led-failsafe = &wps_led;
16 led-running = &wps_led;
17 led-upgrade = &wps_led;
21 compatible = "gpio-keys";
25 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; // #12
26 linux,code = <KEY_RESTART>;
31 compatible = "gpio-leds";
34 color = <LED_COLOR_ID_GREEN>;
35 function = LED_FUNCTION_WLAN;
36 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; // #72
40 color = <LED_COLOR_ID_GREEN>;
41 function = LED_FUNCTION_WPS;
42 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; // #39
65 compatible = "jedec,spi-nor";
67 spi-max-frequency = <48000000>;
70 compatible = "fixed-partitions";
88 reg = <0x30000 0x10000>;
91 factory: partition@40000 {
93 reg = <0x40000 0x10000>;
97 compatible = "fixed-layout";
101 eeprom_factory_0: eeprom@0 {
105 eeprom_factory_8000: eeprom@8000 {
106 reg = <0x8000 0x200>;
109 macaddr_factory_4: macaddr@4 {
110 compatible = "mac-base";
112 #nvmem-cell-cells = <1>;
115 macaddr_factory_8004: macaddr@8004 {
116 compatible = "mac-base";
118 #nvmem-cell-cells = <1>;
124 compatible = "denx,uimage";
126 reg = <0x50000 0x7b0000>;
135 groups = "i2c", "uartf", "ephy";
141 nvmem-cells = <&macaddr_factory_4 (-2)>;
142 nvmem-cell-names = "mac-address";
146 pinctrl-names = "default", "pa_gpio";
147 pinctrl-0 = <&pa_pins>;
148 pinctrl-1 = <&pa_gpio_pins>;
150 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4 (-1)>;
151 nvmem-cell-names = "eeprom", "mac-address";
160 reg = <0x0000 0 0 0 0>;
161 ieee80211-freq-limit = <5000000 6000000>;
162 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_8004 (-3)>;
163 nvmem-cell-names = "eeprom", "mac-address";