kernel: remove non-existant symbols
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_dlink_dir-860l-b1.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 = "dlink,dir-860l-b1", "mediatek,mt7621-soc";
10         model = "D-Link DIR-860L B1";
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                 label-mac-device = &gmac0;
18         };
19
20         chosen {
21                 bootargs = "console=ttyS0,57600";
22         };
23
24         leds {
25                 compatible = "gpio-leds";
26
27                 power {
28                         label = "dir-860l-b1:orange:power";
29                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
30                 };
31
32                 led_power_green: power2 {
33                         label = "dir-860l-b1:green:power";
34                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
35                 };
36
37                 net {
38                         label = "dir-860l-b1:orange:net";
39                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
40                 };
41
42                 net2 {
43                         label = "dir-860l-b1:green:net";
44                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
45                 };
46         };
47
48         keys {
49                 compatible = "gpio-keys";
50
51                 reset {
52                         label = "reset";
53                         gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
54                         linux,code = <KEY_RESTART>;
55                 };
56
57                 wps {
58                         label = "wps";
59                         gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
60                         linux,code = <KEY_WPS_BUTTON>;
61                 };
62         };
63 };
64
65 &spi0 {
66         status = "okay";
67
68         m25p80@0 {
69                 compatible = "jedec,spi-nor";
70                 reg = <0>;
71                 spi-max-frequency = <10000000>;
72
73                 partitions {
74                         compatible = "fixed-partitions";
75                         #address-cells = <1>;
76                         #size-cells = <1>;
77
78                         partition@0 {
79                                 label = "u-boot";
80                                 reg = <0x0 0x30000>;
81                                 read-only;
82                         };
83
84                         partition@30000 {
85                                 label = "u-boot-env";
86                                 reg = <0x30000 0x4000>;
87                                 read-only;
88                         };
89
90                         radio: partition@34000 {
91                                 label = "radio";
92                                 reg = <0x34000 0x4000>;
93                                 read-only;
94                         };
95
96                         factory: partition@38000 {
97                                 label = "factory";
98                                 reg = <0x38000 0x8000>;
99                                 read-only;
100                         };
101
102                         partition@40000 {
103                                 label = "defaults";
104                                 reg = <0x40000 0x10000>;
105                                 read-only;
106                         };
107
108                         partition@50000 {
109                                 compatible = "seama";
110                                 label = "firmware";
111                                 reg = <0x50000 0xfb0000>;
112                         };
113                 };
114         };
115 };
116
117 &gmac0 {
118         mtd-mac-address = <&radio 0x4>;
119 };
120
121 &switch0 {
122         ports {
123                 port@0 {
124                         status = "okay";
125                         label = "wan";
126                 };
127
128                 port@1 {
129                         status = "okay";
130                         label = "lan4";
131                 };
132
133                 port@2 {
134                         status = "okay";
135                         label = "lan3";
136                 };
137
138                 port@3 {
139                         status = "okay";
140                         label = "lan2";
141                 };
142
143                 port@4 {
144                         status = "okay";
145                         label = "lan1";
146                 };
147         };
148 };
149
150 &pcie {
151         status = "okay";
152 };
153
154 &pcie0 {
155         wifi0: mt76@0,0 {
156                 reg = <0x0000 0 0 0 0>;
157                 mediatek,mtd-eeprom = <&radio 0x2000>;
158                 ieee80211-freq-limit = <5000000 6000000>;
159         };
160 };
161
162 &pcie1 {
163         wifi1: mt76@0,0 {
164                 reg = <0x0000 0 0 0 0>;
165                 mediatek,mtd-eeprom = <&radio 0>;
166                 ieee80211-freq-limit = <2400000 2500000>;
167         };
168 };
169
170 &state_default {
171         gpio {
172                 groups = "uart3", "jtag", "wdt";
173                 function = "gpio";
174         };
175 };