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-a3", "mediatek,mt7621-soc";
10 model = "D-Link DIR-853 A3";
13 label-mac-device = &gmac0;
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 8 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WPS_BUTTON>;
37 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RFKILL>;
43 compatible = "gpio-leds";
45 led_power_orange: power_orange {
46 label = "orange:power";
47 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
50 led_power_blue: power_blue {
52 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
55 led_net_orange: net_orange {
57 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
62 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
67 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
68 trigger-sources = <&xhci_ehci_port1>;
69 linux,default-trigger = "usbport";
73 label = "blue:wlan2g";
74 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
75 linux,default-trigger = "phy0radio";
79 label = "blue:wlan5g";
80 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
81 linux,default-trigger = "phy1radio";
90 compatible = "fixed-partitions";
102 reg = <0x80000 0x80000>;
106 factory: partition@100000 {
108 reg = <0x100000 0x40000>;
114 reg = <0x140000 0x40000>;
120 compatible = "openwrt,uimage", "denx,uimage";
121 openwrt,padding = <96>;
122 reg = <0x180000 0x2800000>;
127 reg = <0x2980000 0x2000000>;
133 reg = <0x4980000 0x2800000>;
138 reg = <0x7180000 0x600000>;
144 reg = <0x7780000 0x880000>;
156 compatible = "mediatek,mt76";
157 reg = <0x0000 0 0 0 0>;
158 mediatek,mtd-eeprom = <&factory 0x0>;
159 /* 5 GHz (phy1) does not take the address from calibration data,
160 but setting it manually here works */
161 mtd-mac-address = <&factory 0x4>;
166 mtd-mac-address = <&factory 0xe000>;
194 mtd-mac-address = <&factory 0xe006>;
201 groups = "i2c", "uart2", "uart3", "jtag", "wdt";