1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2016 Rohan Murch <rohan.murch@gmail.com>
4 * Copyright (C) 2016 Hans Ulli Kroll <ulli.kroll@googlemail.com>
5 * Copyright (C) 2017 James McKenzie <openwrt@madingley.org>
8 #include "mt7620a.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
12 #include <dt-bindings/mtd/partitions/uimage.h>
15 compatible = "edimax,br-6478ac-v2", "ralink,mt7620a-soc";
16 model = "Edimax BR-6478AC v2";
19 led-boot = &led_power;
20 led-failsafe = &led_power;
21 led-running = &led_power;
22 led-upgrade = &led_power;
26 compatible = "gpio-keys";
30 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 compatible = "gpio-leds";
39 label = "white:power";
40 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
44 label = "blue:internet";
45 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
50 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
55 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
56 trigger-sources = <&ohci_port1>, <&ehci_port1>;
57 linux,default-trigger = "usbport";
62 compatible = "gpio-export";
65 gpio-export,name="usb-power";
66 gpio-export,output=<1>;
67 gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
80 compatible = "jedec,spi-nor";
82 spi-max-frequency = <10000000>;
85 compatible = "fixed-partitions";
97 reg = <0x30000 0x10000>;
101 factory: partition@40000 {
103 reg = <0x40000 0x10000>;
107 compatible = "fixed-layout";
108 #address-cells = <1>;
111 eeprom_factory_0: eeprom@0 {
115 eeprom_factory_8000: eeprom@8000 {
116 reg = <0x8000 0x200>;
119 macaddr_factory_4: macaddr@4 {
127 reg = <0x50000 0x20000>;
132 compatible = "openwrt,uimage", "denx,uimage";
133 openwrt,offset = <FW_EDIMAX_OFFSET>;
134 openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
136 reg = <0x00070000 0x00790000>;
144 groups = "i2c", "uartf", "nd_sd";
150 pinctrl-names = "default";
151 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
153 nvmem-cells = <&macaddr_factory_4>;
154 nvmem-cell-names = "mac-address";
156 mediatek,portmap = "wllll";
160 mediatek,fixed-link = <1000 1 1 1>;
167 phy0: ethernet-phy@0 {
172 phy1: ethernet-phy@1 {
177 phy2: ethernet-phy@2 {
182 phy3: ethernet-phy@3 {
187 phy4: ethernet-phy@4 {
192 phy1f: ethernet-phy@1f {
200 mediatek,ephy-base = /bits/ 8 <12>;
204 nvmem-cells = <&eeprom_factory_0>;
205 nvmem-cell-names = "eeprom";
214 reg = <0x0000 0 0 0 0>;
215 nvmem-cells = <&eeprom_factory_8000>;
216 nvmem-cell-names = "eeprom";
217 ieee80211-freq-limit = <5000000 6000000>;