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 = "edimax,ew-7478apc", "ralink,mt7620a-soc";
11 model = "Edimax EW-7478APC";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 bootargs = "console=ttyS0,57600";
25 compatible = "gpio-keys";
29 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 compatible = "gpio-leds";
38 label = "ew-7478apc:white:power";
39 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
43 label = "ew-7478apc:blue:internet";
44 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
48 label = "ew-7478apc:blue:wlan";
49 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
53 label = "ew-7478apc:blue:usb";
54 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
55 trigger-sources = <&ohci_port1>, <&ehci_port1>;
56 linux,default-trigger = "usbport";
66 line-name = "enable USB power";
67 gpios = <5 GPIO_ACTIVE_HIGH>;
76 compatible = "jedec,spi-nor";
78 spi-max-frequency = <10000000>;
81 compatible = "fixed-partitions";
93 reg = <0x30000 0x10000>;
97 factory: partition@40000 {
99 reg = <0x40000 0x10000>;
105 reg = <0x50000 0x20000>;
110 compatible = "edimax,uimage";
112 reg = <0x00070000 0x00790000>;
119 state_default: pinctrl0 {
121 ralink,group = "i2c", "uartf", "nd_sd";
122 ralink,function = "gpio";
129 mtd-mac-address = <&factory 0x4>;
130 pinctrl-names = "default";
131 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
132 mediatek,portmap = "wllll";
136 mediatek,fixed-link = <1000 1 1 1>;
143 phy0: ethernet-phy@0 {
148 phy1: ethernet-phy@1 {
153 phy2: ethernet-phy@2 {
158 phy3: ethernet-phy@3 {
163 phy4: ethernet-phy@4 {
168 phy1f: ethernet-phy@1f {
176 mediatek,port4 = "gmac";
180 ralink,mtd-eeprom = <&factory 0>;
189 reg = <0x0000 0 0 0 0>;
190 mediatek,mtd-eeprom = <&factory 0x8000>;