dnsmasq: full: disable ipset support by default
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7621_cudy_wr2100.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 = "cudy,wr2100", "mediatek,mt7621-soc";
10 model = "Cudy WR2100";
11
12 aliases {
13 led-boot = &led_internet_blue;
14 led-failsafe = &led_internet_blue;
15 led-running = &led_internet_blue;
16 led-upgrade = &led_internet_blue;
17 label-mac-device = &gmac0;
18 };
19
20 chosen {
21 bootargs = "console=ttyS0,115200";
22 };
23
24 keys {
25 compatible = "gpio-keys";
26
27 reset {
28 label = "reset";
29 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
31 };
32
33 wps {
34 label = "wps";
35 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
37 };
38 };
39
40 leds {
41 compatible = "gpio-leds";
42
43 led_internet_blue: internet_blue {
44 label = "blue:internet";
45 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
46 };
47
48 internet_red {
49 label = "red:internet";
50 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
51 };
52
53 wan {
54 label = "green:wan";
55 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
56 };
57
58 lan1 {
59 label = "green:lan1";
60 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
61 };
62
63 lan2 {
64 label = "green:lan2";
65 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
66 };
67
68 lan3 {
69 label = "green:lan3";
70 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
71 };
72
73 lan4 {
74 label = "green:lan4";
75 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
76 };
77 };
78 };
79
80 &gmac0 {
81 nvmem-cells = <&macaddr_bdinfo_de00>;
82 nvmem-cell-names = "mac-address";
83 };
84
85 &pcie {
86 status = "okay";
87 };
88
89 &pcie0 {
90 wifi@0,0 {
91 compatible = "mediatek,mt76";
92 reg = <0x0000 0 0 0 0>;
93 mediatek,mtd-eeprom = <&factory 0x0000>;
94 ieee80211-freq-limit = <2400000 2500000>;
95 };
96 };
97
98 &pcie1 {
99 wifi@1,0 {
100 compatible = "mediatek,mt76";
101 reg = <0x0000 0 0 0 0>;
102 mediatek,mtd-eeprom = <&factory 0x8000>;
103 ieee80211-freq-limit = <5000000 6000000>;
104 };
105 };
106
107 &spi0 {
108 status = "okay";
109
110 flash@0 {
111 compatible = "jedec,spi-nor";
112 reg = <0>;
113 spi-max-frequency = <50000000>;
114
115 partitions {
116 compatible = "fixed-partitions";
117 #address-cells = <1>;
118 #size-cells = <1>;
119
120 partition@0 {
121 label = "u-boot";
122 reg = <0x0 0x30000>;
123 read-only;
124 };
125
126 partition@30000 {
127 label = "u-boot-env";
128 reg = <0x30000 0x10000>;
129 read-only;
130 };
131
132 factory: partition@40000 {
133 label = "factory";
134 reg = <0x40000 0x10000>;
135 read-only;
136 };
137
138 partition@50000 {
139 compatible = "denx,uimage";
140 label = "firmware";
141 reg = <0x50000 0xf80000>;
142 };
143
144 partition@fd0000 {
145 label = "debug";
146 reg = <0xfd0000 0x10000>;
147 read-only;
148 };
149
150 partition@fe0000 {
151 label = "backup";
152 reg = <0xfe0000 0x10000>;
153 read-only;
154 };
155
156 bdinfo: partition@ff0000 {
157 label = "bdinfo";
158 reg = <0xff0000 0x10000>;
159 read-only;
160 };
161 };
162 };
163 };
164
165 &state_default {
166 gpio {
167 groups = "i2c", "jtag", "uart2", "uart3", "wdt";
168 function = "gpio";
169 };
170 };
171
172 &switch0 {
173 ports {
174 port@0 {
175 status = "okay";
176 label = "lan1";
177 };
178
179 port@1 {
180 status = "okay";
181 label = "lan2";
182 };
183
184 port@2 {
185 status = "okay";
186 label = "lan3";
187 };
188
189 port@3 {
190 status = "okay";
191 label = "lan4";
192 };
193
194 port@4 {
195 status = "okay";
196 label = "wan";
197
198 nvmem-cells = <&macaddr_bdinfo_de00>;
199 nvmem-cell-names = "mac-address";
200 mac-address-increment = <1>;
201 };
202 };
203 };
204
205 &bdinfo {
206 compatible = "nvmem-cells";
207 #address-cells = <1>;
208 #size-cells = <1>;
209
210 macaddr_bdinfo_de00: macaddr@de00 {
211 reg = <0xde00 0x6>;
212 };
213 };