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: power_orange {
41 function = LED_FUNCTION_POWER;
42 color = <LED_COLOR_ID_ORANGE>;
43 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
46 led_power_white: power_white {
47 function = LED_FUNCTION_POWER;
48 color = <LED_COLOR_ID_WHITE>;
49 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
52 led_net_orange: net_orange {
54 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
59 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
64 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
65 trigger-sources = <&ehci_port2>;
66 linux,default-trigger = "usbport";
71 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
72 trigger-sources = <&xhci_ehci_port1>;
73 linux,default-trigger = "usbport";
77 label = "white:wlan2g";
78 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
79 linux,default-trigger = "phy0radio";
83 label = "white:wlan5glb";
84 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
85 linux,default-trigger = "phy1radio";
89 label = "white:wlan5ghb";
90 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
91 linux,default-trigger = "phy2radio";
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
105 label = "Bootloader";
112 reg = <0x80000 0x80000>;
118 reg = <0x100000 0x40000>;
122 compatible = "fixed-layout";
123 #address-cells = <1>;
126 eeprom_factory_0: eeprom@0 {
130 eeprom_factory_8000: eeprom@8000 {
131 reg = <0x8000 0x4da8>;
134 macaddr_factory_e000: macaddr@e000 {
135 compatible = "mac-base";
137 #nvmem-cell-cells = <1>;
140 macaddr_factory_e006: macaddr@e006 {
148 reg = <0x140000 0x40000>;
154 compatible = "openwrt,uimage", "denx,uimage";
155 openwrt,padding = <96>;
156 reg = <0x180000 0x2800000>;
161 reg = <0x2980000 0x2000000>;
167 reg = <0x4980000 0x2800000>;
173 reg = <0x7180000 0x600000>;
179 reg = <0x7780000 0x880000>;
191 compatible = "mediatek,mt76";
192 reg = <0x0000 0 0 0 0>;
193 ieee80211-freq-limit = <2400000 6000000>;
194 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000 1>;
195 nvmem-cell-names = "eeprom", "mac-address";
201 compatible = "mediatek,mt76";
202 reg = <0x0000 0 0 0 0>;
203 ieee80211-freq-limit = <5000000 6000000>;
204 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000 3>;
205 nvmem-cell-names = "eeprom", "mac-address";
210 nvmem-cells = <&macaddr_factory_e000 0>;
211 nvmem-cell-names = "mac-address";
239 nvmem-cells = <&macaddr_factory_e006>;
240 nvmem-cell-names = "mac-address";
247 groups = "i2c", "uart3", "jtag", "wdt";