hostapd: bump to 2024-09-06 (wip)
[openwrt/staging/xback.git] / target / linux / ramips / dts / mt7621_iptime_a3004t.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "iptime,a3004t", "mediatek,mt7621-soc";
11 model = "ipTIME A3004T";
12
13 aliases {
14 led-boot = &led_cpu;
15 led-failsafe = &led_cpu;
16 led-running = &led_cpu;
17 led-upgrade = &led_cpu;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_cpu: led-0 {
24 color = <LED_COLOR_ID_AMBER>;
25 function = LED_FUNCTION_CPU;
26 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
27 };
28
29 led-1 {
30 color = <LED_COLOR_ID_AMBER>;
31 function = LED_FUNCTION_WLAN;
32 function-enumerator = <0>;
33 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
34 linux,default-trigger = "phy0radio";
35 };
36
37 led-2 {
38 color = <LED_COLOR_ID_AMBER>;
39 function = LED_FUNCTION_WLAN;
40 function-enumerator = <1>;
41 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy1radio";
43 };
44 };
45
46 keys {
47 compatible = "gpio-keys";
48
49 reset {
50 label = "reset";
51 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
53 };
54 };
55 };
56
57 &nand {
58 status = "okay";
59
60 partitions {
61 compatible = "fixed-partitions";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 partition@0 {
66 label = "u-boot";
67 reg = <0x0 0x80000>;
68 read-only;
69 };
70
71 partition@80000 {
72 label = "config";
73 reg = <0x80000 0x20000>;
74 read-only;
75 };
76
77 partition@a0000 {
78 label = "factory";
79 reg = <0xa0000 0x20000>;
80 read-only;
81
82 nvmem-layout {
83 compatible = "fixed-layout";
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 eeprom_factory_0: eeprom@0 {
88 reg = <0x0 0x4da8>;
89 };
90
91 macaddr_factory_4: macaddr@4 {
92 compatible = "mac-base";
93 reg = <0x4 0x6>;
94 #nvmem-cell-cells = <1>;
95 };
96
97 macaddr_factory_8004: macaddr@8004 {
98 reg = <0x8004 0x6>;
99 };
100 };
101 };
102
103 partition@140000 {
104 label = "firmware";
105 reg = <0x140000 0x7e40000>;
106
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
109 #size-cells = <1>;
110
111 partition@0 {
112 label = "kernel";
113 reg = <0x0 0x400000>;
114 };
115
116 partition@400000 {
117 label = "ubi";
118 reg = <0x400000 0x7a40000>;
119 };
120 };
121 };
122 };
123
124 &gmac0 {
125 nvmem-cells = <&macaddr_factory_4 3>;
126 nvmem-cell-names = "mac-address";
127 };
128
129 &gmac1 {
130 status = "okay";
131 label = "wan";
132 phy-handle = <&ethphy0>;
133
134 nvmem-cells = <&macaddr_factory_4 1>;
135 nvmem-cell-names = "mac-address";
136 };
137
138 &ethphy0 {
139 /delete-property/ interrupts;
140 };
141
142 &switch0 {
143 ports {
144 port@1 {
145 status = "okay";
146 label = "lan4";
147 };
148
149 port@2 {
150 status = "okay";
151 label = "lan3";
152 };
153
154 port@3 {
155 status = "okay";
156 label = "lan2";
157 };
158
159 port@4 {
160 status = "okay";
161 label = "lan1";
162 };
163 };
164 };
165
166 &pcie {
167 status = "okay";
168 };
169
170 &pcie0 {
171 wifi@0,0 {
172 compatible = "mediatek,mt76";
173 reg = <0x0000 0 0 0 0>;
174 nvmem-cells = <&eeprom_factory_0>;
175 nvmem-cell-names = "eeprom";
176 };
177 };
178
179 &state_default {
180 gpio {
181 groups = "i2c", "jtag", "wdt";
182 function = "gpio";
183 };
184 };