kernel: remove non-existant symbols
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_afoundry_ew1200.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 = "afoundry,ew1200", "mediatek,mt7621-soc";
10         model = "EW1200";
11
12         aliases {
13                 led-boot = &led_run;
14                 led-failsafe = &led_run;
15                 led-running = &led_run;
16                 led-upgrade = &led_run;
17         };
18
19         chosen {
20                 bootargs = "console=ttyS0,57600";
21         };
22
23         keys {
24                 compatible = "gpio-keys";
25
26                 reset {
27                         label = "reset";
28                         gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
29                         linux,code = <KEY_RESTART>;
30                 };
31         };
32
33         leds {
34                 compatible = "gpio-leds";
35
36                 led_run: run {
37                         label = "ew1200:green:run";
38                         gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
39                 };
40
41                 usb {
42                         label = "ew1200:green:usb";
43                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
44                         trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
45                         linux,default-trigger = "usbport";
46                 };
47         };
48 };
49
50 &sdhci {
51         status = "okay";
52 };
53
54 &spi0 {
55         status = "okay";
56
57         m25p80@0 {
58                 compatible = "jedec,spi-nor";
59                 reg = <0>;
60                 spi-max-frequency = <10000000>;
61
62                 partitions {
63                         compatible = "fixed-partitions";
64                         #address-cells = <1>;
65                         #size-cells = <1>;
66
67                         partition@0 {
68                                 label = "u-boot";
69                                 reg = <0x0 0x30000>;
70                                 read-only;
71                         };
72
73                         partition@30000 {
74                                 label = "u-boot-env";
75                                 reg = <0x30000 0x10000>;
76                                 read-only;
77                         };
78
79                         factory: partition@40000 {
80                                 label = "factory";
81                                 reg = <0x40000 0x10000>;
82                                 read-only;
83                         };
84
85                         partition@50000 {
86                                 compatible = "denx,uimage";
87                                 label = "firmware";
88                                 reg = <0x50000 0xfb0000>;
89                         };
90                 };
91         };
92 };
93
94 &pcie {
95         status = "okay";
96 };
97
98 &pcie0 {
99         mt76@0,0 {
100                 reg = <0x0000 0 0 0 0>;
101                 mediatek,mtd-eeprom = <&factory 0x8000>;
102                 ieee80211-freq-limit = <5000000 6000000>;
103         };
104 };
105
106 &pcie1 {
107         mt76@0,0 {
108                 reg = <0x0000 0 0 0 0>;
109                 mediatek,mtd-eeprom = <&factory 0x0000>;
110                 ieee80211-freq-limit = <2400000 2500000>;
111         };
112 };
113
114 &gmac0 {
115         mtd-mac-address = <&factory 0xe000>;
116 };
117
118 &switch0 {
119         ports {
120                 port@0 {
121                         status = "okay";
122                         label = "lan1";
123                 };
124
125                 port@1 {
126                         status = "okay";
127                         label = "lan2";
128                 };
129
130                 port@2 {
131                         status = "okay";
132                         label = "lan3";
133                 };
134
135                 port@3 {
136                         status = "okay";
137                         label = "lan4";
138                 };
139
140                 port@4 {
141                         status = "okay";
142                         label = "wan";
143                         mtd-mac-address = <&factory 0xe000>;
144                         mtd-mac-address-increment = <1>;
145                 };
146         };
147 };
148
149 &state_default {
150         gpio {
151                 groups = "i2c", "uart3", "wdt";
152                 function = "gpio";
153         };
154 };