5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "d-team,newifi-d2", "mediatek,mt7621-soc";
13 device_type = "memory";
14 reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
18 bootargs = "console=ttyS0,115200";
22 compatible = "gpio-leds";
25 label = "newifi-d2:amber:power";
26 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
30 label = "newifi-d2:blue:power";
31 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
35 label = "newifi-d2:amber:internet";
36 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
40 label = "newifi-d2:blue:internet";
41 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
45 label = "newifi-d2:blue:wlan2g";
46 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
50 label = "newifi-d2:blue:wlan5g";
51 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
55 label = "newifi-d2:blue:usb";
56 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
61 compatible = "gpio-keys-polled";
68 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_RESTART>;
74 gpios = <&gpio0 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 = <&gpio0 11 GPIO_ACTIVE_HIGH>;
97 compatible = "jedec,spi-nor";
99 spi-max-frequency = <10000000>;
100 m25p,chunked-io = <32>;
109 label = "u-boot-env";
110 reg = <0x30000 0x10000>;
114 factory: partition@40000 {
116 reg = <0x40000 0x10000>;
122 reg = <0x50000 0x1fb0000>;
132 reg = <0x0000 0 0 0 0>;
134 mediatek,mtd-eeprom = <&factory 0x8000>;
135 ieee80211-freq-limit = <5000000 6000000>;
141 reg = <0x0000 0 0 0 0>;
143 mediatek,mtd-eeprom = <&factory 0x0000>;
149 mtd-mac-address = <&factory 0xe000>;
153 state_default: pinctrl0 {
155 ralink,group = "i2c", "jtag", "uart2", "uart3";
156 ralink,function = "gpio";