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.
16 #include "mt7620a.dtsi"
18 #include <dt-bindings/gpio/gpio.h>
19 #include <dt-bindings/input/input.h>
22 compatible = "edimax,br-6478ac-v2", "ralink,mt7620a-soc";
23 model = "Edimax BR-6478AC v2";
26 led-boot = &led_power;
27 led-failsafe = &led_power;
28 led-running = &led_power;
29 led-upgrade = &led_power;
33 bootargs = "console=ttyS0,57600";
37 compatible = "gpio-keys-polled";
42 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
48 compatible = "gpio-leds";
51 label = "br-6478ac-v2:white:power";
52 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
55 label = "br-6478ac-v2:blue:internet";
56 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
59 label = "br-6478ac-v2:blue:wlan";
60 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
63 label = "br-6478ac-v2:blue:usb";
64 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
65 trigger-sources = <&ohci_port1>, <&ehci_port1>;
66 linux,default-trigger = "usbport";
72 compatible = "gpio-export";
75 gpio-export,name="usb-power";
76 gpio-export,output=<1>;
77 gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
91 compatible = "jedec,spi-nor";
93 spi-max-frequency = <10000000>;
96 compatible = "fixed-partitions";
107 label = "u-boot-env";
108 reg = <0x30000 0x10000>;
112 factory: partition@40000 {
114 reg = <0x40000 0x10000>;
120 reg = <0x50000 0x20000>;
126 reg = <0x00070000 0x00790000>;
133 state_default: pinctrl0 {
135 ralink,group = "i2c", "uartf", "nd_sd";
136 ralink,function = "gpio";
143 mtd-mac-address = <&factory 0x4>;
144 pinctrl-names = "default";
145 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
146 mediatek,portmap = "wllll";
150 mediatek,fixed-link = <1000 1 1 1>;
157 phy0: ethernet-phy@0 {
162 phy1: ethernet-phy@1 {
167 phy2: ethernet-phy@2 {
172 phy3: ethernet-phy@3 {
177 phy4: ethernet-phy@4 {
182 phy1f: ethernet-phy@1f {
190 mediatek,port4 = "gmac";
194 ralink,mtd-eeprom = <&factory 0>;
203 reg = <0x0000 0 0 0 0>;
204 mediatek,mtd-eeprom = <&factory 0x8000>;