ramips: Cudy WR1300v2 fix mt7613 calibration data length
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_zbtlink_zbt-we1326.dts
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "zbtlink,zbt-we1326", "mediatek,mt7621-soc";
8 model = "Zbtlink ZBT-WE1326";
9
10 aliases {
11 label-mac-device = &wifi1;
12 };
13
14 chosen {
15 bootargs = "console=ttyS0,115200";
16 };
17
18 keys {
19 compatible = "gpio-keys";
20
21 reset {
22 label = "reset";
23 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
25 };
26 };
27 };
28
29 &state_default {
30 gpio {
31 groups = "wdt";
32 function = "gpio";
33 };
34 };
35
36 &spi0 {
37 status = "okay";
38
39 flash@0 {
40 compatible = "jedec,spi-nor";
41 reg = <0>;
42 spi-max-frequency = <10000000>;
43
44 partitions {
45 compatible = "fixed-partitions";
46 #address-cells = <1>;
47 #size-cells = <1>;
48
49 partition@0 {
50 label = "u-boot";
51 reg = <0x0 0x30000>;
52 read-only;
53 };
54
55 partition@30000 {
56 label = "u-boot-env";
57 reg = <0x30000 0x10000>;
58 read-only;
59 };
60
61 factory: partition@40000 {
62 compatible = "nvmem-cells";
63 label = "factory";
64 reg = <0x40000 0x10000>;
65 #address-cells = <1>;
66 #size-cells = <1>;
67 read-only;
68
69 eeprom_factory_0: eeprom@0 {
70 reg = <0x0 0x400>;
71 };
72
73 eeprom_factory_8000: eeprom@8000 {
74 reg = <0x8000 0x200>;
75 };
76
77 macaddr_factory_e000: macaddr@e000 {
78 reg = <0xe000 0x6>;
79 };
80
81 macaddr_factory_e006: macaddr@e006 {
82 reg = <0xe006 0x6>;
83 };
84 };
85
86 partition@50000 {
87 compatible = "denx,uimage";
88 label = "firmware";
89 reg = <0x50000 0xfb0000>;
90 };
91 };
92 };
93 };
94
95 &gmac0 {
96 nvmem-cells = <&macaddr_factory_e000>;
97 nvmem-cell-names = "mac-address";
98 };
99
100 &gmac1 {
101 status = "okay";
102 label = "wan";
103 phy-handle = <&ethphy4>;
104
105 nvmem-cells = <&macaddr_factory_e006>;
106 nvmem-cell-names = "mac-address";
107 };
108
109 &mdio {
110 ethphy4: ethernet-phy@4 {
111 reg = <4>;
112 };
113 };
114
115 &switch0 {
116 ports {
117 port@0 {
118 status = "okay";
119 label = "lan1";
120 };
121
122 port@1 {
123 status = "okay";
124 label = "lan2";
125 };
126
127 port@2 {
128 status = "okay";
129 label = "lan3";
130 };
131
132 port@3 {
133 status = "okay";
134 label = "lan4";
135 };
136 };
137 };
138
139 &pcie {
140 status = "okay";
141 };
142
143 &pcie1 {
144 wifi@0,0 {
145 compatible = "mediatek,mt76";
146 reg = <0x0000 0 0 0 0>;
147 nvmem-cells = <&eeprom_factory_8000>;
148 nvmem-cell-names = "eeprom";
149 ieee80211-freq-limit = <5000000 6000000>;
150
151 led {
152 led-sources = <2>;
153 led-active-low;
154 };
155 };
156 };
157
158 &pcie2 {
159 wifi1: wifi@0,0 {
160 compatible = "mediatek,mt76";
161 reg = <0x0000 0 0 0 0>;
162 nvmem-cells = <&eeprom_factory_0>;
163 nvmem-cell-names = "eeprom";
164 ieee80211-freq-limit = <2400000 2500000>;
165
166 led {
167 led-sources = <0>;
168 led-active-low;
169 };
170 };
171 };
172
173 &sdhci {
174 status = "okay";
175 };