ramips: specify "firmware" partition format
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ZL5900V2.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "zorlik,zl5900v2", "ralink,rt5350-soc";
10 model = "Zorlik ZL5900V2";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 gpio-leds {
20 compatible = "gpio-leds";
21
22 lan {
23 label = "zl5900v2:green:lan";
24 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
25 };
26
27 led_power: power {
28 label = "zl5900v2:blue:power";
29 gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
30 };
31 };
32
33 gpio-keys-polled {
34 compatible = "gpio-keys-polled";
35 poll-interval = <20>;
36
37 reset {
38 label = "reset";
39 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
41 };
42 };
43 };
44
45 &spi0 {
46 status = "okay";
47
48 m25p80@0 {
49 compatible = "jedec,spi-nor";
50 reg = <0>;
51 spi-max-frequency = <10000000>;
52
53 partitions {
54 compatible = "fixed-partitions";
55 #address-cells = <1>;
56 #size-cells = <1>;
57
58 partition@0 {
59 label = "u-boot";
60 reg = <0x0 0x30000>;
61 read-only;
62 };
63
64 partition@30000 {
65 label = "u-boot-env";
66 reg = <0x30000 0x10000>;
67 read-only;
68 };
69
70 factory: partition@40000 {
71 label = "factory";
72 reg = <0x40000 0x10000>;
73 read-only;
74 };
75
76 partition@50000 {
77 compatible = "denx,uimage";
78 label = "firmware";
79 reg = <0x50000 0x7b0000>;
80 };
81 };
82 };
83 };
84
85 &pinctrl {
86 state_default: pinctrl0 {
87 gpio {
88 ralink,group = "jtag", "uartf";
89 ralink,function = "gpio";
90 };
91 };
92 };
93
94 &ethernet {
95 mtd-mac-address = <&factory 0x4>;
96 };
97
98 &esw {
99 mediatek,portmap = <0>;
100 mediatek,portdisable = <0x2f>;
101 };
102
103 &wmac {
104 ralink,mtd-eeprom = <&factory 0>;
105 };