ramips: add support for D-Link DIR-2660 A1
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_dlink_dir-2660-a1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7621_dlink_dir-xx60-a1.dtsi"
5
6 / {
7 compatible = "dlink,dir-2660-a1", "mediatek,mt7621-soc";
8 model = "D-Link DIR-2660 A1";
9
10 aliases {
11 led-boot = &led_power_orange;
12 led-failsafe = &led_power_white;
13 led-running = &led_power_white;
14 led-upgrade = &led_net_orange;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_power_orange: power_orange {
21 label = "dir-2660-a1:orange:power";
22 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
23 };
24
25 led_power_white: power_white {
26 label = "dir-2660-a1:white:power";
27 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
28 };
29
30 led_net_orange: net_orange {
31 label = "dir-2660-a1:orange:net";
32 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
33 };
34
35 net_white {
36 label = "dir-2660-a1:white:net";
37 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
38 };
39
40 usb2_white {
41 label = "dir-2660-a1:white:usb2";
42 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
43 trigger-sources = <&ehci_port2>;
44 linux,default-trigger = "usbport";
45 };
46
47 usb3_white {
48 label = "dir-2660-a1:white:usb3";
49 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
50 trigger-sources = <&xhci_ehci_port1>;
51 linux,default-trigger = "usbport";
52 };
53 };
54 };
55
56 &wifi0 {
57 mtd-mac-address = <&factory 0xe000>;
58 mtd-mac-address-increment = <1>;
59 };
60
61 &wifi1 {
62 mtd-mac-address = <&factory 0xe000>;
63 mtd-mac-address-increment = <2>;
64 };