ramips: move partitions into partition table node
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / VOCORE2LITE.dts
1 /dts-v1/;
2
3 #include "VOCORE2.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6
7 / {
8 compatible = "vocore,vocore2lite", "vocore,vocore2", "mediatek,mt7628an-soc";
9 model = "VoCore2-Lite";
10
11 aliases {
12 led-status = &led_status;
13 };
14
15 gpio-leds {
16 compatible = "gpio-leds";
17
18 led_status: status {
19 label = "vocore2lite:green:status";
20 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
21 };
22 };
23 };
24
25 &spi0 {
26 status = "okay";
27
28 m25p80@0 {
29 compatible = "jedec,spi-nor";
30 reg = <0>;
31 spi-max-frequency = <10000000>;
32 m25p,chunked-io = <32>;
33
34 partitions {
35 compatible = "fixed-partitions";
36 #address-cells = <1>;
37 #size-cells = <1>;
38
39 partition@0 {
40 label = "u-boot";
41 reg = <0x0 0x30000>;
42 read-only;
43 };
44
45 partition@30000 {
46 label = "u-boot-env";
47 reg = <0x30000 0x10000>;
48 read-only;
49 };
50
51 factory: partition@40000 {
52 label = "factory";
53 reg = <0x40000 0x10000>;
54 read-only;
55 };
56
57 partition@50000 {
58 label = "firmware";
59 reg = <0x50000 0x7b0000>;
60 };
61 };
62 };
63 };