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-polled";
50 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RESTART>;
56 compatible = "gpio-export";
60 gpio-export,name = "usb2power";
61 gpio-export,output = <1>;
62 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
66 gpio-export,name = "usb3power";
67 gpio-export,output = <1>;
68 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
81 compatible = "mx25l25635f", "jedec,spi-nor";
83 spi-max-frequency = <25000000>;
87 compatible = "fixed-partitions";
99 reg = <0x30000 0x10000>;
103 factory: partition@40000 {
105 reg = <0x40000 0x10000>;
110 compatible = "denx,uimage";
112 reg = <0x50000 0x1fb0000>;
124 reg = <0x0000 0 0 0 0>;
125 mediatek,mtd-eeprom = <&factory 0x8000>;
126 ieee80211-freq-limit = <5000000 6000000>;
132 reg = <0x0000 0 0 0 0>;
133 mediatek,mtd-eeprom = <&factory 0x0000>;
138 mtd-mac-address = <&factory 0xe000>;
142 state_default: pinctrl0 {
144 ralink,group = "wdt", "rgmii2", "jtag", "uart2", "uart3", "i2c";
145 ralink,function = "gpio";