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>
10 led-boot = &led_power_green;
11 led-failsafe = &led_power_green;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_green;
17 compatible = "gpio-keys";
21 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
27 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_WPS_BUTTON>;
33 compatible = "gpio-leds";
35 led_power_green: power_g {
36 label = "green:power";
37 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
43 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
47 label = "green:client";
48 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
53 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
57 label = "green:router";
58 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
63 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
68 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
72 label = "blue:leftarrow";
73 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
77 label = "blue:rightarrow";
78 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
91 compatible = "jedec,spi-nor";
93 spi-max-frequency = <10000000>;
96 compatible = "fixed-partitions";
107 label = "u-boot-env";
108 reg = <0x30000 0x10000>;
113 compatible = "denx,uimage";
115 reg = <0x40000 0x7b0000>;
118 art: partition@7f0000 {
120 reg = <0x7f0000 0x10000>;
128 nvmem-cells = <&macaddr_art_0>;
129 nvmem-cell-names = "mac-address";
133 ralink,mtd-eeprom = <&art 0x1000>;
135 nvmem-cells = <&macaddr_art_6>;
136 nvmem-cell-names = "mac-address";
141 groups = "i2c", "uartf", "spi refclk";
147 compatible = "nvmem-cells";
148 #address-cells = <1>;
151 macaddr_art_0: macaddr@0 {
155 macaddr_art_6: macaddr@6 {