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