e79eb6a92bbb7ed8cde85309a1714b446fa3da08
[openwrt/staging/dedeckeh.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 #address-cells = <1>;
28 #size-cells = <0>;
29 poll-interval = <20>;
30
31 reset {
32 label = "reset";
33 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
34 linux,code = <KEY_RESTART>;
35 };
36 };
37 };
38
39 &pinctrl {
40 state_default: pinctrl0 {
41 gpio {
42 ralink,group = "gpio";
43 ralink,function = "gpio";
44 };
45
46 perst {
47 ralink,group = "perst";
48 ralink,function = "gpio";
49 };
50
51 refclk {
52 ralink,group = "refclk";
53 ralink,function = "gpio";
54 };
55
56 i2s {
57 ralink,group = "i2s";
58 ralink,function = "gpio";
59 };
60
61 spis {
62 ralink,group = "spis";
63 ralink,function = "gpio";
64 };
65
66 wled_kn {
67 ralink,group = "wled_kn";
68 ralink,function = "gpio";
69 };
70
71 wled_an {
72 ralink,group = "wled_an";
73 ralink,function = "gpio";
74 };
75
76 wdt {
77 ralink,group = "wdt";
78 ralink,function = "gpio";
79 };
80
81 pwm0 {
82 ralink,group = "pwm0";
83 ralink,function = "gpio";
84 };
85
86 pwm1 {
87 ralink,group = "pwm1";
88 ralink,function = "gpio";
89 };
90 };
91 };
92
93 &gpio1 {
94 status = "okay";
95 };
96
97 &gpio2 {
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 };