ramips: specify "firmware" partition format
[oweals/openwrt.git] / target / linux / ramips / dts / ZBT-WE1326.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "zbtlink,zbt-we1326", "mediatek,mt7621-soc";
10         model = "ZBT-WE1326";
11
12         chosen {
13                 bootargs = "console=ttyS0,115200";
14         };
15
16         memory@0 {
17                 device_type = "memory";
18                 reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
19         };
20
21         gpio-keys-polled {
22                 compatible = "gpio-keys-polled";
23                 poll-interval = <20>;
24
25                 reset {
26                         label = "reset";
27                         gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
28                         linux,code = <KEY_RESTART>;
29                 };
30         };
31 };
32
33 &pinctrl {
34         state_default: pinctrl0 {
35                 gpio {
36                         ralink,group = "wdt";
37                         ralink,function = "gpio";
38                 };
39         };
40 };
41
42 &spi0 {
43         status = "okay";
44
45         m25p80@0 {
46                 compatible = "jedec,spi-nor";
47                 reg = <0>;
48                 spi-max-frequency = <10000000>;
49                 m25p,chunked-io = <32>;
50
51                 partitions {
52                         compatible = "fixed-partitions";
53                         #address-cells = <1>;
54                         #size-cells = <1>;
55
56                         partition@0 {
57                                 label = "u-boot";
58                                 reg = <0x0 0x30000>;
59                                 read-only;
60                         };
61
62                         partition@30000 {
63                                 label = "u-boot-env";
64                                 reg = <0x30000 0x10000>;
65                                 read-only;
66                         };
67
68                         factory: partition@40000 {
69                                 label = "factory";
70                                 reg = <0x40000 0x10000>;
71                                 read-only;
72                         };
73
74                         partition@50000 {
75                                 compatible = "denx,uimage";
76                                 label = "firmware";
77                                 reg = <0x50000 0xfb0000>;
78                         };
79                 };
80         };
81 };
82
83 &ethernet {
84         mtd-mac-address = <&factory 0xe000>;
85 };
86
87 &pcie {
88         status = "okay";
89 };
90
91 &pcie0 {
92         mt76@0,0 {
93                 reg = <0x0000 0 0 0 0>;
94                 mediatek,mtd-eeprom = <&factory 0x8000>;
95                 ieee80211-freq-limit = <5000000 6000000>;
96         };
97 };
98
99 &pcie1 {
100         mt76@0,0 {
101                 reg = <0x0000 0 0 0 0>;
102                 mediatek,mtd-eeprom = <&factory 0x0000>;
103                 ieee80211-freq-limit = <2400000 2500000>;
104         };
105 };
106
107 &sdhci {
108         status = "okay";
109 };