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