2 * Device Tree file for the Edimax BR-6478AC V2
3 * based on Linksys E1700
5 * Copyright (C) 2016 Rohan Murch <rohan.murch@gmail.com>
6 * Copyright (C) 2016 Hans Ulli Kroll <ulli.kroll@googlemail.com>
7 * Copyright (C) 2017 James McKenzie <openwrt@madingley.org>
9 * This file is licensed under the terms of the GNU General Public
10 * License version 2. This program is licensed "as is" without any
11 * warranty of any kind, whether express or implied.
14 #include "mt7620a.dtsi"
16 #include <dt-bindings/gpio/gpio.h>
17 #include <dt-bindings/input/input.h>
18 #include <dt-bindings/mtd/partitions/uimage.h>
21 compatible = "edimax,br-6478ac-v2", "ralink,mt7620a-soc";
22 model = "Edimax BR-6478AC v2";
25 led-boot = &led_power;
26 led-failsafe = &led_power;
27 led-running = &led_power;
28 led-upgrade = &led_power;
32 compatible = "gpio-keys";
36 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
42 compatible = "gpio-leds";
45 label = "white:power";
46 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
50 label = "blue:internet";
51 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
56 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
61 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
62 trigger-sources = <&ohci_port1>, <&ehci_port1>;
63 linux,default-trigger = "usbport";
68 compatible = "gpio-export";
71 gpio-export,name="usb-power";
72 gpio-export,output=<1>;
73 gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
86 compatible = "jedec,spi-nor";
88 spi-max-frequency = <10000000>;
91 compatible = "fixed-partitions";
102 label = "u-boot-env";
103 reg = <0x30000 0x10000>;
107 factory: partition@40000 {
109 reg = <0x40000 0x10000>;
115 reg = <0x50000 0x20000>;
120 compatible = "openwrt,uimage", "denx,uimage";
121 openwrt,offset = <FW_EDIMAX_OFFSET>;
122 openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
124 reg = <0x00070000 0x00790000>;
132 groups = "i2c", "uartf", "nd_sd";
138 pinctrl-names = "default";
139 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
141 mtd-mac-address = <&factory 0x4>;
143 mediatek,portmap = "wllll";
147 mediatek,fixed-link = <1000 1 1 1>;
154 phy0: ethernet-phy@0 {
159 phy1: ethernet-phy@1 {
164 phy2: ethernet-phy@2 {
169 phy3: ethernet-phy@3 {
174 phy4: ethernet-phy@4 {
179 phy1f: ethernet-phy@1f {
187 mediatek,port4 = "gmac";
191 ralink,mtd-eeprom = <&factory 0x0>;
200 reg = <0x0000 0 0 0 0>;
201 mediatek,mtd-eeprom = <&factory 0x8000>;