3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "d-team,newifi-d2", "mediatek,mt7621-soc";
8 model = "D-Team Newifi D2";
11 led-boot = &led_power_blue;
12 led-failsafe = &led_power_blue;
13 led-running = &led_power_blue;
14 led-upgrade = &led_power_blue;
15 label-mac-device = &gmac0;
19 bootargs = "console=ttyS0,115200";
23 compatible = "gpio-leds";
26 label = "amber:power";
27 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
30 led_power_blue: power-blue {
32 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
36 label = "amber:internet";
37 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
41 label = "blue:internet";
42 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
46 label = "blue:wlan2g";
47 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
51 label = "blue:wlan5g";
52 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
58 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
59 linux,default-trigger = "usbport";
64 compatible = "gpio-keys";
68 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_RESTART>;
74 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_WPS_BUTTON>;
80 compatible = "gpio-export";
84 gpio-export,name = "power_usb3";
85 gpio-export,output = <1>;
86 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
95 compatible = "jedec,spi-nor";
97 spi-max-frequency = <45000000>;
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
112 label = "u-boot-env";
113 reg = <0x30000 0x10000>;
117 factory: partition@40000 {
119 reg = <0x40000 0x10000>;
123 compatible = "fixed-layout";
124 #address-cells = <1>;
127 eeprom_factory_0: eeprom@0 {
131 eeprom_factory_8000: eeprom@8000 {
132 reg = <0x8000 0x200>;
135 macaddr_factory_e000: macaddr@e000 {
139 macaddr_factory_e006: macaddr@e006 {
146 compatible = "denx,uimage";
148 reg = <0x50000 0x1fb0000>;
160 reg = <0x0000 0 0 0 0>;
161 nvmem-cells = <&eeprom_factory_8000>;
162 nvmem-cell-names = "eeprom";
163 ieee80211-freq-limit = <5000000 6000000>;
169 reg = <0x0000 0 0 0 0>;
170 nvmem-cells = <&eeprom_factory_0>;
171 nvmem-cell-names = "eeprom";
176 nvmem-cells = <&macaddr_factory_e000>;
177 nvmem-cell-names = "mac-address";
205 nvmem-cells = <&macaddr_factory_e006>;
206 nvmem-cell-names = "mac-address";
213 groups = "i2c", "jtag", "uart2", "uart3";