dnsmasq: full: disable ipset support by default
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7621_beeline_smartbox-flash.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 = "beeline,smartbox-flash", "mediatek,mt7621-soc";
11 model = "Beeline SmartBox Flash";
12
13 aliases {
14 led-boot = &led_status_red;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_green;
17 led-upgrade = &led_status_red;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led-0 {
24 label = "blue:wan";
25 color = <LED_COLOR_ID_BLUE>;
26 function = LED_FUNCTION_WAN;
27 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
28 };
29
30 led_status_green: led-1 {
31 label = "green:status";
32 color = <LED_COLOR_ID_GREEN>;
33 function = LED_FUNCTION_STATUS;
34 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
35 };
36
37 led_status_red: led-2 {
38 label = "red:status";
39 color = <LED_COLOR_ID_RED>;
40 function = LED_FUNCTION_STATUS;
41 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
42 };
43 };
44
45 keys {
46 compatible = "gpio-keys";
47
48 reset {
49 label = "reset";
50 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RESTART>;
52 };
53 };
54
55 ubi-concat {
56 compatible = "mtd-concat";
57 devices = <&ubiconcat0 &ubiconcat1>;
58
59 partitions {
60 compatible = "fixed-partitions";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 partition@0 {
65 label = "ubi";
66 reg = <0x0 0x5240000>;
67 };
68 };
69 };
70 };
71
72 &nand {
73 status = "okay";
74
75 partitions {
76 compatible = "fixed-partitions";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 partition@0 {
81 label = "u-boot";
82 reg = <0x0 0x100000>;
83 read-only;
84 };
85
86 partition@100000 {
87 label = "u-boot-env";
88 reg = <0x100000 0x100000>;
89 };
90
91 factory: partition@200000 {
92 label = "Factory";
93 reg = <0x200000 0x100000>;
94 read-only;
95
96 compatible = "nvmem-cells";
97 #address-cells = <1>;
98 #size-cells = <1>;
99
100 macaddr_factory_fff0: macaddr@fff0 {
101 reg = <0xfff0 0x6>;
102 };
103 };
104
105 partition@300000 {
106 label = "firmware";
107 reg = <0x300000 0x2000000>;
108
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
111 #size-cells = <1>;
112
113 partition@0 {
114 label = "kernel";
115 reg = <0x0 0x440000>;
116 };
117
118 ubiconcat0: partition@400000 {
119 label = "ubiconcat0";
120 reg = <0x440000 0x1bc0000>;
121 };
122 };
123
124 partition@2300000 {
125 label = "Firmware2";
126 reg = <0x2300000 0x2000000>;
127 read-only;
128 };
129
130 partition@4300000 {
131 label = "glbcfg";
132 reg = <0x4300000 0x200000>;
133 read-only;
134 };
135
136 partition@4500000 {
137 label = "board_data";
138 reg = <0x4500000 0x100000>;
139 read-only;
140 };
141
142 partition@4600000 {
143 label = "glbcfg2";
144 reg = <0x4600000 0x200000>;
145 read-only;
146 };
147
148 partition@4800000 {
149 label = "board_data2";
150 reg = <0x4800000 0x100000>;
151 read-only;
152 };
153
154 ubiconcat1: partition@4900000 {
155 label = "ubiconcat1";
156 reg = <0x4900000 0x3680000>;
157 };
158 };
159 };
160
161 &pcie {
162 status = "okay";
163 };
164
165 &pcie0 {
166 wifi@0,0 {
167 compatible = "mediatek,mt76";
168 reg = <0x0000 0 0 0 0>;
169 mediatek,mtd-eeprom = <&factory 0x0>;
170 };
171 };
172
173 &gmac0 {
174 nvmem-cells = <&macaddr_factory_fff0>;
175 nvmem-cell-names = "mac-address";
176 };
177
178 &switch0 {
179 ports {
180 port@2 {
181 status = "okay";
182 label = "lan2";
183 };
184
185 port@3 {
186 status = "okay";
187 label = "lan1";
188 };
189
190 port@4 {
191 status = "okay";
192 label = "wan";
193 };
194 };
195 };
196
197 &state_default {
198 gpio {
199 groups = "i2c", "jtag";
200 function = "gpio";
201 };
202 };