dnsmasq: full: disable ipset support by default
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7621_iptime_a3004ns-dual.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 = "iptime,a3004ns-dual", "mediatek,mt7621-soc";
10 model = "ipTIME A3004NS-dual";
11
12 aliases {
13 led-boot = &led_cpu;
14 led-failsafe = &led_cpu;
15 led-running = &led_cpu;
16 led-upgrade = &led_cpu;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_cpu: cpu {
23 label = "blue:cpu";
24 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
25 };
26
27 usb {
28 label = "blue:usb";
29 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
30 trigger-sources = <&xhci_ehci_port1>;
31 linux,default-trigger = "usbport";
32 };
33 };
34
35 keys {
36 compatible = "gpio-keys";
37
38 reset {
39 label = "reset";
40 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
42 };
43
44 wps {
45 label = "wps";
46 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_WPS_BUTTON>;
48 };
49 };
50 };
51
52 &spi0 {
53 status = "okay";
54
55 flash@0 {
56 compatible = "jedec,spi-nor";
57 reg = <0>;
58 spi-max-frequency = <50000000>;
59
60 partitions {
61 compatible = "fixed-partitions";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 uboot: partition@0 {
66 label = "u-boot";
67 reg = <0x0 0x20000>;
68 read-only;
69 };
70
71 partition@20000 {
72 label = "config";
73 reg = <0x20000 0x10000>;
74 read-only;
75 };
76
77 factory: partition@30000 {
78 label = "factory";
79 reg = <0x30000 0x10000>;
80 read-only;
81 };
82
83 partition@40000 {
84 label = "firmware";
85 reg = <0x40000 0xfc0000>;
86 compatible = "denx,uimage";
87 };
88 };
89 };
90 };
91
92 &gmac0 {
93 nvmem-cells = <&macaddr_uboot_1fc20>;
94 nvmem-cell-names = "mac-address";
95 };
96
97 &switch0 {
98 ports {
99 port@0 {
100 status = "okay";
101 label = "wan";
102 nvmem-cells = <&macaddr_uboot_1fc40>;
103 nvmem-cell-names = "mac-address";
104 };
105
106 port@1 {
107 status = "okay";
108 label = "lan1";
109 };
110
111 port@2 {
112 status = "okay";
113 label = "lan2";
114 };
115
116 port@3 {
117 status = "okay";
118 label = "lan3";
119 };
120
121 port@4 {
122 status = "okay";
123 label = "lan4";
124 };
125 };
126 };
127
128 &pcie {
129 status = "okay";
130 };
131
132 &pcie0 {
133 wifi@0,0 {
134 compatible = "mediatek,mt76";
135 reg = <0x0000 0 0 0 0>;
136 mediatek,mtd-eeprom = <&factory 0x8000>;
137 ieee80211-freq-limit = <5000000 6000000>;
138
139 led {
140 led-sources = <2>;
141 led-active-low;
142 };
143 };
144 };
145
146 &pcie1 {
147 wifi@0,0 {
148 compatible = "mediatek,mt76";
149 reg = <0x0000 0 0 0 0>;
150 mediatek,mtd-eeprom = <&factory 0x0000>;
151 ieee80211-freq-limit = <2400000 2500000>;
152
153 led {
154 led-sources = <2>;
155 led-active-low;
156 };
157 };
158 };
159
160 &state_default {
161 gpio {
162 groups = "wdt", "i2c", "uart3";
163 function = "gpio";
164 };
165 };
166
167 &uboot {
168 compatible = "nvmem-cells";
169 #address-cells = <1>;
170 #size-cells = <1>;
171
172 macaddr_uboot_1fc20: macaddr@1fc20 {
173 reg = <0x1fc20 0x6>;
174 };
175
176 macaddr_uboot_1fc40: macaddr@1fc40 {
177 reg = <0x1fc40 0x6>;
178 };
179 };