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>
20 compatible = "edimax,br-6478ac-v2", "ralink,mt7620a-soc";
21 model = "Edimax BR-6478AC v2";
24 led-boot = &led_power;
25 led-failsafe = &led_power;
26 led-running = &led_power;
27 led-upgrade = &led_power;
31 compatible = "gpio-keys";
35 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
41 compatible = "gpio-leds";
44 label = "br-6478ac-v2:white:power";
45 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
49 label = "br-6478ac-v2:blue:internet";
50 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
54 label = "br-6478ac-v2:blue:wlan";
55 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
59 label = "br-6478ac-v2:blue:usb";
60 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
61 trigger-sources = <&ohci_port1>, <&ehci_port1>;
62 linux,default-trigger = "usbport";
67 compatible = "gpio-export";
70 gpio-export,name="usb-power";
71 gpio-export,output=<1>;
72 gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
85 compatible = "jedec,spi-nor";
87 spi-max-frequency = <10000000>;
90 compatible = "fixed-partitions";
101 label = "u-boot-env";
102 reg = <0x30000 0x10000>;
106 factory: partition@40000 {
108 reg = <0x40000 0x10000>;
114 reg = <0x50000 0x20000>;
119 compatible = "edimax,uimage";
121 reg = <0x00070000 0x00790000>;
129 groups = "i2c", "uartf", "nd_sd";
135 pinctrl-names = "default";
136 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
138 mtd-mac-address = <&factory 0x4>;
140 mediatek,portmap = "wllll";
144 mediatek,fixed-link = <1000 1 1 1>;
151 phy0: ethernet-phy@0 {
156 phy1: ethernet-phy@1 {
161 phy2: ethernet-phy@2 {
166 phy3: ethernet-phy@3 {
171 phy4: ethernet-phy@4 {
176 phy1f: ethernet-phy@1f {
184 mediatek,port4 = "gmac";
188 ralink,mtd-eeprom = <&factory 0x0>;
197 reg = <0x0000 0 0 0 0>;
198 mediatek,mtd-eeprom = <&factory 0x8000>;