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>;
99 compatible = "fixed-layout";
100 #address-cells = <1>;
103 eeprom_factory_0: eeprom@0 {
107 eeprom_factory_8000: eeprom@8000 {
108 reg = <0x8000 0x200>;
111 macaddr_factory_4: macaddr@4 {
119 reg = <0x50000 0x20000>;
124 compatible = "openwrt,uimage", "denx,uimage";
125 openwrt,offset = <FW_EDIMAX_OFFSET>;
126 openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
128 reg = <0x00070000 0x00790000>;
136 groups = "i2c", "uartf", "nd_sd";
142 pinctrl-names = "default";
143 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
145 nvmem-cells = <&macaddr_factory_4>;
146 nvmem-cell-names = "mac-address";
148 mediatek,portmap = "wllll";
152 mediatek,fixed-link = <1000 1 1 1>;
159 phy0: ethernet-phy@0 {
164 phy1: ethernet-phy@1 {
169 phy2: ethernet-phy@2 {
174 phy3: ethernet-phy@3 {
179 phy4: ethernet-phy@4 {
184 phy1f: ethernet-phy@1f {
192 mediatek,ephy-base = /bits/ 8 <12>;
196 nvmem-cells = <&eeprom_factory_0>;
197 nvmem-cell-names = "eeprom";
206 reg = <0x0000 0 0 0 0>;
207 nvmem-cells = <&eeprom_factory_8000>;
208 nvmem-cell-names = "eeprom";
209 ieee80211-freq-limit = <5000000 6000000>;