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