d81a23852d721c5fdb31246e3441c2b6da83bcb7
[openwrt/staging/jow.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 = "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 nvmem-layout {
41 compatible = "fixed-layout";
42 #address-cells = <1>;
43 #size-cells = <1>;
44
45 eeprom_factory_0: eeprom@0 {
46 reg = <0x0 0x400>;
47 };
48
49 eeprom_factory_8000: eeprom@8000 {
50 reg = <0x8000 0x4da8>;
51 };
52 };
53 };
54
55 eeprom: partition@80000 {
56 label = "eeprom";
57 reg = <0x80000 0x10000>;
58 read-only;
59
60 nvmem-layout {
61 compatible = "fixed-layout";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 macaddr_eeprom_0: macaddr@0 {
66 reg = <0x0 0x6>;
67 };
68 };
69 };
70
71 partition@90000 {
72 label = "bs";
73 reg = <0x90000 0x10000>;
74 };
75
76 partition@a0000 {
77 label = "cfg";
78 reg = <0xa0000 0x100000>;
79 read-only;
80 };
81
82 partition@1a0000 {
83 compatible = "denx,uimage";
84 label = "firmware";
85 reg = <0x1a0000 0xf30000>;
86 };
87
88 partition@10d0000 {
89 label = "kernel1";
90 reg = <0x10d0000 0xf30000>;
91 read-only;
92 };
93 };
94 };
95 };
96
97 &gmac0 {
98 nvmem-cells = <&macaddr_eeprom_0>;
99 nvmem-cell-names = "mac-address";
100 };
101
102 &wlan_2g {
103 nvmem-cells = <&eeprom_factory_0>;
104 nvmem-cell-names = "eeprom";
105 };
106
107 &wlan_5g {
108 nvmem-cells = <&eeprom_factory_8000>;
109 nvmem-cell-names = "eeprom";
110 };