dnsmasq: full: disable ipset support by default
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7621_iodata_wn-dx1200gr.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 = "iodata,wn-dx1200gr", "mediatek,mt7621-soc";
10 model = "I-O DATA WN-DX1200GR";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = &wan;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 wps {
24 label = "blue:wps";
25 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
26 };
27
28 led_power: power {
29 label = "green:power";
30 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
31 };
32 };
33
34 keys {
35 compatible = "gpio-keys";
36
37 reset {
38 label = "reset";
39 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
41 };
42
43 repeater {
44 label = "repeater";
45 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
46 linux,code = <BTN_0>;
47 linux,input-type = <EV_SW>;
48 };
49
50 wps {
51 label = "wps";
52 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
54 };
55 };
56 };
57
58 &nand {
59 status = "okay";
60
61 partitions {
62 compatible = "fixed-partitions";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 partition@0 {
67 label = "u-boot";
68 reg = <0x0 0x100000>;
69 read-only;
70 };
71
72 partition@100000 {
73 label = "u-boot-env";
74 reg = <0x100000 0x100000>;
75 read-only;
76 };
77
78 factory: partition@200000 {
79 label = "factory";
80 reg = <0x200000 0x200000>;
81 };
82
83 partition@400000 {
84 label = "kernel";
85 reg = <0x400000 0x400000>;
86 };
87
88 partition@800000 {
89 label = "ubi";
90 reg = <0x800000 0x2e00000>;
91 };
92
93 partition@3600000 {
94 label = "Config";
95 reg = <0x3600000 0x100000>;
96 read-only;
97 };
98
99 partition@3700000 {
100 label = "firmware_2";
101 reg = <0x3700000 0x3200000>;
102 };
103
104 partition@6900000 {
105 label = "Config_2";
106 reg = <0x6900000 0x100000>;
107 read-only;
108 };
109
110 partition@6a00000 {
111 label = "persist";
112 reg = <0x6a00000 0x100000>;
113 };
114
115 partition@6b00000 {
116 label = "idmkey";
117 reg = <0x6b00000 0x100000>;
118 read-only;
119 };
120
121 partition@6c00000 {
122 label = "Backup";
123 reg = <0x6c00000 0x1380000>;
124 read-only;
125 };
126 };
127 };
128
129 &gmac0 {
130 nvmem-cells = <&macaddr_factory_1e000>;
131 nvmem-cell-names = "mac-address";
132 };
133
134 &switch0 {
135 ports {
136 wan: port@0 {
137 status = "okay";
138 label = "wan";
139 nvmem-cells = <&macaddr_factory_1e006>;
140 nvmem-cell-names = "mac-address";
141 };
142
143 port@1 {
144 status = "okay";
145 label = "lan4";
146 };
147
148 port@2 {
149 status = "okay";
150 label = "lan3";
151 };
152
153 port@3 {
154 status = "okay";
155 label = "lan2";
156 };
157
158 port@4 {
159 status = "okay";
160 label = "lan1";
161 };
162 };
163 };
164
165 &pcie {
166 status = "okay";
167 };
168
169 &pcie0 {
170 wifi@0,0 {
171 compatible = "mediatek,mt76";
172 reg = <0x0000 0 0 0 0>;
173
174 mediatek,mtd-eeprom = <&factory 0x0>;
175 ieee80211-freq-limit = <2400000 2500000>;
176 };
177 };
178
179 &pcie1 {
180 wifi@0,0 {
181 compatible = "mediatek,mt76";
182 reg = <0x0000 0 0 0 0>;
183
184 mediatek,mtd-eeprom = <&factory 0x8000>;
185 ieee80211-freq-limit = <5000000 6000000>;
186 };
187 };
188
189 &state_default {
190 gpio {
191 groups = "uart2", "uart3", "wdt";
192 function = "gpio";
193 };
194 };
195
196 &xhci {
197 status = "disabled";
198 };
199
200 &factory {
201 compatible = "nvmem-cells";
202 #address-cells = <1>;
203 #size-cells = <1>;
204
205 macaddr_factory_1e000: macaddr@1e000 {
206 reg = <0x1e000 0x6>;
207 };
208
209 macaddr_factory_1e006: macaddr@1e006 {
210 reg = <0x1e006 0x6>;
211 };
212 };