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;
20 device_type = "memory";
21 reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
25 bootargs = "console=ttyS0,115200";
29 compatible = "gpio-leds";
32 label = "newifi-d2:amber:power";
33 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
36 led_power_blue: power-blue {
37 label = "newifi-d2:blue:power";
38 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
42 label = "newifi-d2:amber:internet";
43 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
47 label = "newifi-d2:blue:internet";
48 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
52 label = "newifi-d2:blue:wlan2g";
53 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
57 label = "newifi-d2:blue:wlan5g";
58 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
62 label = "newifi-d2:blue:usb";
63 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
64 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
65 linux,default-trigger = "usbport";
70 compatible = "gpio-keys-polled";
75 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RESTART>;
81 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_WPS_BUTTON>;
87 compatible = "gpio-export";
91 gpio-export,name = "power_usb3";
92 gpio-export,output = <1>;
93 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
102 compatible = "jedec,spi-nor";
104 spi-max-frequency = <10000000>;
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
118 label = "u-boot-env";
119 reg = <0x30000 0x10000>;
123 factory: partition@40000 {
125 reg = <0x40000 0x10000>;
130 compatible = "denx,uimage";
132 reg = <0x50000 0x1fb0000>;
144 reg = <0x0000 0 0 0 0>;
145 mediatek,mtd-eeprom = <&factory 0x8000>;
146 ieee80211-freq-limit = <5000000 6000000>;
152 reg = <0x0000 0 0 0 0>;
153 mediatek,mtd-eeprom = <&factory 0x0000>;
158 mtd-mac-address = <&factory 0xe000>;
162 state_default: pinctrl0 {
164 ralink,group = "i2c", "jtag", "uart2", "uart3";
165 ralink,function = "gpio";