1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include "mt7621_dlink_flash-16m-r1.dtsi"
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
11 compatible = "dlink,dir-853-r1", "mediatek,mt7621-soc";
12 model = "D-Link DIR-853 R1";
15 label-mac-device = &wan;
16 led-boot = &led_power_orange;
17 led-failsafe = &led_power_blue;
18 led-running = &led_power_blue;
19 led-upgrade = &led_net_orange;
23 compatible = "gpio-leds";
25 led_power_orange: power_orange {
26 label = "orange:power";
27 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
30 led_power_blue: power_blue {
32 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
35 led_net_orange: net_orange {
37 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
42 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
48 trigger-sources = <&xhci_ehci_port1>;
49 linux,default-trigger = "usbport";
53 label = "blue:wlan2g";
54 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
55 linux,default-trigger = "phy0radio";
59 label = "blue:wlan5g";
60 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
61 linux,default-trigger = "phy1radio";
66 compatible = "gpio-keys";
70 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_RESTART>;
76 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_WPS_BUTTON>;
82 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_RFKILL>;
94 compatible = "mediatek,mt76";
95 reg = <0x0000 0 0 0 0>;
96 mediatek,mtd-eeprom = <&factory 0x0>;
97 /* 5 GHz (phy1) does not take the address from calibration data,
98 but setting it manually here works */
99 mtd-mac-address = <&factory 0x4>;
104 mtd-mac-address = <&factory 0x4>;
105 mtd-mac-address-increment = <(-1)>;
133 mtd-mac-address = <&factory 0x4>;
134 mtd-mac-address-increment = <(-2)>;
141 groups = "i2c", "uart3", "uart2", "jtag", "wdt";