ramips: move redundant console setup to mt7621 SoC DTSI
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_elecom_wrc-1167ghbk2-s.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 = "elecom,wrc-1167ghbk2-s", "mediatek,mt7621-soc";
10 model = "ELECOM WRC-1167GHBK2-S";
11
12 aliases {
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_green;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_green;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 wlan2g {
23 label = "wrc-1167ghbk2-s:white:wlan2g";
24 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
25 linux,default-trigger = "phy0radio";
26 };
27
28 wlan5g {
29 label = "wrc-1167ghbk2-s:white:wlan5g";
30 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
31 };
32
33 led_power_green: power_green {
34 label = "wrc-1167ghbk2-s:green:power";
35 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
36 };
37
38 power_blue {
39 label = "wrc-1167ghbk2-s:blue:power";
40 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
41 };
42
43 wps {
44 label = "wrc-1167ghbk2-s:red:wps";
45 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
46 };
47
48 power_red {
49 label = "wrc-1167ghbk2-s:red:power";
50 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
51 };
52 };
53
54 keys {
55 compatible = "gpio-keys";
56
57 reset {
58 label = "reset";
59 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_RESTART>;
61 };
62
63 wps {
64 label = "wps";
65 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_WPS_BUTTON>;
67 };
68 };
69 };
70
71 &gmac0 {
72 mtd-mac-address = <&factory 0xe000>;
73 };
74
75 &switch0 {
76 ports {
77 port@0 {
78 status = "okay";
79 label = "wan";
80 mtd-mac-address = <&factory 0xe006>;
81 };
82
83 port@1 {
84 status = "okay";
85 label = "lan4";
86 };
87
88 port@2 {
89 status = "okay";
90 label = "lan3";
91 };
92
93 port@3 {
94 status = "okay";
95 label = "lan2";
96 };
97
98 port@4 {
99 status = "okay";
100 label = "lan1";
101 };
102 };
103 };
104
105 &spi0 {
106 status = "okay";
107
108 flash@0 {
109 compatible = "jedec,spi-nor";
110 reg = <0>;
111 spi-max-frequency = <10000000>;
112
113 partitions {
114 compatible = "fixed-partitions";
115 #address-cells = <1>;
116 #size-cells = <1>;
117
118 partition@0 {
119 label = "u-boot";
120 reg = <0x0 0x30000>;
121 read-only;
122 };
123
124 partition@30000 {
125 label = "u-boot-env";
126 reg = <0x30000 0x10000>;
127 read-only;
128 };
129
130 factory: partition@40000 {
131 label = "factory";
132 reg = <0x40000 0x10000>;
133 read-only;
134 };
135
136 partition@50000 {
137 compatible = "denx,uimage";
138 label = "firmware";
139 reg = <0x50000 0xf20000>;
140 };
141
142 partition@f70000 {
143 label = "user_data";
144 reg = <0xf70000 0x80000>;
145 read-only;
146 };
147
148 partition@ff0000 {
149 label = "NVRAM";
150 reg = <0xff0000 0x10000>;
151 read-only;
152 };
153 };
154 };
155 };
156
157 &state_default {
158 gpio {
159 groups = "i2c", "uart3", "jtag", "wdt";
160 function = "gpio";
161 };
162 };
163
164 &pcie {
165 status = "okay";
166 };
167
168 &pcie0 {
169 wifi@0,0 {
170 compatible = "mediatek,mt76";
171 reg = <0x0000 0 0 0 0>;
172 mediatek,mtd-eeprom = <&factory 0x0>;
173 mtd-mac-address = <&factory 0xe000>;
174 mtd-mac-address-increment = <1>;
175 };
176 };
177
178 &xhci {
179 status = "disabled";
180 };