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 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-leds";
27 label = "newifi-d2:amber:power";
28 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
31 led_power_blue: power-blue {
32 label = "newifi-d2:blue:power";
33 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
37 label = "newifi-d2:amber:internet";
38 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
42 label = "newifi-d2:blue:internet";
43 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
47 label = "newifi-d2:blue:wlan2g";
48 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
52 label = "newifi-d2:blue:wlan5g";
53 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
57 label = "newifi-d2:blue:usb";
58 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
59 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
60 linux,default-trigger = "usbport";
65 compatible = "gpio-keys-polled";
70 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_RESTART>;
76 gpios = <&gpio0 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 = <&gpio0 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>;
157 state_default: pinctrl0 {
159 ralink,group = "i2c", "jtag", "uart2", "uart3";
160 ralink,function = "gpio";