kernel: remove non-existant symbols
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_mediatek_linkit-smart-7688.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 = "mediatek,linkit-smart-7688", "mediatek,mt7628an-soc";
10         model = "MediaTek LinkIt Smart 7688";
11
12         aliases {
13                 led-boot = &led_wifi;
14                 led-failsafe = &led_wifi;
15                 led-running = &led_wifi;
16                 led-upgrade = &led_wifi;
17         };
18
19         chosen {
20                 bootargs = "console=ttyS2,57600";
21         };
22
23         aliases {
24                 serial0 = &uart2;
25         };
26
27         bootstrap {
28                 compatible = "mediatek,linkit";
29
30                 status = "okay";
31         };
32
33         leds {
34                 compatible = "gpio-leds";
35
36                 led_wifi: wifi {
37                         label = "linkit-smart-7688:orange:wifi";
38                         gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
39                 };
40         };
41
42         keys {
43                 compatible = "gpio-keys";
44
45                 wps {
46                         label = "reset";
47                         gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
48                         linux,code = <KEY_WPS_BUTTON>;
49                 };
50         };
51 };
52
53 &state_default {
54         gpio {
55                 groups = "gpio";
56                 function = "gpio";
57         };
58
59         refclk {
60                 groups = "refclk";
61                 function = "gpio";
62         };
63
64         i2s {
65                 groups = "i2s";
66                 function = "gpio";
67         };
68
69         spis {
70                 groups = "spis";
71                 function = "gpio";
72         };
73
74         wled_an {
75                 groups = "wled_an";
76                 function = "gpio";
77         };
78
79         wdt {
80                 groups = "wdt";
81                 function = "gpio";
82         };
83 };
84
85 &spi0 {
86         status = "okay";
87
88         pinctrl-names = "default";
89         pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
90
91         m25p80@0 {
92                 compatible = "jedec,spi-nor";
93                 reg = <0>;
94                 spi-max-frequency = <40000000>;
95
96                 partitions {
97                         compatible = "fixed-partitions";
98                         #address-cells = <1>;
99                         #size-cells = <1>;
100
101                         partition@0 {
102                                 label = "u-boot";
103                                 reg = <0x0 0x30000>;
104                                 read-only;
105                         };
106
107                         partition@30000 {
108                                 label = "u-boot-env";
109                                 reg = <0x30000 0x10000>;
110                         };
111
112                         factory: partition@40000 {
113                                 label = "factory";
114                                 reg = <0x40000 0x10000>;
115                                 read-only;
116                         };
117
118                         partition@50000 {
119                                 compatible = "denx,uimage";
120                                 label = "firmware";
121                                 reg = <0x50000 0x1fb0000>;
122                         };
123                 };
124         };
125
126         spidev@1 {
127                 #address-cells = <1>;
128                 #size-cells = <1>;
129                 compatible = "linux,spidev";
130                 reg = <1>;
131                 spi-max-frequency = <40000000>;
132         };
133 };
134
135 &i2c {
136         status = "okay";
137 };
138
139 &uart1 {
140         status = "okay";
141 };
142
143 &uart2 {
144         status = "okay";
145 };
146
147 &pwm {
148         status = "okay";
149 };
150
151 &ethernet {
152         mtd-mac-address = <&factory 0x28>;
153 };
154
155 &sdhci {
156         status = "okay";
157         mediatek,cd-high;
158 };
159
160 &wmac {
161         status = "okay";
162 };