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 = &gmac1;
17 led-boot = &led_power_orange;
18 led-failsafe = &led_power_blue;
19 led-running = &led_power_blue;
20 led-upgrade = &led_net_orange;
24 compatible = "gpio-leds";
26 led_power_orange: power_orange {
27 label = "orange:power";
28 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
31 led_power_blue: power_blue {
33 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
36 led_net_orange: net_orange {
38 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
43 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
48 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
49 trigger-sources = <&xhci_ehci_port1>;
50 linux,default-trigger = "usbport";
54 label = "blue:wlan2g";
55 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
56 linux,default-trigger = "phy0radio";
60 label = "blue:wlan5g";
61 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
62 linux,default-trigger = "phy1radio";
67 compatible = "gpio-keys";
71 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_RESTART>;
77 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_WPS_BUTTON>;
83 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
84 linux,code = <KEY_RFKILL>;
95 compatible = "mediatek,mt76";
96 reg = <0x0000 0 0 0 0>;
98 /* 5 GHz (phy1) does not take the address from calibration data,
99 but setting it manually here works */
100 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4>;
101 nvmem-cell-names = "eeprom", "mac-address";
106 nvmem-cells = <&macaddr_factory_4>;
107 nvmem-cell-names = "mac-address";
108 mac-address-increment = <(-1)>;
114 phy-handle = <ðphy4>;
116 nvmem-cells = <&macaddr_factory_4>;
117 nvmem-cell-names = "mac-address";
118 mac-address-increment = <(-2)>;
122 ethphy4: ethernet-phy@4 {
153 groups = "i2c", "uart3", "uart2", "jtag", "wdt";