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;
15 led-boot = &led_power_orange;
16 led-failsafe = &led_power_blue;
17 led-running = &led_power_blue;
18 led-upgrade = &led_net_orange;
22 compatible = "gpio-keys";
26 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
32 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_WPS_BUTTON>;
38 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RFKILL>;
44 compatible = "gpio-leds";
46 led_power_orange: power_orange {
47 label = "orange:power";
48 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
51 led_power_blue: power_blue {
53 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
56 led_net_orange: net_orange {
58 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
63 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
68 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
69 trigger-sources = <&xhci_ehci_port1>;
70 linux,default-trigger = "usbport";
74 label = "blue:wlan2g";
75 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
76 linux,default-trigger = "phy0radio";
80 label = "blue:wlan5g";
81 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
82 linux,default-trigger = "phy1radio";
91 compatible = "fixed-partitions";
103 reg = <0x80000 0x80000>;
107 factory: partition@100000 {
109 reg = <0x100000 0x40000>;
115 reg = <0x140000 0x40000>;
121 compatible = "openwrt,uimage", "denx,uimage";
122 openwrt,padding = <96>;
123 reg = <0x180000 0x2800000>;
128 reg = <0x2980000 0x2000000>;
134 reg = <0x4980000 0x2800000>;
139 reg = <0x7180000 0x600000>;
145 reg = <0x7780000 0x880000>;
157 compatible = "mediatek,mt76";
158 reg = <0x0000 0 0 0 0>;
159 mediatek,mtd-eeprom = <&factory 0x0>;
160 /* 5 GHz (phy1) does not take the address from calibration data,
161 but setting it manually here works */
162 nvmem-cells = <&macaddr_factory_4>;
163 nvmem-cell-names = "mac-address";
168 nvmem-cells = <&macaddr_factory_e000>;
169 nvmem-cell-names = "mac-address";
197 nvmem-cells = <&macaddr_factory_e006>;
198 nvmem-cell-names = "mac-address";
205 groups = "i2c", "uart2", "uart3", "jtag", "wdt";
211 compatible = "nvmem-cells";
212 #address-cells = <1>;
215 macaddr_factory_4: macaddr@4 {
219 macaddr_factory_e000: macaddr@e000 {
223 macaddr_factory_e006: macaddr@e006 {