ramips: add support for Ubiquiti UniFi 6 Lite
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_ubnt_unifi-nanohd.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-nanohd", "mediatek,mt7621-soc";
7 model = "Ubiquiti UniFi nanoHD";
8 };
9
10 &spi0 {
11 status = "okay";
12
13 flash@0 {
14 compatible = "mx25l25635f", "jedec,spi-nor";
15 reg = <0>;
16 spi-max-frequency = <50000000>;
17
18 partitions {
19 compatible = "fixed-partitions";
20 #address-cells = <1>;
21 #size-cells = <1>;
22
23 partition@0 {
24 label = "u-boot";
25 reg = <0x0 0x60000>;
26 read-only;
27 };
28
29 partition@60000 {
30 label = "u-boot-env";
31 reg = <0x60000 0x10000>;
32 read-only;
33 };
34
35 factory: partition@70000 {
36 label = "factory";
37 reg = <0x70000 0x10000>;
38 read-only;
39 };
40
41 eeprom: partition@80000 {
42 label = "eeprom";
43 reg = <0x80000 0x10000>;
44 read-only;
45 };
46
47 partition@90000 {
48 label = "bs";
49 reg = <0x90000 0x10000>;
50 };
51
52 partition@a0000 {
53 label = "cfg";
54 reg = <0xa0000 0x100000>;
55 read-only;
56 };
57
58 partition@1a0000 {
59 compatible = "denx,uimage";
60 label = "firmware";
61 reg = <0x1a0000 0xf30000>;
62 };
63
64 partition@10d0000 {
65 label = "kernel1";
66 reg = <0x10d0000 0xf30000>;
67 read-only;
68 };
69 };
70 };
71 };
72
73 &wlan_5g {
74 mediatek,mtd-eeprom = <&factory 0x8000>;
75 };