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