ramips: move partitions into partition table node
[openwrt/staging/dedeckeh.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 label = "firmware";
76 reg = <0x50000 0xfb0000>;
77 };
78 };
79 };
80 };
81
82 &ethernet {
83 mtd-mac-address = <&factory 0xe000>;
84 };
85
86 &pcie {
87 status = "okay";
88 };
89
90 &pcie0 {
91 mt76@0,0 {
92 reg = <0x0000 0 0 0 0>;
93 mediatek,mtd-eeprom = <&factory 0x8000>;
94 ieee80211-freq-limit = <5000000 6000000>;
95 };
96 };
97
98 &pcie1 {
99 mt76@0,0 {
100 reg = <0x0000 0 0 0 0>;
101 mediatek,mtd-eeprom = <&factory 0x0000>;
102 ieee80211-freq-limit = <2400000 2500000>;
103 };
104 };
105
106 &sdhci {
107 status = "okay";
108 };