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 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-leds";
27 label = "newifi-d1:red:status";
28 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
32 label = "newifi-d1:green:status";
33 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
36 led_blue: status-blue {
37 label = "newifi-d1:blue:status";
38 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
44 compatible = "gpio-keys-polled";
49 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
55 compatible = "gpio-export";
59 gpio-export,name = "usb2power";
60 gpio-export,output = <1>;
61 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
65 gpio-export,name = "usb3power";
66 gpio-export,output = <1>;
67 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
80 compatible = "mx25l25635f", "jedec,spi-nor";
82 spi-max-frequency = <25000000>;
86 compatible = "fixed-partitions";
98 reg = <0x30000 0x10000>;
102 factory: partition@40000 {
104 reg = <0x40000 0x10000>;
109 compatible = "denx,uimage";
111 reg = <0x50000 0x1fb0000>;
123 reg = <0x0000 0 0 0 0>;
124 mediatek,mtd-eeprom = <&factory 0x8000>;
125 ieee80211-freq-limit = <5000000 6000000>;
131 reg = <0x0000 0 0 0 0>;
132 mediatek,mtd-eeprom = <&factory 0x0000>;
137 mtd-mac-address = <&factory 0xe000>;
141 state_default: pinctrl0 {
143 ralink,group = "wdt", "rgmii2", "jtag", "uart2", "uart3", "i2c";
144 ralink,function = "gpio";