3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "d-team,newifi-d2", "mediatek,mt7621-soc";
9 model = "D-Team Newifi D2";
12 led-boot = &led_power_blue;
13 led-failsafe = &led_power_blue;
14 led-running = &led_power_blue;
15 led-upgrade = &led_power_blue;
16 label-mac-device = &gmac0;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-leds";
27 function = LED_FUNCTION_POWER;
28 color = <LED_COLOR_ID_AMBER>;
29 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
32 led_power_blue: power-blue {
33 function = LED_FUNCTION_POWER;
34 color = <LED_COLOR_ID_BLUE>;
35 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
39 label = "amber:internet";
40 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
44 label = "blue:internet";
45 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
49 label = "blue:wlan2g";
50 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
54 label = "blue:wlan5g";
55 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
59 function = LED_FUNCTION_USB;
60 color = <LED_COLOR_ID_BLUE>;
61 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
62 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
63 linux,default-trigger = "usbport";
68 compatible = "gpio-keys";
72 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_RESTART>;
78 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_WPS_BUTTON>;
84 compatible = "gpio-export";
88 gpio-export,name = "power_usb3";
89 gpio-export,output = <1>;
90 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
99 compatible = "jedec,spi-nor";
101 spi-max-frequency = <45000000>;
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
116 label = "u-boot-env";
117 reg = <0x30000 0x10000>;
121 factory: partition@40000 {
123 reg = <0x40000 0x10000>;
127 compatible = "fixed-layout";
128 #address-cells = <1>;
131 eeprom_factory_0: eeprom@0 {
135 eeprom_factory_8000: eeprom@8000 {
136 reg = <0x8000 0x200>;
139 macaddr_factory_e000: macaddr@e000 {
143 macaddr_factory_e006: macaddr@e006 {
150 compatible = "denx,uimage";
152 reg = <0x50000 0x1fb0000>;
164 reg = <0x0000 0 0 0 0>;
165 nvmem-cells = <&eeprom_factory_8000>;
166 nvmem-cell-names = "eeprom";
167 ieee80211-freq-limit = <5000000 6000000>;
173 reg = <0x0000 0 0 0 0>;
174 nvmem-cells = <&eeprom_factory_0>;
175 nvmem-cell-names = "eeprom";
180 nvmem-cells = <&macaddr_factory_e000>;
181 nvmem-cell-names = "mac-address";
209 nvmem-cells = <&macaddr_factory_e006>;
210 nvmem-cell-names = "mac-address";
217 groups = "i2c", "jtag", "uart2", "uart3";