kernel: remove non-existant symbols
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_glinet_gl-mt300n-v2.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 = "glinet,gl-mt300n-v2", "mediatek,mt7628an-soc";
10         model = "GL-MT300N-V2";
11
12         aliases {
13                 led-boot = &led_power;
14                 led-failsafe = &led_power;
15                 led-running = &led_power;
16                 led-upgrade = &led_power;
17                 label-mac-device = &ethernet;
18         };
19
20         chosen {
21                 bootargs = "console=ttyS0,115200";
22         };
23
24         leds {
25                 compatible = "gpio-leds";
26
27                 led_power: power {
28                         label = "gl-mt300n-v2:green:power";
29                         default-state = "on";
30                         gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
31                 };
32
33                 wan {
34                         label = "gl-mt300n-v2:green:wan";
35                         gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
36                 };
37
38                 wlan {
39                         label = "gl-mt300n-v2:red:wlan";
40                         gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
41                 };
42         };
43
44         keys {
45                 compatible = "gpio-keys";
46
47                 reset {
48                         label = "reset";
49                         gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
50                         linux,code = <KEY_RESTART>;
51                 };
52
53                 BTN_0 {
54                         label = "BTN_0";
55                         gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
56                         linux,code = <BTN_0>;
57                 };
58
59                 BTN_1 {
60                         label = "BTN_1";
61                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
62                         linux,code = <BTN_1>;
63                 };
64         };
65
66         gpio_export {
67                 compatible = "gpio-export";
68                 #size-cells = <0>;
69
70                 usb {
71                         gpio-export,name = "usb";
72                         gpio-export,output = <1>;
73                         gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
74                 };
75         };
76 };
77
78 &state_default {
79         gpio {
80                 groups = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s";
81                 function = "gpio";
82         };
83 };
84
85 &ethernet {
86         mtd-mac-address = <&factory 0x4>;
87 };
88
89 &wmac {
90         status = "okay";
91 };
92
93 &spi0 {
94         status = "okay";
95
96         m25p80@0 {
97                 compatible = "jedec,spi-nor";
98                 reg = <0>;
99                 spi-max-frequency = <10000000>;
100
101                 partitions {
102                         compatible = "fixed-partitions";
103                         #address-cells = <1>;
104                         #size-cells = <1>;
105
106                         partition@0 {
107                                 label = "u-boot";
108                                 reg = <0x0 0x30000>;
109                                 read-only;
110                         };
111
112                         partition@30000 {
113                                 label = "u-boot-env";
114                                 reg = <0x30000 0x10000>;
115                                 read-only;
116                         };
117
118                         factory: partition@40000 {
119                                 label = "factory";
120                                 reg = <0x40000 0x10000>;
121                                 read-only;
122                         };
123
124                         partition@50000 {
125                                 compatible = "denx,uimage";
126                                 label = "firmware";
127                                 reg = <0x50000 0xfb0000>;
128                         };
129                 };
130         };
131 };
132
133 &uart1 {
134         status = "okay";
135 };
136
137 &ehci {
138         status = "okay";
139 };
140
141 &ohci {
142         status = "okay";
143 };