hostapd: bump to 2024-09-06 (wip)
[openwrt/staging/xback.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 partition@40000 {
62 label = "factory";
63 reg = <0x40000 0x10000>;
64 read-only;
65
66 nvmem-layout {
67 compatible = "fixed-layout";
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 eeprom_factory_0: eeprom@0 {
72 reg = <0x0 0x400>;
73 };
74
75 eeprom_factory_8000: eeprom@8000 {
76 reg = <0x8000 0x200>;
77 };
78
79 macaddr_factory_e000: macaddr@e000 {
80 reg = <0xe000 0x6>;
81 };
82
83 macaddr_factory_e006: macaddr@e006 {
84 reg = <0xe006 0x6>;
85 };
86 };
87 };
88
89 partition@50000 {
90 compatible = "denx,uimage";
91 label = "firmware";
92 reg = <0x50000 0xfb0000>;
93 };
94 };
95 };
96 };
97
98 &gmac0 {
99 nvmem-cells = <&macaddr_factory_e000>;
100 nvmem-cell-names = "mac-address";
101 };
102
103 &gmac1 {
104 status = "okay";
105 label = "wan";
106 phy-handle = <&ethphy4>;
107
108 nvmem-cells = <&macaddr_factory_e006>;
109 nvmem-cell-names = "mac-address";
110 };
111
112 &ethphy4 {
113 /delete-property/ interrupts;
114 };
115
116 &switch0 {
117 ports {
118 port@0 {
119 status = "okay";
120 label = "lan1";
121 };
122
123 port@1 {
124 status = "okay";
125 label = "lan2";
126 };
127
128 port@2 {
129 status = "okay";
130 label = "lan3";
131 };
132
133 port@3 {
134 status = "okay";
135 label = "lan4";
136 };
137 };
138 };
139
140 &pcie {
141 status = "okay";
142 };
143
144 &pcie1 {
145 wifi@0,0 {
146 compatible = "mediatek,mt76";
147 reg = <0x0000 0 0 0 0>;
148 nvmem-cells = <&eeprom_factory_8000>;
149 nvmem-cell-names = "eeprom";
150 ieee80211-freq-limit = <5000000 6000000>;
151
152 led {
153 led-sources = <2>;
154 led-active-low;
155 };
156 };
157 };
158
159 &pcie2 {
160 wifi1: wifi@0,0 {
161 compatible = "mediatek,mt76";
162 reg = <0x0000 0 0 0 0>;
163 nvmem-cells = <&eeprom_factory_0>;
164 nvmem-cell-names = "eeprom";
165 ieee80211-freq-limit = <2400000 2500000>;
166
167 led {
168 led-sources = <0>;
169 led-active-low;
170 };
171 };
172 };
173
174 &sdhci {
175 status = "okay";
176 };