ramips: fix power LED DTB for wt3020
[openwrt/staging/wigyori.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 compatible = "jedec,spi-nor";
107 reg = <0>;
108 spi-max-frequency = <40000000>;
109 m25p,chunked-io = <31>;
110
111 partitions {
112 compatible = "fixed-partitions";
113 #address-cells = <1>;
114 #size-cells = <1>;
115
116 partition@0 {
117 label = "u-boot";
118 reg = <0x0 0x30000>;
119 read-only;
120 };
121
122 partition@30000 {
123 label = "u-boot-env";
124 reg = <0x30000 0x10000>;
125 read-only;
126 };
127
128 factory: partition@40000 {
129 label = "factory";
130 reg = <0x40000 0x10000>;
131 read-only;
132 };
133
134 firmware: partition@50000 {
135 label = "firmware";
136 };
137 };
138 };
139
140 spidev@1 {
141 #address-cells = <1>;
142 #size-cells = <1>;
143 compatible = "linux,spidev";
144 reg = <1>;
145 spi-max-frequency = <40000000>;
146 };
147 };
148
149 &i2c {
150 status = "okay";
151 };
152
153 &uart1 {
154 status = "okay";
155 };
156
157 &uart2 {
158 status = "okay";
159 };
160
161 &ethernet {
162 mtd-mac-address = <&factory 0x28>;
163 };
164
165 &sdhci {
166 status = "okay";
167 mediatek,cd-low;
168 };
169
170 &wmac {
171 status = "okay";
172 };