3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "lenovo,newifi-d1", "mediatek,mt7621-soc";
12 led-failsafe = &led_blue;
13 led-running = &led_blue;
14 led-upgrade = &led_blue;
15 label-mac-device = &gmac0;
19 bootargs = "console=ttyS0,115200";
23 compatible = "gpio-leds";
26 label = "newifi-d1:red:status";
27 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
31 label = "newifi-d1:green:status";
32 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
35 led_blue: status-blue {
36 label = "newifi-d1:blue:status";
37 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
43 compatible = "gpio-keys";
47 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RESTART>;
53 compatible = "gpio-export";
57 gpio-export,name = "usb2power";
58 gpio-export,output = <1>;
59 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
63 gpio-export,name = "usb3power";
64 gpio-export,output = <1>;
65 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
78 compatible = "jedec,spi-nor";
80 spi-max-frequency = <45000000>;
84 compatible = "fixed-partitions";
96 reg = <0x30000 0x10000>;
100 factory: partition@40000 {
102 reg = <0x40000 0x10000>;
107 compatible = "denx,uimage";
109 reg = <0x50000 0x1fb0000>;
121 reg = <0x0000 0 0 0 0>;
122 mediatek,mtd-eeprom = <&factory 0x8000>;
123 ieee80211-freq-limit = <5000000 6000000>;
129 reg = <0x0000 0 0 0 0>;
130 mediatek,mtd-eeprom = <&factory 0x0000>;
135 mtd-mac-address = <&factory 0xe000>;
153 mtd-mac-address = <&factory 0xe006>;
160 groups = "jtag", "uart2";