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-status = &led_power;
30 bootargs = "console=ttyS0,57600";
34 compatible = "gpio-keys-polled";
39 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
45 compatible = "gpio-leds";
48 label = "br-6478ac-v2:white:power";
49 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
52 label = "br-6478ac-v2:blue:internet";
53 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
56 label = "br-6478ac-v2:blue:wlan";
57 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
60 label = "br-6478ac-v2:blue:usb";
61 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
62 trigger-sources = <&ohci_port1>, <&ehci_port1>;
63 linux,default-trigger = "usbport";
69 compatible = "gpio-export";
72 gpio-export,name="usb-power";
73 gpio-export,output=<1>;
74 gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
88 compatible = "jedec,spi-nor";
90 spi-max-frequency = <10000000>;
93 compatible = "fixed-partitions";
104 label = "u-boot-env";
105 reg = <0x30000 0x10000>;
109 factory: partition@40000 {
111 reg = <0x40000 0x10000>;
117 reg = <0x50000 0x20000>;
123 reg = <0x00070000 0x00790000>;
130 state_default: pinctrl0 {
132 ralink,group = "i2c", "uartf", "nd_sd";
133 ralink,function = "gpio";
140 mtd-mac-address = <&factory 0x4>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
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 0>;
200 reg = <0x0000 0 0 0 0>;
201 mediatek,mtd-eeprom = <&factory 0x8000>;