ramips: add support for Netgear EAX12 series
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_netgear_eax12.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
8 / {
9 compatible = "netgear,eax12", "mediatek,mt7621-soc";
10 model = "Netgear EAX12";
11
12 aliases {
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_red;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_red;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,115200";
21 };
22
23 keys {
24 compatible = "gpio-keys";
25
26 reset {
27 label = "reset";
28 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 };
31
32 wps {
33 label = "wps";
34 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_WPS_BUTTON>;
36 };
37 };
38
39 leds {
40 compatible = "gpio-leds";
41
42 led_power_green: power_green {
43 label = "green:power";
44 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
45 };
46
47 led_power_red: power_red {
48 label = "red:power";
49 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
50 };
51
52 client_green {
53 label = "green:client";
54 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
55 };
56
57 client_red {
58 label = "red:client";
59 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
60 };
61
62 router_green {
63 label = "green:router";
64 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
65 };
66
67 router_red {
68 label = "red:router";
69 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
70 };
71
72 wps_green {
73 label = "green:wps";
74 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
75 };
76
77 eth_green {
78 label = "green:eth";
79 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
80 };
81
82 eth_yellow {
83 label = "yellow:eth";
84 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
85 };
86 };
87 };
88
89 &nand {
90 status = "okay";
91
92 partitions {
93 compatible = "fixed-partitions";
94 #address-cells = <1>;
95 #size-cells = <1>;
96
97 partition@0 {
98 label = "Bootloader";
99 reg = <0x0 0x80000>;
100 read-only;
101 };
102
103 partition@80000 {
104 label = "Config";
105 reg = <0x80000 0x80000>;
106 read-only;
107 };
108
109 factory: partition@100000 {
110 label = "Factory";
111 reg = <0x100000 0x80000>;
112 read-only;
113 };
114
115 partition@180000 {
116 label = "firmware";
117 reg = <0x180000 0x3800000>;
118
119 compatible = "fixed-partitions";
120 #address-cells = <1>;
121 #size-cells = <1>;
122
123 partition@0 {
124 label = "kernel";
125 reg = <0x0 0x400000>;
126 };
127
128 partition@400000 {
129 label = "ubi";
130 reg = <0x400000 0x3400000>;
131 };
132 };
133
134 partition@2780000 {
135 label = "firmware_backup";
136 reg = <0x3980000 0x3800000>;
137 read-only;
138 };
139
140 partition@4d80000 {
141 label = "CFG";
142 reg = <0x7180000 0x200000>;
143 read-only;
144 };
145
146 partition@5580000 {
147 label = "RAE";
148 reg = <0x7380000 0x600000>;
149 read-only;
150 };
151
152 partition@5980000 {
153 label = "POT";
154 reg = <0x7980000 0x020000>;
155 read-only;
156 };
157
158 partition@6780000 {
159 label = "LOG";
160 reg = <0x79A0000 0x40000>;
161 read-only;
162 };
163 };
164 };
165
166 &pcie {
167 status = "okay";
168 };
169
170 &pcie1 {
171 wifi@0,0 {
172 compatible = "mediatek,mt76";
173 reg = <0x0000 0 0 0 0>;
174 mediatek,mtd-eeprom = <&factory 0x0>;
175 };
176 };
177
178 &switch0 {
179 ports {
180 port@0 {
181 status = "okay";
182 label = "lan";
183 };
184 };
185 };
186
187 &xhci {
188 status = "disabled";
189 };