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";
41 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
47 compatible = "gpio-leds";
50 label = "br-6478ac-v2:white:power";
51 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
54 label = "br-6478ac-v2:blue:wan";
55 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
58 label = "br-6478ac-v2:blue:wlan";
59 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
62 label = "br-6478ac-v2:blue:usb";
63 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
69 compatible = "gpio-export";
72 gpio-export,name="usb-power";
73 gpio-export,output=<1>;
74 gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; /* pin45 */
91 compatible = "jedec,spi-nor";
93 linux,modalias = "m25p80", "mx25l6405d";
94 spi-max-frequency = <10000000>;
103 label = "u-boot-env";
104 reg = <0x30000 0x10000>;
108 factory: partition@40000 {
110 reg = <0x40000 0x10000>;
116 reg = <0x50000 0x20000>;
122 reg = <0x00070000 0x00790000>;
128 state_default: pinctrl0 {
130 ralink,group = "i2c", "uartf", "wdt", "pa",
131 "ephy", "nd_sd", "wled";
132 ralink,function = "gpio";
139 mtd-mac-address = <&factory 0x4>;
140 pinctrl-names = "default";
141 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
142 mediatek,portmap = "wllll";
146 mediatek,fixed-link = <1000 1 1 1>;
153 phy0: ethernet-phy@0 {
158 phy1: ethernet-phy@1 {
163 phy2: ethernet-phy@2 {
168 phy3: ethernet-phy@3 {
173 phy4: ethernet-phy@4 {
178 phy1f: ethernet-phy@1f {
186 mediatek,port4 = "gmac";
187 mediatek,mt7530 = <1>;
192 ralink,mtd-eeprom = <&factory 0>;
200 reg = <0x0000 0 0 0 0>;
202 mediatek,mtd-eeprom = <&factory 0x8000>;