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