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>
9 #include <dt-bindings/leds/common.h>
12 compatible = "dlink,dir-853-r1", "mediatek,mt7621-soc";
13 model = "D-Link DIR-853 R1";
16 label-mac-device = &gmac1;
18 led-boot = &led_power_orange;
19 led-failsafe = &led_power_blue;
20 led-running = &led_power_blue;
21 led-upgrade = &led_net_orange;
25 compatible = "gpio-leds";
27 led_power_orange: power_orange {
28 function = LED_FUNCTION_POWER;
29 color = <LED_COLOR_ID_ORANGE>;
30 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
33 led_power_blue: power_blue {
34 function = LED_FUNCTION_POWER;
35 color = <LED_COLOR_ID_BLUE>;
36 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
39 led_net_orange: net_orange {
41 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
46 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
50 function = LED_FUNCTION_USB;
51 color = <LED_COLOR_ID_BLUE>;
52 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
53 trigger-sources = <&xhci_ehci_port1>;
54 linux,default-trigger = "usbport";
58 label = "blue:wlan2g";
59 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
60 linux,default-trigger = "phy0radio";
64 label = "blue:wlan5g";
65 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
66 linux,default-trigger = "phy1radio";
71 compatible = "gpio-keys";
75 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RESTART>;
81 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_WPS_BUTTON>;
87 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
88 linux,code = <KEY_RFKILL>;
99 compatible = "mediatek,mt76";
100 reg = <0x0000 0 0 0 0>;
102 /* 5 GHz (phy1) does not take the address from calibration data,
103 but setting it manually here works */
104 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4 0>;
105 nvmem-cell-names = "eeprom", "mac-address";
110 nvmem-cells = <&macaddr_factory_4 (-1)>;
111 nvmem-cell-names = "mac-address";
117 phy-handle = <ðphy4>;
119 nvmem-cells = <&macaddr_factory_4 (-2)>;
120 nvmem-cell-names = "mac-address";
124 ethphy4: ethernet-phy@4 {
155 groups = "i2c", "uart3", "uart2", "jtag", "wdt";