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>;
34 default-state = "off";
38 label = "newifi-d1:green:status";
39 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
40 default-state = "off";
43 led_blue: status-blue {
44 label = "newifi-d1:blue:status";
45 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
51 compatible = "gpio-keys-polled";
56 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_RESTART>;
62 compatible = "gpio-export";
66 gpio-export,name = "usb2power";
67 gpio-export,output = <1>;
68 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
72 gpio-export,name = "usb3power";
73 gpio-export,output = <1>;
74 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
87 compatible = "jedec,spi-nor";
89 spi-max-frequency = <10000000>;
90 m25p,chunked-io = <32>;
93 compatible = "fixed-partitions";
104 label = "u-boot-env";
105 reg = <0x30000 0x10000>;
109 factory: partition@40000 {
111 reg = <0x40000 0x10000>;
117 reg = <0x50000 0x1fb0000>;
129 reg = <0x0000 0 0 0 0>;
130 mediatek,mtd-eeprom = <&factory 0x8000>;
131 ieee80211-freq-limit = <5000000 6000000>;
137 reg = <0x0000 0 0 0 0>;
138 mediatek,mtd-eeprom = <&factory 0x0000>;
143 mtd-mac-address = <&factory 0xe000>;
147 state_default: pinctrl0 {
149 ralink,group = "wdt", "rgmii2", "jtag", "uart2", "uart3", "i2c";
150 ralink,function = "gpio";