ramips: drop redundant chosen/bootargs
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_edimax_br-6478ac-v2.dts
1 /*
2 * Device Tree file for the Edimax BR-6478AC V2
3 * based on Linksys E1700
4 *
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>
8 *
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.
12 */
13
14 /dts-v1/;
15
16 #include "mt7620a.dtsi"
17
18 #include <dt-bindings/gpio/gpio.h>
19 #include <dt-bindings/input/input.h>
20
21 / {
22 compatible = "edimax,br-6478ac-v2", "ralink,mt7620a-soc";
23 model = "Edimax BR-6478AC v2";
24
25 aliases {
26 led-boot = &led_power;
27 led-failsafe = &led_power;
28 led-running = &led_power;
29 led-upgrade = &led_power;
30 };
31
32 keys {
33 compatible = "gpio-keys";
34
35 reset_wps {
36 label = "reset_wps";
37 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RESTART>;
39 };
40 };
41
42 leds {
43 compatible = "gpio-leds";
44
45 led_power: power {
46 label = "br-6478ac-v2:white:power";
47 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
48 };
49
50 internet {
51 label = "br-6478ac-v2:blue:internet";
52 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
53 };
54
55 wlan {
56 label = "br-6478ac-v2:blue:wlan";
57 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
58 };
59
60 usb {
61 label = "br-6478ac-v2:blue:usb";
62 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
63 trigger-sources = <&ohci_port1>, <&ehci_port1>;
64 linux,default-trigger = "usbport";
65 };
66 };
67
68 gpio_export {
69 compatible = "gpio-export";
70 #size-cells = <0>;
71 usb-power {
72 gpio-export,name="usb-power";
73 gpio-export,output=<1>;
74 gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
75 };
76 };
77 };
78
79 &gpio2 {
80 status = "okay";
81 };
82
83 &spi0 {
84 status = "okay";
85
86 flash@0 {
87 compatible = "jedec,spi-nor";
88 reg = <0>;
89 spi-max-frequency = <10000000>;
90
91 partitions {
92 compatible = "fixed-partitions";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 partition@0 {
97 label = "u-boot";
98 reg = <0x0 0x30000>;
99 read-only;
100 };
101
102 partition@30000 {
103 label = "u-boot-env";
104 reg = <0x30000 0x10000>;
105 read-only;
106 };
107
108 factory: partition@40000 {
109 label = "factory";
110 reg = <0x40000 0x10000>;
111 read-only;
112 };
113
114 partition@50000 {
115 label = "cimage";
116 reg = <0x50000 0x20000>;
117 read-only;
118 };
119
120 partition@70000 {
121 compatible = "edimax,uimage";
122 label = "firmware";
123 reg = <0x00070000 0x00790000>;
124 };
125 };
126 };
127 };
128
129 &state_default {
130 gpio {
131 groups = "i2c", "uartf", "nd_sd";
132 function = "gpio";
133 };
134 };
135
136 &ethernet {
137 pinctrl-names = "default";
138 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
139
140 mtd-mac-address = <&factory 0x4>;
141
142 mediatek,portmap = "wllll";
143
144 port@5 {
145 status = "okay";
146 mediatek,fixed-link = <1000 1 1 1>;
147 phy-mode = "rgmii";
148 };
149
150 mdio-bus {
151 status = "okay";
152
153 phy0: ethernet-phy@0 {
154 reg = <0>;
155 phy-mode = "rgmii";
156 };
157
158 phy1: ethernet-phy@1 {
159 reg = <1>;
160 phy-mode = "rgmii";
161 };
162
163 phy2: ethernet-phy@2 {
164 reg = <2>;
165 phy-mode = "rgmii";
166 };
167
168 phy3: ethernet-phy@3 {
169 reg = <3>;
170 phy-mode = "rgmii";
171 };
172
173 phy4: ethernet-phy@4 {
174 reg = <4>;
175 phy-mode = "rgmii";
176 };
177
178 phy1f: ethernet-phy@1f {
179 reg = <0x1f>;
180 phy-mode = "rgmii";
181 };
182 };
183 };
184
185 &gsw {
186 mediatek,port4 = "gmac";
187 };
188
189 &wmac {
190 ralink,mtd-eeprom = <&factory 0x0>;
191 };
192
193 &pcie {
194 status = "okay";
195 };
196
197 &pcie0 {
198 wifi@0,0 {
199 reg = <0x0000 0 0 0 0>;
200 mediatek,mtd-eeprom = <&factory 0x8000>;
201 mediatek,2ghz = <0>;
202 };
203 };
204
205 &ehci {
206 status = "okay";
207 };
208
209 &ohci {
210 status = "okay";
211 };