kernel: remove non-existant symbols
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_elecom_wrc-gst.dtsi
1 // SPDX-License-Identifier: GPL-2.0
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         aliases {
10                 led-boot = &led_power_green;
11                 led-failsafe = &led_power_green;
12                 led-running = &led_power_green;
13                 led-upgrade = &led_power_green;
14         };
15
16         chosen {
17                 bootargs = "console=ttyS0,57600";
18         };
19
20         leds {
21                 compatible = "gpio-leds";
22
23                 led_power_green: power_green {
24                         label = "wrc-gst:green:power";
25                         gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
26                 };
27
28                 power_blue {
29                         label = "wrc-gst:blue:power";
30                         gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
31                 };
32
33                 wps {
34                         label = "wrc-gst:red:wps";
35                         gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
36                 };
37
38                 power_red {
39                         label = "wrc-gst:red:power";
40                         gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
41                 };
42         };
43
44         keys {
45                 compatible = "gpio-keys";
46
47                 reset {
48                         label = "reset";
49                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
50                         linux,code = <KEY_RESTART>;
51                 };
52
53                 wps {
54                         label = "wps";
55                         gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
56                         linux,code = <KEY_WPS_BUTTON>;
57                 };
58
59                 client {
60                         label = "client";
61                         gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
62                         linux,code = <BTN_0>;
63                         linux,input-type = <EV_SW>;
64                 };
65
66                 ap {
67                         label = "ap";
68                         gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
69                         linux,code = <BTN_0>;
70                         linux,input-type = <EV_SW>;
71                 };
72
73                 extender {
74                         label = "extender";
75                         gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
76                         linux,code = <BTN_0>;
77                         linux,input-type = <EV_SW>;
78                 };
79
80                 router {
81                         label = "router";
82                         gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
83                         linux,code = <BTN_0>;
84                         linux,input-type = <EV_SW>;
85                 };
86         };
87 };
88
89 &gmac0 {
90         mtd-mac-address = <&factory 0xe000>;
91 };
92
93 &switch0 {
94         ports {
95                 port@0 {
96                         status = "okay";
97                         label = "wan";
98                         mtd-mac-address = <&factory 0xe006>;
99                 };
100
101                 port@1 {
102                         status = "okay";
103                         label = "lan4";
104                 };
105
106                 port@2 {
107                         status = "okay";
108                         label = "lan3";
109                 };
110
111                 port@3 {
112                         status = "okay";
113                         label = "lan2";
114                 };
115
116                 port@4 {
117                         status = "okay";
118                         label = "lan1";
119                 };
120         };
121 };
122
123 &spi0 {
124         status = "okay";
125
126         m25p80@0 {
127                 compatible = "jedec,spi-nor";
128                 reg = <0>;
129                 spi-max-frequency = <10000000>;
130
131                 partitions {
132                         compatible = "fixed-partitions";
133                         #address-cells = <1>;
134                         #size-cells = <1>;
135
136                         partition@0 {
137                                 label = "u-boot";
138                                 reg = <0x0 0x30000>;
139                                 read-only;
140                         };
141
142                         partition@30000 {
143                                 label = "u-boot-env";
144                                 reg = <0x30000 0x10000>;
145                                 read-only;
146                         };
147
148                         factory: partition@40000 {
149                                 label = "factory";
150                                 reg = <0x40000 0x10000>;
151                                 read-only;
152                         };
153
154                         partition@50000 {
155                                 compatible = "denx,uimage";
156                                 label = "firmware";
157                                 reg = <0x50000 0xb00000>;
158                         };
159
160                         partition@b50000 {
161                                 label = "tm_pattern";
162                                 reg = <0xb50000 0x380000>;
163                                 read-only;
164                         };
165
166                         partition@ed0000 {
167                                 label = "tm_key";
168                                 reg = <0xed0000 0x80000>;
169                                 read-only;
170                         };
171
172                         partition@f50000 {
173                                 label = "art_block";
174                                 reg = <0xf50000 0x30000>;
175                                 read-only;
176                         };
177
178                         partition@f80000 {
179                                 label = "user_data";
180                                 reg = <0xf80000 0x80000>;
181                                 read-only;
182                         };
183                 };
184         };
185 };
186
187 &state_default {
188         gpio {
189                 groups = "uart3", "jtag", "wdt", "sdhci";
190                 function = "gpio";
191         };
192 };
193
194 &pcie {
195         status = "okay";
196         /* WRC-xxxxGST has MT7615 for 2.4/5 GHz wifi, but it's not supported */
197 };
198
199 &xhci {
200         status = "disabled";
201 };