ramips: move redundant console setup to mt7621 SoC DTSI
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_tplink_re350-v1.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 = "tplink,re350-v1", "mediatek,mt7621-soc";
10 model = "TP-LINK RE350 v1";
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 = "re350-v1:blue:power";
24 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
25 };
26
27 wifi2g {
28 label = "re350-v1:blue:wifi2G";
29 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
30 };
31
32 wifi5g {
33 label = "re350-v1:blue:wifi5G";
34 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
35 };
36
37 wps_r {
38 label = "re350-v1:red:wps";
39 gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
40 };
41
42 wps_b {
43 label = "re350-v1:blue:wps";
44 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
45 };
46
47 eth {
48 label = "re350-v1:green:eth_act";
49 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
50 };
51
52 eth2 {
53 label = "re350-v1:green:eth_link";
54 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
55 };
56 };
57
58 keys {
59 compatible = "gpio-keys";
60
61 led {
62 label = "led";
63 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
64 linux,code = <BTN_0>;
65 };
66
67 reset {
68 label = "reset";
69 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_RESTART>;
71 };
72
73 power {
74 label = "power";
75 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_POWER>;
77 };
78
79 wps {
80 label = "wps";
81 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_WPS_BUTTON>;
83 };
84 };
85 };
86
87 &spi0 {
88 status = "okay";
89
90 flash@0 {
91 compatible = "jedec,spi-nor";
92 reg = <0>;
93 spi-max-frequency = <10000000>;
94
95 partitions {
96 compatible = "fixed-partitions";
97 #address-cells = <1>;
98 #size-cells = <1>;
99
100 partition@0 {
101 label = "u-boot";
102 reg = <0x0 0x20000>;
103 read-only;
104 };
105
106 partition@20000 {
107 compatible = "tplink,firmware";
108 label = "firmware";
109 reg = <0x20000 0x5e0000>;
110 };
111
112 config: partition@600000 {
113 label = "config";
114 reg = <0x600000 0x50000>;
115 read-only;
116 };
117
118 radio: partition@7f0000 {
119 label = "radio";
120 reg = <0x7f0000 0x10000>;
121 read-only;
122 };
123 };
124 };
125 };
126
127 &pcie {
128 status = "okay";
129 };
130
131 &pcie0 {
132 mt76@0,0 {
133 reg = <0x0000 0 0 0 0>;
134 mediatek,mtd-eeprom = <&radio 0x0>;
135 mtd-mac-address = <&config 0x10008>;
136 mtd-mac-address-increment = <1>;
137 };
138 };
139
140 &pcie1 {
141 mt76@0,0 {
142 reg = <0x0000 0 0 0 0>;
143 mediatek,mtd-eeprom = <&radio 0x8000>;
144 ieee80211-freq-limit = <5000000 6000000>;
145 mtd-mac-address = <&config 0x10008>;
146 mtd-mac-address-increment = <2>;
147 };
148 };
149
150 &gmac0 {
151 mtd-mac-address = <&config 0x10008>;
152 };
153
154 &switch0 {
155 ports {
156 port@0 {
157 status = "okay";
158 label = "lan";
159 };
160 };
161 };
162
163 &state_default {
164 gpio {
165 groups = "rgmii2", "wdt";
166 function = "gpio";
167 };
168 };