1 /* This file is released into the public domain */
3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
11 led-boot = &led_power_green;
12 led-failsafe = &led_power_green;
13 led-running = &led_power_green;
14 led-upgrade = &led_power_green;
18 compatible = "gpio-keys";
22 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
28 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WPS_BUTTON>;
34 compatible = "gpio-leds";
36 led_power_green: power_g {
37 function = LED_FUNCTION_POWER;
38 color = <LED_COLOR_ID_GREEN>;
39 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
44 function = LED_FUNCTION_POWER;
45 color = <LED_COLOR_ID_RED>;
46 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
50 label = "green:client";
51 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
56 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
60 label = "green:router";
61 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
66 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
70 function = LED_FUNCTION_WPS;
71 color = <LED_COLOR_ID_GREEN>;
72 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
76 label = "blue:leftarrow";
77 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
81 label = "blue:rightarrow";
82 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
95 compatible = "jedec,spi-nor";
97 spi-max-frequency = <10000000>;
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
111 label = "u-boot-env";
112 reg = <0x30000 0x10000>;
117 compatible = "denx,uimage";
119 reg = <0x40000 0x7b0000>;
124 reg = <0x7f0000 0x10000>;
128 compatible = "fixed-layout";
129 #address-cells = <1>;
132 macaddr_art_0: macaddr@0 {
136 macaddr_art_6: macaddr@6 {
140 eeprom_art_1000: eeprom@1000 {
141 reg = <0x1000 0x200>;
150 nvmem-cells = <&macaddr_art_0>;
151 nvmem-cell-names = "mac-address";
155 nvmem-cells = <&eeprom_art_1000>, <&macaddr_art_6>;
156 nvmem-cell-names = "eeprom", "mac-address";
161 groups = "i2c", "uartf", "spi refclk";