ramips: move redundant console setup to mt7621 SoC DTSI
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_mtc_wr1201.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 = "mtc,wr1201", "mediatek,mt7621-soc";
10 model = "MTC Wireless Router WR1201";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = &gmac0;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_power: power {
24 label = "wr1201:green:power";
25 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
26 };
27
28 usb {
29 label = "wr1201:green:usb";
30 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
31 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
32 linux,default-trigger = "usbport";
33 };
34
35 eth_link {
36 label = "wr1201:green:eth_link";
37 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
38 };
39
40 wps {
41 label = "wr1201:green:wps";
42 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
43 };
44 };
45
46 keys {
47 compatible = "gpio-keys";
48
49 reset {
50 label = "reset";
51 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
53 };
54 };
55 };
56
57 &spi0 {
58 status = "okay";
59
60 flash@0 {
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63 spi-max-frequency = <10000000>;
64
65 partitions {
66 compatible = "fixed-partitions";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 partition@0 {
71 label = "Bootloader";
72 reg = <0x0 0x30000>;
73 read-only;
74 };
75
76 partition@30000 {
77 label = "Config";
78 reg = <0x30000 0x10000>;
79 read-only;
80 };
81
82 factory: partition@40000 {
83 label = "factory";
84 reg = <0x40000 0x10000>;
85 read-only;
86 };
87
88 partition@50000 {
89 compatible = "denx,uimage";
90 label = "firmware";
91 reg = <0x50000 0xfa0000>;
92 };
93
94 partition@ff0000 {
95 label = "Second_Config";
96 reg = <0xff0000 0x10000>;
97 read-only;
98 };
99 };
100 };
101 };
102
103 &gmac0 {
104 mtd-mac-address = <&factory 0x4>;
105 };
106
107 &switch0 {
108 ports {
109 port@0 {
110 status = "okay";
111 label = "lan4";
112 };
113
114 port@1 {
115 status = "okay";
116 label = "lan3";
117 };
118
119 port@2 {
120 status = "okay";
121 label = "lan2";
122 };
123
124 port@3 {
125 status = "okay";
126 label = "lan1";
127 };
128
129 port@4 {
130 status = "okay";
131 label = "wan";
132 mtd-mac-address = <&factory 0x4>;
133 mtd-mac-address-increment = <1>;
134 };
135 };
136 };
137
138 &sdhci {
139 status = "okay";
140 };
141
142 &pcie {
143 status = "okay";
144 };
145
146 &pcie0 {
147 wifi@0,0 {
148 reg = <0x0000 0 0 0 0>;
149 mediatek,mtd-eeprom = <&factory 0x8000>;
150 ieee80211-freq-limit = <5000000 6000000>;
151
152 led {
153 led-sources = <2>;
154 led-active-low;
155 };
156 };
157 };
158
159 &pcie1 {
160 wifi@0,0 {
161 reg = <0x0000 0 0 0 0>;
162 mediatek,mtd-eeprom = <&factory 0x0000>;
163 ieee80211-freq-limit = <2400000 2500000>;
164
165 led {
166 led-sources = <2>;
167 led-active-low;
168 };
169 };
170 };
171
172 &state_default {
173 gpio {
174 groups = "rgmii2";
175 function = "gpio";
176 };
177 };