ramips: mt7621: convert to nvmem-layout
[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
41 eeprom: partition@80000 {
42 label = "eeprom";
43 reg = <0x80000 0x10000>;
44 read-only;
45
46 nvmem-layout {
47 compatible = "fixed-layout";
48 #address-cells = <1>;
49 #size-cells = <1>;
50
51 macaddr_eeprom_0: macaddr@0 {
52 reg = <0x0 0x6>;
53 };
54 };
55 };
56
57 partition@90000 {
58 label = "bs";
59 reg = <0x90000 0x10000>;
60 };
61
62 partition@a0000 {
63 label = "cfg";
64 reg = <0xa0000 0x100000>;
65 read-only;
66 };
67
68 partition@1a0000 {
69 compatible = "denx,uimage";
70 label = "firmware";
71 reg = <0x1a0000 0xf30000>;
72 };
73
74 partition@10d0000 {
75 label = "kernel1";
76 reg = <0x10d0000 0xf30000>;
77 read-only;
78 };
79 };
80 };
81 };
82
83 &gmac0 {
84 nvmem-cells = <&macaddr_eeprom_0>;
85 nvmem-cell-names = "mac-address";
86 };
87
88 &wlan_2g {
89 mediatek,mtd-eeprom = <&factory 0x0>;
90 };
91
92 &wlan_5g {
93 mediatek,mtd-eeprom = <&factory 0x8000>;
94 };