3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "lenovo,newifi-d1", "mediatek,mt7621-soc";
9 model = "Lenovo Newifi D1";
13 led-failsafe = &led_blue;
14 led-running = &led_blue;
15 led-upgrade = &led_blue;
16 label-mac-device = &gmac0;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-leds";
27 function = LED_FUNCTION_STATUS;
28 color = <LED_COLOR_ID_RED>;
29 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
33 function = LED_FUNCTION_STATUS;
34 color = <LED_COLOR_ID_GREEN>;
35 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
38 led_blue: status-blue {
39 function = LED_FUNCTION_STATUS;
40 color = <LED_COLOR_ID_BLUE>;
41 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
47 compatible = "gpio-keys";
51 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
57 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_WPS_BUTTON>;
63 compatible = "gpio-export";
67 gpio-export,name = "usb2power";
68 gpio-export,output = <1>;
69 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
73 gpio-export,name = "usb3power";
74 gpio-export,output = <1>;
75 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
88 compatible = "jedec,spi-nor";
90 spi-max-frequency = <45000000>;
94 compatible = "fixed-partitions";
105 label = "u-boot-env";
106 reg = <0x30000 0x10000>;
112 reg = <0x40000 0x10000>;
116 compatible = "fixed-layout";
117 #address-cells = <1>;
120 eeprom_factory_0: eeprom@0 {
124 eeprom_factory_8000: eeprom@8000 {
125 reg = <0x8000 0x200>;
128 macaddr_factory_e000: macaddr@e000 {
132 macaddr_factory_e006: macaddr@e006 {
139 compatible = "denx,uimage";
141 reg = <0x50000 0x1fb0000>;
153 reg = <0x0000 0 0 0 0>;
154 nvmem-cells = <&eeprom_factory_8000>;
155 nvmem-cell-names = "eeprom";
156 ieee80211-freq-limit = <5000000 6000000>;
162 reg = <0x0000 0 0 0 0>;
163 nvmem-cells = <&eeprom_factory_0>;
164 nvmem-cell-names = "eeprom";
169 nvmem-cells = <&macaddr_factory_e000>;
170 nvmem-cell-names = "mac-address";
176 phy-handle = <ðphy4>;
178 nvmem-cells = <&macaddr_factory_e006>;
179 nvmem-cell-names = "mac-address";
183 /delete-property/ interrupts;
202 groups = "jtag", "uart2", "wdt";