1 #include "mt7620a.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
8 led-boot = &led_power_amber;
9 led-failsafe = &led_power_amber;
10 led-running = &led_power_green;
11 led-upgrade = &led_power_green;
15 compatible = "gpio-keys";
19 gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
20 linux,code = <KEY_RESTART>;
25 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
31 compatible = "gpio-leds";
33 led_power_green: power_green {
34 label = "green:power";
35 gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
39 led_power_amber: power_amber {
40 label = "amber:power";
41 gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
45 label = "green:router";
46 gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
51 gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
55 label = "green:device";
56 gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
61 gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
66 gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
79 compatible = "jedec,spi-nor";
81 spi-max-frequency = <50000000>;
84 compatible = "fixed-partitions";
96 reg = <0x30000 0x10000>;
100 factory: partition@40000 {
102 reg = <0x40000 0x10000>;
106 compatible = "fixed-layout";
107 #address-cells = <1>;
110 eeprom_factory_0: eeprom@0 {
114 eeprom_factory_8000: eeprom@8000 {
115 reg = <0x8000 0x200>;
118 macaddr_factory_28: macaddr@28 {
125 compatible = "denx,uimage";
127 reg = <0x50000 0x790000>;
131 label = "board_data";
132 reg = <0x7e0000 0x10000>;
138 reg = <0x7f0000 0x10000>;
151 reg = <0x0000 0 0 0 0>;
152 nvmem-cells = <&eeprom_factory_8000>;
153 nvmem-cell-names = "eeprom";
154 ieee80211-freq-limit = <5000000 6000000>;
159 nvmem-cells = <&macaddr_factory_28>;
160 nvmem-cell-names = "mac-address";
164 nvmem-cells = <&eeprom_factory_0>;
165 nvmem-cell-names = "eeprom";
170 groups = "i2c", "rgmii2", "spi refclk";