kernel: remove non-existant symbols
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_buffalo_wcr-1166ds.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "buffalo,wcr-1166ds", "mediatek,mt7628an-soc";
10         model = "Buffalo WCR-1166DS";
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         keys {
20                 compatible = "gpio-keys";
21
22                 aoss {
23                         label = "aoss";
24                         gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
25                         linux,code = <KEY_WPS_BUTTON>;
26                 };
27
28                 ap {
29                         label = "ap";
30                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
31                         linux,code = <BTN_0>;
32                         linux,input-type = <EV_SW>;
33                 };
34
35                 reset {
36                         label = "reset";
37                         gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
38                         linux,code = <KEY_RESTART>;
39                 };
40         };
41
42         leds {
43                 compatible = "gpio-leds";
44
45                 router_o {
46                         label = "wcr-1166ds:orange:router";
47                         gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
48                 };
49
50                 router_g {
51                         label = "wcr-1166ds:green:router";
52                         gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
53                 };
54
55                 internet_o {
56                         label = "wcr-1166ds:orange:internet";
57                         gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
58                 };
59
60                 internet_g {
61                         label = "wcr-1166ds:green:internet";
62                         gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
63                 };
64
65                 wireless_o {
66                         label = "wcr-1166ds:orange:wireless";
67                         gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
68                 };
69
70                 wireless_g {
71                         label = "wcr-1166ds:green:wireless";
72                         gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
73                 };
74
75                 diag {
76                         label = "wcr-1166ds:orange:diag";
77                         gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
78                 };
79
80                 led_power: power {
81                         label = "wcr-1166ds:green:power";
82                         gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
83                 };
84         };
85 };
86
87 &ehci {
88         status = "disabled";
89 };
90
91 &esw {
92         mediatek,portmap = <0x2f>;
93         mediatek,portdisable = <0x27>;
94 };
95
96 &ohci {
97         status = "disabled";
98 };
99
100 &pcie {
101         status = "okay";
102 };
103
104 &pcie0 {
105         mt76@0,0 {
106                 reg = <0x0000 0 0 0 0>;
107                 mediatek,mtd-eeprom = <&factory 0x8000>;
108                 ieee80211-freq-limit = <5000000 6000000>;
109         };
110 };
111
112 &state_default {
113         gpio {
114                 groups = "uart1", "wled_an", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "refclk", "gpio", "i2s";
115                 function = "gpio";
116         };
117 };
118
119 &spi0 {
120         status = "okay";
121
122         m25p80@0 {
123                 compatible = "jedec,spi-nor";
124                 reg = <0>;
125                 spi-max-frequency = <10000000>;
126
127                 partitions {
128                         compatible = "fixed-partitions";
129                         #address-cells = <1>;
130                         #size-cells = <1>;
131
132                         partition@0 {
133                                 label = "u-boot";
134                                 reg = <0x0 0x30000>;
135                                 read-only;
136                         };
137
138                         partition@30000 {
139                                 label = "u-boot-env";
140                                 reg = <0x30000 0x10000>;
141                                 read-only;
142                         };
143
144                         factory: partition@40000 {
145                                 label = "factory";
146                                 reg = <0x40000 0x10000>;
147                                 read-only;
148                         };
149
150                         partition@50000 {
151                                 compatible = "openwrt,trx";
152                                 label = "firmware";
153                                 reg = <0x50000 0x7c0000>;
154                         };
155
156                         partition@810000 {
157                                 label = "firmware2";
158                                 reg = <0x810000 0x7c0000>;
159                         };
160
161                         partition@fd0000 {
162                                 label = "glbcfg";
163                                 reg = <0xfd0000 0x10000>;
164                                 read-only;
165                         };
166
167                         partition@fe0000 {
168                                 label = "board_data";
169                                 reg = <0xfe0000 0x10000>;
170                                 read-only;
171                         };
172                 };
173         };
174 };
175
176 &wmac {
177         status = "okay";
178 };