1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7620a.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "engenius,esr600", "ralink,mt7620a-soc";
11 model = "EnGenius ESR600";
14 bootargs = "console=ttyS0,115200";
18 led-boot = &led_power;
19 led-failsafe = &led_power;
20 led-running = &led_power;
21 led-upgrade = &led_power;
25 compatible = "gpio-leds";
28 label = "esr600:amber:power";
29 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
33 label = "esr600:amber:wps2g";
34 gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
38 label = "esr600:blue:wlan5g";
39 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
43 label = "esr600:blue:wlan2g";
44 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
49 compatible = "gpio-keys";
53 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART>;
55 debounce-interval = <60>;
60 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_WPS_BUTTON>;
62 debounce-interval = <60>;
85 compatible = "jedec,spi-nor";
87 spi-max-frequency = <50000000>;
91 compatible = "fixed-partitions";
102 label = "u-boot-env";
103 reg = <0x30000 0x10000>;
107 factory: partition@40000 {
109 reg = <0x40000 0x10000>;
113 iNIC_rf: partition@50000 {
115 reg = <0x50000 0x10000>;
121 reg = <0x60000 0xf40000>;
122 compatible = "denx,uimage";
127 reg = <0xfa0000 0x10000>;
133 reg = <0xfb0000 0x50000>;
142 pinctrl-names = "default";
143 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
144 mtd-mac-address = <&iNIC_rf 0x4>;
149 mediatek,fixed-link = <1000 1 1 1>;
159 qca,ar8327-initvals = <
160 0x10 0x40000000 /* POWER-ON STRAPPING */
161 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
162 0x7c 0x0000007e /* PORT0 STATUS */
163 0x0c 0x05600000 /* PORT6 PAD MODE CTRL */
164 0x94 0x0000007e /* PORT6 STATUS */
171 state_default: pinctrl0 {
173 ralink,group = "i2c", /* gpio0: 1-2 */
174 "uartf", /* gpio0: 7-14 */
175 "nd_sd", /* gpio2: 45-59 */
176 "wled"; /* gpio3: 72 */
177 ralink,function = "gpio";
188 compatible = "pci1814,5592";
190 ralink,mtd-eeprom = <&factory 0x0>;
195 ralink,mtd-eeprom = <&iNIC_rf 0x0>;