1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
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-853-a1", "mediatek,mt7621-soc";
11 model = "D-Link DIR-853 A1";
14 led-boot = &led_power_orange;
15 led-failsafe = &led_power_blue;
16 led-running = &led_power_blue;
17 led-upgrade = &led_net_orange;
21 compatible = "gpio-keys";
25 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RFKILL>;
31 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
37 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_WPS_BUTTON>;
43 compatible = "gpio-leds";
46 label = "blue:wlan5g";
47 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy1radio";
52 label = "blue:wlan2g";
53 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy0radio";
58 function = LED_FUNCTION_USB;
59 color = <LED_COLOR_ID_BLUE>;
60 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
61 trigger-sources = <&xhci_ehci_port1>;
62 linux,default-trigger = "usbport";
65 led_power_orange: power_orange {
66 function = LED_FUNCTION_POWER;
67 color = <LED_COLOR_ID_ORANGE>;
68 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
71 led_power_blue: power_blue {
72 function = LED_FUNCTION_POWER;
73 color = <LED_COLOR_ID_BLUE>;
74 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
77 led_net_orange: net_orange {
79 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
84 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
93 compatible = "jedec,spi-nor";
95 spi-max-frequency = <50000000>;
98 compatible = "fixed-partitions";
109 label = "u-boot-env";
110 reg = <0x30000 0x10000>;
116 reg = <0x40000 0x10000>;
120 compatible = "fixed-layout";
121 #address-cells = <1>;
124 eeprom_factory_0: eeprom@0 {
128 macaddr_factory_e000: macaddr@e000 {
132 macaddr_factory_e006: macaddr@e006 {
139 label = "config2_stock";
140 reg = <0x50000 0x10000>;
145 compatible = "openwrt,uimage", "denx,uimage";
146 openwrt,padding = <96>;
148 reg = <0x60000 0xf50000>;
152 label = "private_stock";
153 reg = <0xfb0000 0x50000>;
167 compatible = "mediatek,mt76";
168 reg = <0x0000 0 0 0 0>;
169 nvmem-cells = <&eeprom_factory_0>;
170 nvmem-cell-names = "eeprom";
172 /* The correct Mac addresses are set in 10_fix_wifi_mac. */
177 nvmem-cells = <&macaddr_factory_e000>;
178 nvmem-cell-names = "mac-address";
184 phy-handle = <ðphy4>;
186 nvmem-cells = <&macaddr_factory_e006>;
187 nvmem-cell-names = "mac-address";
191 /delete-property/ interrupts;
220 groups = "i2c", "uart2", "uart3", "jtag", "wdt";