5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "lenovo,newifi-d1", "mediatek,mt7621-soc";
14 led-failsafe = &led_blue;
15 led-running = &led_blue;
16 led-upgrade = &led_blue;
20 device_type = "memory";
21 reg = <0x0 0x10000000>;
25 bootargs = "console=ttyS0,115200";
29 compatible = "gpio-leds";
32 label = "newifi-d1:red:status";
33 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
37 label = "newifi-d1:green:status";
38 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
41 led_blue: status-blue {
42 label = "newifi-d1:blue:status";
43 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
49 compatible = "gpio-keys-polled";
54 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_RESTART>;
60 compatible = "gpio-export";
64 gpio-export,name = "usb2power";
65 gpio-export,output = <1>;
66 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
70 gpio-export,name = "usb3power";
71 gpio-export,output = <1>;
72 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
85 compatible = "mx25l25635f", "jedec,spi-nor";
87 spi-max-frequency = <25000000>;
91 compatible = "fixed-partitions";
102 label = "u-boot-env";
103 reg = <0x30000 0x10000>;
107 factory: partition@40000 {
109 reg = <0x40000 0x10000>;
114 compatible = "denx,uimage";
116 reg = <0x50000 0x1fb0000>;
128 reg = <0x0000 0 0 0 0>;
129 mediatek,mtd-eeprom = <&factory 0x8000>;
130 ieee80211-freq-limit = <5000000 6000000>;
136 reg = <0x0000 0 0 0 0>;
137 mediatek,mtd-eeprom = <&factory 0x0000>;
142 mtd-mac-address = <&factory 0xe000>;
146 state_default: pinctrl0 {
148 ralink,group = "wdt", "rgmii2", "jtag", "uart2", "uart3", "i2c";
149 ralink,function = "gpio";