ramips: add support for YunCore G720
[openwrt/openwrt.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-0 {
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 color = <LED_COLOR_ID_BLUE>;
43 };
44
45 &partitions {
46 partition@0_all {
47 label = "ALL";
48 reg = <0x0 0xff80000>;
49 read-only;
50 };
51
52 partition@200000 {
53 label = "sys_data";
54 reg = <0x200000 0x1400000>;
55
56 compatible = "fixed-partitions";
57 #address-cells = <1>;
58 #size-cells = <1>;
59
60 ubiconcat5: partition@0 {
61 label = "sys_data_1";
62 reg = <0x0 0x600000>;
63 };
64
65 /*
66 * Sercomm U-Boot saves the environment at 0x800000 from
67 * the start of the NAND, destroying the "sys_data"
68 * partition. To prevent this, we split "sys_data" into
69 * two parts with "u-boot-env" partition between them.
70 */
71 partition@600000 {
72 label = "u-boot-env";
73 reg = <0x600000 0x20000>;
74 };
75
76 ubiconcat6: partition@620000 {
77 label = "sys_data_2";
78 reg = <0x620000 0xde0000>;
79 };
80 };
81
82 ubiconcat0: partition@1f00000 {
83 label = "RootFS_1";
84 reg = <0x1f00000 0x1e00000>;
85 };
86
87 partition@3d00000 {
88 label = "RootFS_2";
89 reg = <0x3d00000 0x1e00000>;
90 read-only;
91 };
92
93 ubiconcat1: partition@5b00000 {
94 label = "JVM/OSGI1";
95 reg = <0x5b00000 0x3200000>;
96 };
97
98 ubiconcat2: partition@8d00000 {
99 label = "JVM/OSGI2";
100 reg = <0x8d00000 0x3200000>;
101 };
102
103 ubiconcat3: partition@bf00000 {
104 label = "OSGI data";
105 reg = <0xbf00000 0x3c00000>;
106 };
107
108 ubiconcat4: partition@fb00000 {
109 label = "Ftool";
110 reg = <0xfb00000 0x100000>;
111 };
112
113 /*
114 * 4 MiB Reserved for the Bad Blocka
115 * 0x10000000-0xfc00000=0x400000
116 */
117 };
118
119 &pcie1 {
120 wlan_2g: wifi@0,0 {
121 compatible = "mediatek,mt76";
122 reg = <0x0000 0 0 0 0>;
123 ieee80211-freq-limit = <2400000 2500000>;
124
125 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_1000 0>;
126 nvmem-cell-names = "eeprom", "mac-address";
127 };
128 };