ramips: specify "firmware" partition format
[oweals/openwrt.git] / target / linux / ramips / dts / WRTNODE2.dtsi
1 #include "mt7628an.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7         compatible = "wrtnode,wrtnode2", "mediatek,mt7628an-soc";
8
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         gpio-keys-polled {
14                 compatible = "gpio-keys-polled";
15                 poll-interval = <20>;
16
17                 reset {
18                         label = "reset";
19                         gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
20                         linux,code = <KEY_RESTART>;
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                                 compatible = "denx,uimage";
59                                 label = "firmware";
60                                 reg = <0x50000 0x1fb0000>;
61                         };
62                 };
63         };
64
65         spidev@1 {
66                 #address-cells = <1>;
67                 #size-cells = <1>;
68                 compatible = "linux,spidev";
69                 reg = <1>;
70                 spi-max-frequency = <10000000>;
71         };
72 };
73
74 &uart1 {
75         status = "okay";
76 };
77
78 &i2c {
79         status = "okay";
80 };
81
82 &ethernet {
83         mtd-mac-address = <&factory 0x4>;
84         mediatek,portmap = "llllw";
85 };
86
87 &sdhci {
88         status = "okay";
89 };
90
91 &pcie {
92         status = "okay";
93 };
94
95 &wmac {
96         status = "okay";
97 };