4bb35a948d09e3cbdd9b82f3e5077e2c9b550f8d
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_dlink_dir-3040-a1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621_dlink_dir-xx60-a1.dtsi"
4
5 / {
6 compatible = "dlink,dir-3040-a1", "mediatek,mt7621-soc";
7 model = "D-Link DIR-3040 A1";
8 };
9
10 &wps {
11 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
12 };
13
14 &leds {
15 usb2_white {
16 function = LED_FUNCTION_USB;
17 color = <LED_COLOR_ID_WHITE>;
18 function-enumerator = <0>;
19 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
20 trigger-sources = <&ehci_port2>;
21 linux,default-trigger = "usbport";
22 };
23
24 usb3_white {
25 function = LED_FUNCTION_USB;
26 color = <LED_COLOR_ID_WHITE>;
27 function-enumerator = <1>;
28 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
29 trigger-sources = <&xhci_ehci_port1>;
30 linux,default-trigger = "usbport";
31 };
32
33 wlan2g {
34 function = LED_FUNCTION_WLAN_2GHZ;
35 color = <LED_COLOR_ID_WHITE>;
36 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
37 linux,default-trigger = "phy0radio";
38 };
39
40 wlan5glb {
41 function = LED_FUNCTION_WLAN_5GHZ;
42 color = <LED_COLOR_ID_WHITE>;
43 function-enumerator = <0>;
44 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
45 linux,default-trigger = "phy1radio";
46 };
47
48 wlan5ghb {
49 function = LED_FUNCTION_WLAN_5GHZ;
50 color = <LED_COLOR_ID_WHITE>;
51 function-enumerator = <1>;
52 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
53 linux,default-trigger = "phy2radio";
54 };
55 };
56
57 &wifi0 {
58 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000 1>;
59 nvmem-cell-names = "eeprom", "mac-address";
60 ieee80211-freq-limit;
61 /delete-property/ ieee80211-freq-limit;
62 };
63
64 &wifi1 {
65 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000 3>;
66 nvmem-cell-names = "eeprom", "mac-address";
67 };