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 {
108 compatible = "nvmem-cells";
110 reg = <0x100000 0x40000>;
111 #address-cells = <1>;
115 eeprom_factory_0: eeprom@0 {
119 macaddr_factory_4: macaddr@4 {
123 macaddr_factory_e000: macaddr@e000 {
127 macaddr_factory_e006: macaddr@e006 {
134 reg = <0x140000 0x40000>;
140 compatible = "openwrt,uimage", "denx,uimage";
141 openwrt,padding = <96>;
142 reg = <0x180000 0x2800000>;
147 reg = <0x2980000 0x2000000>;
153 reg = <0x4980000 0x2800000>;
158 reg = <0x7180000 0x600000>;
164 reg = <0x7780000 0x880000>;
176 compatible = "mediatek,mt76";
177 reg = <0x0000 0 0 0 0>;
178 /* 5 GHz (phy1) does not take the address from calibration data,
179 but setting it manually here works */
180 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4>;
181 nvmem-cell-names = "eeprom", "mac-address";
186 nvmem-cells = <&macaddr_factory_e000>;
187 nvmem-cell-names = "mac-address";
193 phy-handle = <ðphy4>;
195 nvmem-cells = <&macaddr_factory_e006>;
196 nvmem-cell-names = "mac-address";
200 ethphy4: ethernet-phy@4 {
231 groups = "i2c", "uart2", "uart3", "jtag", "wdt";