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>
9 compatible = "dlink,dir-853-a1", "mediatek,mt7621-soc";
10 model = "D-Link DIR-853 A1";
13 led-boot = &led_power_orange;
14 led-failsafe = &led_power_blue;
15 led-running = &led_power_blue;
16 led-upgrade = &led_net_orange;
20 compatible = "gpio-keys";
24 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RFKILL>;
30 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_WPS_BUTTON>;
42 compatible = "gpio-leds";
45 label = "blue:wlan5g";
46 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy1radio";
51 label = "blue:wlan2g";
52 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "phy0radio";
58 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
59 trigger-sources = <&xhci_ehci_port1>;
60 linux,default-trigger = "usbport";
63 led_power_orange: power_orange {
64 label = "orange:power";
65 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
68 led_power_blue: power_blue {
70 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
73 led_net_orange: net_orange {
75 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
80 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
89 compatible = "jedec,spi-nor";
91 spi-max-frequency = <50000000>;
94 compatible = "fixed-partitions";
105 label = "u-boot-env";
106 reg = <0x30000 0x10000>;
110 factory: partition@40000 {
111 compatible = "nvmem-cells";
113 reg = <0x40000 0x10000>;
114 #address-cells = <1>;
118 eeprom_factory_0: eeprom@0 {
122 macaddr_factory_e000: macaddr@e000 {
126 macaddr_factory_e006: macaddr@e006 {
132 label = "config2_stock";
133 reg = <0x50000 0x10000>;
138 compatible = "openwrt,uimage", "denx,uimage";
139 openwrt,padding = <96>;
141 reg = <0x60000 0xf50000>;
145 label = "private_stock";
146 reg = <0xfb0000 0x50000>;
160 compatible = "mediatek,mt76";
161 reg = <0x0000 0 0 0 0>;
162 nvmem-cells = <&eeprom_factory_0>;
163 nvmem-cell-names = "eeprom";
165 /* The correct Mac addresses are set in 10_fix_wifi_mac. */
170 nvmem-cells = <&macaddr_factory_e000>;
171 nvmem-cell-names = "mac-address";
177 phy-handle = <ðphy4>;
179 nvmem-cells = <&macaddr_factory_e006>;
180 nvmem-cell-names = "mac-address";
184 ethphy4: ethernet-phy@4 {
215 groups = "i2c", "uart2", "uart3", "jtag", "wdt";