5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "d-team,newifi-d2", "mediatek,mt7621-soc";
13 led-boot = &led_power_blue;
14 led-failsafe = &led_power_blue;
15 led-running = &led_power_blue;
16 led-upgrade = &led_power_blue;
17 label-mac-device = &gmac0;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-leds";
28 label = "newifi-d2:amber:power";
29 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
32 led_power_blue: power-blue {
33 label = "newifi-d2:blue:power";
34 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
38 label = "newifi-d2:amber:internet";
39 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
43 label = "newifi-d2:blue:internet";
44 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
48 label = "newifi-d2:blue:wlan2g";
49 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
53 label = "newifi-d2:blue:wlan5g";
54 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
58 label = "newifi-d2:blue:usb";
59 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
60 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
61 linux,default-trigger = "usbport";
66 compatible = "gpio-keys";
70 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_RESTART>;
76 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_WPS_BUTTON>;
82 compatible = "gpio-export";
86 gpio-export,name = "power_usb3";
87 gpio-export,output = <1>;
88 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
97 compatible = "jedec,spi-nor";
99 spi-max-frequency = <10000000>;
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
113 label = "u-boot-env";
114 reg = <0x30000 0x10000>;
118 factory: partition@40000 {
120 reg = <0x40000 0x10000>;
125 compatible = "denx,uimage";
127 reg = <0x50000 0x1fb0000>;
139 reg = <0x0000 0 0 0 0>;
140 mediatek,mtd-eeprom = <&factory 0x8000>;
141 ieee80211-freq-limit = <5000000 6000000>;
147 reg = <0x0000 0 0 0 0>;
148 mediatek,mtd-eeprom = <&factory 0x0000>;
153 mtd-mac-address = <&factory 0xe000>;
181 mtd-mac-address = <&factory 0xe006>;
188 groups = "i2c", "jtag", "uart2", "uart3";