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;
17 label-mac-device = ðernet;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-leds";
28 label = "newifi-d1:red:status";
29 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
33 label = "newifi-d1:green:status";
34 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
37 led_blue: status-blue {
38 label = "newifi-d1:blue:status";
39 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
45 compatible = "gpio-keys";
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";