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-polled";
30 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 compatible = "gpio-leds";
39 label = "ew-7478apc:white:power";
40 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
44 label = "ew-7478apc:blue:internet";
45 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
49 label = "ew-7478apc:blue:wlan";
50 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
54 label = "ew-7478apc:blue:usb";
55 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
56 trigger-sources = <&ohci_port1>, <&ehci_port1>;
57 linux,default-trigger = "usbport";
67 line-name = "enable USB power";
68 gpios = <5 GPIO_ACTIVE_HIGH>;
77 compatible = "jedec,spi-nor";
79 spi-max-frequency = <10000000>;
82 compatible = "fixed-partitions";
94 reg = <0x30000 0x10000>;
98 factory: partition@40000 {
100 reg = <0x40000 0x10000>;
106 reg = <0x50000 0x20000>;
111 compatible = "edimax,uimage";
113 reg = <0x00070000 0x00790000>;
120 state_default: pinctrl0 {
122 ralink,group = "i2c", "uartf", "nd_sd";
123 ralink,function = "gpio";
130 mtd-mac-address = <&factory 0x4>;
131 pinctrl-names = "default";
132 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
133 mediatek,portmap = "wllll";
137 mediatek,fixed-link = <1000 1 1 1>;
144 phy0: ethernet-phy@0 {
149 phy1: ethernet-phy@1 {
154 phy2: ethernet-phy@2 {
159 phy3: ethernet-phy@3 {
164 phy4: ethernet-phy@4 {
169 phy1f: ethernet-phy@1f {
177 mediatek,port4 = "gmac";
181 ralink,mtd-eeprom = <&factory 0>;
190 reg = <0x0000 0 0 0 0>;
191 mediatek,mtd-eeprom = <&factory 0x8000>;