422d17673b15148ead302bb7cf281113bb675f82
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_ubnt_unifi-6-lite.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621_ubnt_unifi.dtsi"
4
5 / {
6 compatible = "ubnt,unifi-6-lite", "mediatek,mt7621-soc";
7 model = "Ubiquiti UniFi 6 Lite";
8
9 chosen {
10 bootargs-override = "console=ttyS0,115200";
11 };
12 };
13
14 &spi0 {
15 status = "okay";
16
17 flash@0 {
18 compatible = "mx25l25635f", "jedec,spi-nor";
19 reg = <0>;
20 spi-max-frequency = <50000000>;
21
22 partitions {
23 compatible = "fixed-partitions";
24 #address-cells = <1>;
25 #size-cells = <1>;
26
27 partition@0 {
28 label = "u-boot";
29 reg = <0x0 0x60000>;
30 read-only;
31 };
32
33 partition@60000 {
34 label = "u-boot-env";
35 reg = <0x60000 0x10000>;
36 read-only;
37 };
38
39 factory: partition@70000 {
40 label = "factory";
41 reg = <0x70000 0x40000>;
42 read-only;
43 };
44
45 eeprom: partition@b0000 {
46 label = "eeprom";
47 reg = <0xb0000 0x10000>;
48 read-only;
49 };
50
51 partition@c0000 {
52 label = "bs";
53 reg = <0xc0000 0x10000>;
54 };
55
56 partition@d0000 {
57 label = "cfg";
58 reg = <0xd0000 0x100000>;
59 read-only;
60 };
61
62 partition@1d0000 {
63 compatible = "denx,fit";
64 label = "firmware";
65 reg = <0x1d0000 0xf10000>;
66 };
67
68 partition@10e0000 {
69 label = "kernel1";
70 reg = <0x10e0000 0xf10000>;
71 };
72 };
73 };
74 };
75
76 &wlan_2g {
77 mtd-mac-address = <&eeprom 0x0>;
78 };
79
80 &wlan_5g {
81 mediatek,mtd-eeprom = <&factory 0x20000>;
82 mtd-mac-address = <&eeprom 0x6>;
83 };