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>;
121 reg = <0x140000 0x40000>;
127 compatible = "openwrt,uimage", "denx,uimage";
128 openwrt,padding = <96>;
129 reg = <0x180000 0x2800000>;
134 reg = <0x2980000 0x2000000>;
140 reg = <0x4980000 0x2800000>;
146 reg = <0x7180000 0x600000>;
152 reg = <0x7780000 0x880000>;
164 compatible = "mediatek,mt76";
165 reg = <0x0000 0 0 0 0>;
166 mediatek,mtd-eeprom = <&factory 0x0>;
167 ieee80211-freq-limit = <2400000 6000000>;
168 nvmem-cells = <&macaddr_factory_e000>;
169 nvmem-cell-names = "mac-address";
170 mac-address-increment = <1>;
176 compatible = "mediatek,mt76";
177 reg = <0x0000 0 0 0 0>;
178 mediatek,mtd-eeprom = <&factory 0x8000>;
179 ieee80211-freq-limit = <5000000 6000000>;
180 nvmem-cells = <&macaddr_factory_e000>;
181 nvmem-cell-names = "mac-address";
182 mac-address-increment = <3>;
187 nvmem-cells = <&macaddr_factory_e000>;
188 nvmem-cell-names = "mac-address";
216 nvmem-cells = <&macaddr_factory_e006>;
217 nvmem-cell-names = "mac-address";
224 groups = "i2c", "uart3", "jtag", "wdt";
230 compatible = "nvmem-cells";
231 #address-cells = <1>;
234 macaddr_factory_e000: macaddr@e000 {
238 macaddr_factory_e006: macaddr@e006 {