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