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 compatible = "gpio-keys";
25 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
31 compatible = "gpio-leds";
34 label = "ew-7478apc:white:power";
35 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
39 label = "ew-7478apc:blue:internet";
40 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
44 label = "ew-7478apc:blue:wlan";
45 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
49 label = "ew-7478apc:blue:usb";
50 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
51 trigger-sources = <&ohci_port1>, <&ehci_port1>;
52 linux,default-trigger = "usbport";
62 line-name = "enable USB power";
63 gpios = <5 GPIO_ACTIVE_HIGH>;
72 compatible = "jedec,spi-nor";
74 spi-max-frequency = <10000000>;
77 compatible = "fixed-partitions";
89 reg = <0x30000 0x10000>;
93 factory: partition@40000 {
95 reg = <0x40000 0x10000>;
101 reg = <0x50000 0x20000>;
106 compatible = "edimax,uimage";
108 reg = <0x00070000 0x00790000>;
116 groups = "i2c", "uartf", "nd_sd";
122 pinctrl-names = "default";
123 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
125 mtd-mac-address = <&factory 0x4>;
127 mediatek,portmap = "wllll";
131 mediatek,fixed-link = <1000 1 1 1>;
138 phy0: ethernet-phy@0 {
143 phy1: ethernet-phy@1 {
148 phy2: ethernet-phy@2 {
153 phy3: ethernet-phy@3 {
158 phy4: ethernet-phy@4 {
163 phy1f: ethernet-phy@1f {
171 mediatek,port4 = "gmac";
175 ralink,mtd-eeprom = <&factory 0x0>;
184 reg = <0x0000 0 0 0 0>;
185 mediatek,mtd-eeprom = <&factory 0x8000>;