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>
7 #include <dt-bindings/leds/common.h>
10 compatible = "dlink,dir-3060-a1", "mediatek,mt7621-soc";
11 model = "D-Link DIR-3060 A1";
14 label-mac-device = &gmac0;
15 led-boot = &led_power_orange;
16 led-failsafe = &led_power_white;
17 led-running = &led_power_white;
18 led-upgrade = &led_net_orange;
22 compatible = "gpio-keys";
26 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
32 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_WPS_BUTTON>;
38 compatible = "gpio-leds";
40 led_power_orange: led-0 {
41 function = LED_FUNCTION_POWER;
42 color = <LED_COLOR_ID_ORANGE>;
43 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
46 led_power_white: led-1 {
47 function = LED_FUNCTION_POWER;
48 color = <LED_COLOR_ID_WHITE>;
49 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
52 led_net_orange: led-2 {
53 function = LED_FUNCTION_WAN;
54 color = <LED_COLOR_ID_ORANGE>;
55 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
59 function = LED_FUNCTION_WAN;
60 color = <LED_COLOR_ID_WHITE>;
61 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
65 function = LED_FUNCTION_USB;
66 color = <LED_COLOR_ID_WHITE>;
67 function-enumerator = <2>;
68 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
69 trigger-sources = <&ehci_port2>;
70 linux,default-trigger = "usbport";
74 function = LED_FUNCTION_USB;
75 color = <LED_COLOR_ID_WHITE>;
76 function-enumerator = <3>;
77 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
78 trigger-sources = <&xhci_ehci_port1>;
79 linux,default-trigger = "usbport";
83 function = LED_FUNCTION_WLAN_2GHZ;
84 color = <LED_COLOR_ID_WHITE>;
85 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
86 linux,default-trigger = "phy0radio";
90 function = LED_FUNCTION_WLAN_5GHZ;
91 color = <LED_COLOR_ID_WHITE>;
92 function-enumerator = <0>;
93 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
94 linux,default-trigger = "phy1radio";
98 function = LED_FUNCTION_WLAN_5GHZ;
99 color = <LED_COLOR_ID_WHITE>;
100 function-enumerator = <1>;
101 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
102 linux,default-trigger = "phy2radio";
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
116 label = "Bootloader";
123 reg = <0x80000 0x80000>;
129 reg = <0x100000 0x40000>;
133 compatible = "fixed-layout";
134 #address-cells = <1>;
137 eeprom_factory_0: eeprom@0 {
141 eeprom_factory_8000: eeprom@8000 {
142 reg = <0x8000 0x4da8>;
145 macaddr_factory_e000: macaddr@e000 {
146 compatible = "mac-base";
148 #nvmem-cell-cells = <1>;
151 macaddr_factory_e006: macaddr@e006 {
159 reg = <0x140000 0x40000>;
165 compatible = "openwrt,uimage", "denx,uimage";
166 openwrt,padding = <96>;
167 reg = <0x180000 0x2800000>;
172 reg = <0x2980000 0x2000000>;
178 reg = <0x4980000 0x2800000>;
184 reg = <0x7180000 0x600000>;
190 reg = <0x7780000 0x880000>;
202 compatible = "mediatek,mt76";
203 reg = <0x0000 0 0 0 0>;
204 ieee80211-freq-limit = <2400000 6000000>;
205 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000 1>;
206 nvmem-cell-names = "eeprom", "mac-address";
212 compatible = "mediatek,mt76";
213 reg = <0x0000 0 0 0 0>;
214 ieee80211-freq-limit = <5000000 6000000>;
215 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000 3>;
216 nvmem-cell-names = "eeprom", "mac-address";
221 nvmem-cells = <&macaddr_factory_e000 0>;
222 nvmem-cell-names = "mac-address";
250 nvmem-cells = <&macaddr_factory_e006>;
251 nvmem-cell-names = "mac-address";
258 groups = "i2c", "uart3", "jtag", "wdt";