1 #include "mt7620a.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
9 led-boot = &led_power_amber;
10 led-failsafe = &led_power_amber;
11 led-running = &led_power_green;
12 led-upgrade = &led_power_green;
16 compatible = "gpio-keys";
20 gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_RESTART>;
26 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_WPS_BUTTON>;
32 compatible = "gpio-leds";
34 led_power_green: power_green {
35 function = LED_FUNCTION_POWER;
36 color = <LED_COLOR_ID_GREEN>;
37 gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
41 led_power_amber: power_amber {
42 function = LED_FUNCTION_POWER;
43 color = <LED_COLOR_ID_AMBER>;
44 gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
48 label = "green:router";
49 gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
54 gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
58 label = "green:device";
59 gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
64 gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
68 function = LED_FUNCTION_WPS;
69 color = <LED_COLOR_ID_GREEN>;
70 gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
83 compatible = "jedec,spi-nor";
85 spi-max-frequency = <50000000>;
88 compatible = "fixed-partitions";
100 reg = <0x30000 0x10000>;
104 factory: partition@40000 {
106 reg = <0x40000 0x10000>;
110 compatible = "fixed-layout";
111 #address-cells = <1>;
114 eeprom_factory_0: eeprom@0 {
118 eeprom_factory_8000: eeprom@8000 {
119 reg = <0x8000 0x200>;
122 macaddr_factory_28: macaddr@28 {
129 compatible = "denx,uimage";
131 reg = <0x50000 0x790000>;
135 label = "board_data";
136 reg = <0x7e0000 0x10000>;
142 reg = <0x7f0000 0x10000>;
155 reg = <0x0000 0 0 0 0>;
156 nvmem-cells = <&eeprom_factory_8000>;
157 nvmem-cell-names = "eeprom";
158 ieee80211-freq-limit = <5000000 6000000>;
163 nvmem-cells = <&macaddr_factory_28>;
164 nvmem-cell-names = "mac-address";
168 nvmem-cells = <&eeprom_factory_0>;
169 nvmem-cell-names = "eeprom";
174 groups = "i2c", "rgmii2", "spi refclk";