5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "lenovo,newifi-d1", "mediatek,mt7621-soc";
13 device_type = "memory";
14 reg = <0x0 0x10000000>;
18 bootargs = "console=ttyS0,115200";
22 compatible = "gpio-leds";
25 label = "newifi-d1:red:status";
26 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
30 label = "newifi-d1:green:status";
31 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
35 label = "newifi-d1:blue:status";
36 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
41 compatible = "gpio-keys-polled";
48 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
54 compatible = "gpio-export";
58 gpio-export,name = "usb2power";
59 gpio-export,output = <1>;
60 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
64 gpio-export,name = "usb3power";
65 gpio-export,output = <1>;
66 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
74 pinctrl-names = "default";
75 pinctrl-0 = <&sdhci_pins>;
84 compatible = "jedec,spi-nor";
86 spi-max-frequency = <10000000>;
87 m25p,chunked-io = <32>;
97 reg = <0x30000 0x10000>;
101 factory: partition@40000 {
103 reg = <0x40000 0x10000>;
109 reg = <0x50000 0x2000000>;
119 reg = <0x0000 0 0 0 0>;
121 mediatek,mtd-eeprom = <&factory 0x8000>;
122 ieee80211-freq-limit = <5000000 6000000>;
128 reg = <0x0000 0 0 0 0>;
130 mediatek,mtd-eeprom = <&factory 0x0000>;
136 mtd-mac-address = <&factory 0xe000>;
140 state_default: pinctrl0 {
142 ralink,group = "wdt", "rgmii2", "jtag", "uart2", "uart3", "i2c";
143 ralink,function = "gpio";