1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
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>
10 compatible = "engenius,epg600", "ralink,mt7620a-soc";
11 model = "EnGenius EPG600";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-keys";
28 linux,code = <KEY_RESTART>;
29 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
30 debounce-interval = <60>;
34 linux,code = <KEY_WPS_BUTTON>;
35 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
36 debounce-interval = <60>;
41 gpios = <&gpio2 7 GPIO_ACTIVE_LOW>;
42 debounce-interval = <60>;
47 compatible = "gpio-leds";
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_AMBER>;
52 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
57 label = "blue:wlan2g";
58 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
59 linux,default-trigger = "phy1tpt";
63 label = "blue:wlan5g";
64 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
69 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
73 label = "amber:wps5g";
74 gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
79 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
100 compatible = "jedec,spi-nor";
102 spi-max-frequency = <30000000>;
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
116 label = "u-boot-env";
117 reg = <0x30000 0x10000>;
120 factory: partition@40000 {
122 reg = <0x40000 0x10000>;
126 compatible = "fixed-layout";
127 #address-cells = <1>;
130 eeprom_factory_0: eeprom@0 {
136 rf: partition@50000 {
138 reg = <0x50000 0x10000>;
142 compatible = "fixed-layout";
143 #address-cells = <1>;
146 eeprom_rf_0: eeprom@0 {
150 macaddr_rf_4: macaddr@4 {
158 reg = <0x60000 0xf40000>;
159 compatible = "denx,uimage";
164 reg = <0xfa0000 0x10000>;
170 reg = <0xfb0000 0x50000>;
178 pinctrl-names = "default";
179 pinctrl-0 = <&mdio_pins &rgmii1_pins &rgmii2_pins>;
181 nvmem-cells = <&macaddr_rf_4>;
182 nvmem-cell-names = "mac-address";
187 phy-mode = "rgmii-txid";
189 mediatek,fixed-link = <1000 1 1 1>;
199 qca,ar8327-initvals = <
200 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
201 0x08 0x01000000 /* PORT5 PAD MODE CTRL */
202 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
203 0x10 0x40000000 /* POWER-ON STRAPPING */
204 0x7c 0x0000007e /* PORT0_STATUS */
205 0x94 0x0000007e /* PORT6_STATUS */
212 mediatek,ephy-disable;
221 compatible = "pci1814,3091";
222 reg = <0x0000 0 0 0 0>;
223 nvmem-cells = <&eeprom_factory_0>;
224 nvmem-cell-names = "eeprom";
229 nvmem-cells = <&eeprom_rf_0>;
230 nvmem-cell-names = "eeprom";
243 groups = "ephy", "wled", "spi refclk", "i2c", "uartf", "nd_sd";