ramips: move redundant console setup to mt7621 SoC DTSI
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_buffalo_wsr-600dhp.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "buffalo,wsr-600dhp", "mediatek,mt7621-soc";
10 model = "Buffalo WSR-600DHP";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_power: power {
23 label = "wsr-600:green:power";
24 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
25 };
26
27 wifi_o {
28 label = "wsr-600:orange:wifi";
29 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
30 };
31
32 diag {
33 label = "wsr-600:orange:diag";
34 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
35 };
36
37 wifi_g {
38 label = "wsr-600:green:wifi";
39 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
40 };
41
42 router_o {
43 label = "wsr-600:orange:router";
44 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
45 };
46
47 router_g {
48 label = "wsr-600:green:router";
49 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
50 };
51
52 internet_o {
53 label = "wsr-600:orange:internet";
54 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
55 };
56
57 internet_g {
58 label = "wsr-600:green:internet";
59 gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
60 };
61 };
62
63 keys {
64 compatible = "gpio-keys";
65
66 power {
67 label = "power";
68 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_POWER>;
70 };
71
72 reset {
73 label = "reset";
74 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_RESTART>;
76 };
77
78 aoss {
79 label = "aoss";
80 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_WPS_BUTTON>;
82 };
83
84 auto {
85 label = "mode";
86 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
87 linux,code = <BTN_0>;
88 linux,input-type = <EV_SW>;
89 };
90
91 ap {
92 label = "ap";
93 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
94 linux,code = <BTN_0>;
95 linux,input-type = <EV_SW>;
96 };
97
98 router {
99 label = "router";
100 gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
101 linux,code = <BTN_0>;
102 linux,input-type = <EV_SW>;
103 };
104 };
105
106 gpio_poweroff {
107 compatible = "gpio-poweroff";
108 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
109 };
110 };
111
112 &spi0 {
113 status = "okay";
114
115 flash@0 {
116 compatible = "jedec,spi-nor";
117 reg = <0>;
118 spi-max-frequency = <10000000>;
119
120 partitions {
121 compatible = "fixed-partitions";
122 #address-cells = <1>;
123 #size-cells = <1>;
124
125 partition@0 {
126 label = "u-boot";
127 reg = <0x0 0x30000>;
128 read-only;
129 };
130
131 partition@30000 {
132 label = "u-boot-env";
133 reg = <0x30000 0x10000>;
134 read-only;
135 };
136
137 factory: partition@40000 {
138 label = "factory";
139 reg = <0x40000 0x10000>;
140 read-only;
141 };
142
143 partition@50000 {
144 compatible = "denx,uimage";
145 label = "firmware";
146 reg = <0x50000 0xfb0000>;
147 };
148 };
149 };
150 };
151
152 &state_default {
153 gpio {
154 groups = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
155 function = "gpio";
156 };
157 };
158
159 &pcie {
160 status = "okay";
161 };
162
163 &pcie0 {
164 rt5592@0,0 {
165 reg = <0x0000 0 0 0 0>;
166 ralink,mtd-eeprom = <&factory 0x8000>;
167 };
168 };
169
170 &pcie1 {
171 mt76@0,0 {
172 reg = <0x0000 0 0 0 0>;
173 mediatek,mtd-eeprom = <&factory 0x0000>;
174 };
175 };
176
177 &gmac0 {
178 mtd-mac-address = <&factory 0x4>;
179 };
180
181 &switch0 {
182 ports {
183 port@0 {
184 status = "okay";
185 label = "lan1";
186 };
187
188 port@1 {
189 status = "okay";
190 label = "lan2";
191 };
192
193 port@2 {
194 status = "okay";
195 label = "lan3";
196 };
197
198 port@3 {
199 status = "okay";
200 label = "lan4";
201 };
202
203 port@4 {
204 status = "okay";
205 label = "wan";
206 };
207 };
208 };
209
210 &xhci {
211 status = "disabled";
212 };