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>
9 compatible = "edimax,ew-7478apc", "ralink,mt7620a-soc";
10 model = "Edimax EW-7478APC";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 compatible = "gpio-keys";
24 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
30 compatible = "gpio-leds";
33 label = "white:power";
34 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
38 label = "blue:internet";
39 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
44 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
49 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
50 trigger-sources = <&ohci_port1>, <&ehci_port1>;
51 linux,default-trigger = "usbport";
61 line-name = "enable USB power";
62 gpios = <5 GPIO_ACTIVE_HIGH>;
71 compatible = "jedec,spi-nor";
73 spi-max-frequency = <10000000>;
76 compatible = "fixed-partitions";
88 reg = <0x30000 0x10000>;
92 factory: partition@40000 {
94 reg = <0x40000 0x10000>;
100 reg = <0x50000 0x20000>;
105 compatible = "edimax,uimage";
107 reg = <0x00070000 0x00790000>;
115 groups = "i2c", "uartf", "nd_sd";
121 pinctrl-names = "default";
122 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
124 mtd-mac-address = <&factory 0x4>;
126 mediatek,portmap = "wllll";
130 mediatek,fixed-link = <1000 1 1 1>;
137 phy0: ethernet-phy@0 {
142 phy1: ethernet-phy@1 {
147 phy2: ethernet-phy@2 {
152 phy3: ethernet-phy@3 {
157 phy4: ethernet-phy@4 {
162 phy1f: ethernet-phy@1f {
170 mediatek,port4 = "gmac";
174 ralink,mtd-eeprom = <&factory 0x0>;
183 reg = <0x0000 0 0 0 0>;
184 mediatek,mtd-eeprom = <&factory 0x8000>;