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/mtd/partitions/uimage.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 = "white:power";
35 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
39 label = "blue:internet";
40 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
45 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
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 = "openwrt,uimage", "denx,uimage";
107 openwrt,offset = <FW_EDIMAX_OFFSET>;
108 openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
110 reg = <0x00070000 0x00790000>;
118 groups = "i2c", "uartf", "nd_sd";
124 pinctrl-names = "default";
125 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
127 mtd-mac-address = <&factory 0x4>;
129 mediatek,portmap = "wllll";
133 mediatek,fixed-link = <1000 1 1 1>;
140 phy0: ethernet-phy@0 {
145 phy1: ethernet-phy@1 {
150 phy2: ethernet-phy@2 {
155 phy3: ethernet-phy@3 {
160 phy4: ethernet-phy@4 {
165 phy1f: ethernet-phy@1f {
173 mediatek,ephy-base = /bits/ 8 <12>;
177 ralink,mtd-eeprom = <&factory 0x0>;
186 reg = <0x0000 0 0 0 0>;
187 mediatek,mtd-eeprom = <&factory 0x8000>;