5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "lenovo,newifi-d1", "mediatek,mt7621-soc";
13 led-status = &led_blue;
17 device_type = "memory";
18 reg = <0x0 0x10000000>;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-leds";
29 label = "newifi-d1:red:status";
30 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
31 default-state = "off";
35 label = "newifi-d1:green:status";
36 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
37 default-state = "off";
40 led_blue: status-blue {
41 label = "newifi-d1:blue:status";
42 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
48 compatible = "gpio-keys-polled";
53 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART>;
59 compatible = "gpio-export";
63 gpio-export,name = "usb2power";
64 gpio-export,output = <1>;
65 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
69 gpio-export,name = "usb3power";
70 gpio-export,output = <1>;
71 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
79 pinctrl-names = "default";
80 pinctrl-0 = <&sdhci_pins>;
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";