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>
9 compatible = "dlink,dir-3060-a1", "mediatek,mt7621-soc";
10 model = "D-Link DIR-3060 A1";
13 label-mac-device = &gmac0;
14 led-boot = &led_power_orange;
15 led-failsafe = &led_power_white;
16 led-running = &led_power_white;
17 led-upgrade = &led_net_orange;
21 compatible = "gpio-keys";
25 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WPS_BUTTON>;
37 compatible = "gpio-leds";
39 led_power_orange: power_orange {
40 label = "orange:power";
41 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
44 led_power_white: power_white {
45 label = "white:power";
46 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
49 led_net_orange: net_orange {
51 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
56 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
61 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
62 trigger-sources = <&ehci_port2>;
63 linux,default-trigger = "usbport";
68 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
69 trigger-sources = <&xhci_ehci_port1>;
70 linux,default-trigger = "usbport";
74 label = "white:wlan2g";
75 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
76 linux,default-trigger = "phy0radio";
80 label = "white:wlan5glb";
81 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
82 linux,default-trigger = "phy1radio";
86 label = "white:wlan5ghb";
87 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
88 linux,default-trigger = "phy2radio";
97 compatible = "fixed-partitions";
102 label = "Bootloader";
109 reg = <0x80000 0x80000>;
113 factory: partition@100000 {
114 compatible = "nvmem-cells";
116 reg = <0x100000 0x40000>;
117 #address-cells = <1>;
121 eeprom_factory_0: eeprom@0 {
125 eeprom_factory_8000: eeprom@8000 {
126 reg = <0x8000 0x4da8>;
129 macaddr_factory_e000: macaddr@e000 {
133 macaddr_factory_e006: macaddr@e006 {
140 reg = <0x140000 0x40000>;
146 compatible = "openwrt,uimage", "denx,uimage";
147 openwrt,padding = <96>;
148 reg = <0x180000 0x2800000>;
153 reg = <0x2980000 0x2000000>;
159 reg = <0x4980000 0x2800000>;
165 reg = <0x7180000 0x600000>;
171 reg = <0x7780000 0x880000>;
183 compatible = "mediatek,mt76";
184 reg = <0x0000 0 0 0 0>;
185 ieee80211-freq-limit = <2400000 6000000>;
186 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000>;
187 nvmem-cell-names = "eeprom", "mac-address";
188 mac-address-increment = <1>;
194 compatible = "mediatek,mt76";
195 reg = <0x0000 0 0 0 0>;
196 ieee80211-freq-limit = <5000000 6000000>;
197 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000>;
198 nvmem-cell-names = "eeprom", "mac-address";
199 mac-address-increment = <3>;
204 nvmem-cells = <&macaddr_factory_e000>;
205 nvmem-cell-names = "mac-address";
233 nvmem-cells = <&macaddr_factory_e006>;
234 nvmem-cell-names = "mac-address";
241 groups = "i2c", "uart3", "jtag", "wdt";