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-status = &led_power_blue;
17 device_type = "memory";
18 reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-leds";
29 label = "newifi-d2:amber:power";
30 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
33 led_power_blue: power-blue {
34 label = "newifi-d2:blue:power";
35 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
39 label = "newifi-d2:amber:internet";
40 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
44 label = "newifi-d2:blue:internet";
45 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
49 label = "newifi-d2:blue:wlan2g";
50 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
54 label = "newifi-d2:blue:wlan5g";
55 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
59 label = "newifi-d2:blue:usb";
60 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
65 compatible = "gpio-keys-polled";
72 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_RESTART>;
78 gpios = <&gpio0 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 = <&gpio0 11 GPIO_ACTIVE_HIGH>;
101 compatible = "jedec,spi-nor";
103 spi-max-frequency = <10000000>;
104 m25p,chunked-io = <32>;
113 label = "u-boot-env";
114 reg = <0x30000 0x10000>;
118 factory: partition@40000 {
120 reg = <0x40000 0x10000>;
126 reg = <0x50000 0x1fb0000>;
137 reg = <0x0000 0 0 0 0>;
138 mediatek,mtd-eeprom = <&factory 0x8000>;
139 ieee80211-freq-limit = <5000000 6000000>;
145 reg = <0x0000 0 0 0 0>;
146 mediatek,mtd-eeprom = <&factory 0x0000>;
151 mtd-mac-address = <&factory 0xe000>;
155 state_default: pinctrl0 {
157 ralink,group = "i2c", "jtag", "uart2", "uart3";
158 ralink,function = "gpio";