ramips: mt7621: nix mac-address-increment
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_beeline_smartbox-pro.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "mt7621_sercomm_s1500.dtsi"
4
5 / {
6 compatible = "beeline,smartbox-pro", "mediatek,mt7621-soc";
7 model = "Beeline SmartBox PRO";
8
9 aliases {
10 label-mac-device = &gmac0;
11 };
12
13 keys {
14 switch_bt {
15 label = "ROUT<->REP Switch_bt";
16 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
17 linux,input-type = <EV_SW>;
18 linux,code = <KEY_RFKILL>;
19 debounce-interval = <60>;
20 };
21 };
22
23 ubi-concat {
24 compatible = "mtd-concat";
25 devices = <&ubiconcat0 &ubiconcat1 &ubiconcat2 &ubiconcat3 \
26 &ubiconcat4 &ubiconcat5 &ubiconcat6>;
27
28 partitions {
29 compatible = "fixed-partitions";
30 #address-cells = <1>;
31 #size-cells = <1>;
32
33 partition@0 {
34 label = "ubi";
35 reg = <0x0 0xd2e0000>;
36 };
37 };
38 };
39 };
40
41 &led_wps {
42 label = "blue:wps";
43 color = <LED_COLOR_ID_BLUE>;
44 };
45
46 &partitions {
47 partition@0_all {
48 label = "ALL";
49 reg = <0x0 0xff80000>;
50 read-only;
51 };
52
53 partition@200000 {
54 label = "sys_data";
55 reg = <0x200000 0x1400000>;
56
57 compatible = "fixed-partitions";
58 #address-cells = <1>;
59 #size-cells = <1>;
60
61 ubiconcat5: partition@0 {
62 label = "sys_data_1";
63 reg = <0x0 0x600000>;
64 };
65
66 /*
67 * Sercomm U-Boot saves the environment at 0x800000 from
68 * the start of the NAND, destroying the "sys_data"
69 * partition. To prevent this, we split "sys_data" into
70 * two parts with "u-boot-env" partition between them.
71 */
72 partition@600000 {
73 label = "u-boot-env";
74 reg = <0x600000 0x20000>;
75 };
76
77 ubiconcat6: partition@620000 {
78 label = "sys_data_2";
79 reg = <0x620000 0xde0000>;
80 };
81 };
82
83 ubiconcat0: partition@1f00000 {
84 label = "RootFS_1";
85 reg = <0x1f00000 0x1e00000>;
86 };
87
88 partition@3d00000 {
89 label = "RootFS_2";
90 reg = <0x3d00000 0x1e00000>;
91 read-only;
92 };
93
94 ubiconcat1: partition@5b00000 {
95 label = "JVM/OSGI1";
96 reg = <0x5b00000 0x3200000>;
97 };
98
99 ubiconcat2: partition@8d00000 {
100 label = "JVM/OSGI2";
101 reg = <0x8d00000 0x3200000>;
102 };
103
104 ubiconcat3: partition@bf00000 {
105 label = "OSGI data";
106 reg = <0xbf00000 0x3c00000>;
107 };
108
109 ubiconcat4: partition@fb00000 {
110 label = "Ftool";
111 reg = <0xfb00000 0x100000>;
112 };
113
114 /*
115 * 4 MiB Reserved for the Bad Blocka
116 * 0x10000000-0xfc00000=0x400000
117 */
118 };
119
120 &pcie1 {
121 wlan_2g: wifi@0,0 {
122 compatible = "mediatek,mt76";
123 reg = <0x0000 0 0 0 0>;
124 ieee80211-freq-limit = <2400000 2500000>;
125
126 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_1000 0>;
127 nvmem-cell-names = "eeprom", "mac-address";
128 };
129 };