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