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 {
115 reg = <0x100000 0x40000>;
119 compatible = "fixed-layout";
120 #address-cells = <1>;
123 eeprom_factory_0: eeprom@0 {
127 eeprom_factory_8000: eeprom@8000 {
128 reg = <0x8000 0x4da8>;
131 macaddr_factory_e000: macaddr@e000 {
135 macaddr_factory_e006: macaddr@e006 {
143 reg = <0x140000 0x40000>;
149 compatible = "openwrt,uimage", "denx,uimage";
150 openwrt,padding = <96>;
151 reg = <0x180000 0x2800000>;
156 reg = <0x2980000 0x2000000>;
162 reg = <0x4980000 0x2800000>;
168 reg = <0x7180000 0x600000>;
174 reg = <0x7780000 0x880000>;
186 compatible = "mediatek,mt76";
187 reg = <0x0000 0 0 0 0>;
188 ieee80211-freq-limit = <2400000 6000000>;
189 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000>;
190 nvmem-cell-names = "eeprom", "mac-address";
191 mac-address-increment = <1>;
197 compatible = "mediatek,mt76";
198 reg = <0x0000 0 0 0 0>;
199 ieee80211-freq-limit = <5000000 6000000>;
200 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000>;
201 nvmem-cell-names = "eeprom", "mac-address";
202 mac-address-increment = <3>;
207 nvmem-cells = <&macaddr_factory_e000>;
208 nvmem-cell-names = "mac-address";
236 nvmem-cells = <&macaddr_factory_e006>;
237 nvmem-cell-names = "mac-address";
244 groups = "i2c", "uart3", "jtag", "wdt";