mediatek: wait for fitblk rootfs
[openwrt/openwrt.git] / target / linux / mediatek / dts / mt7622-ubnt-unifi-6-lr-v1-ubootmod.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7622-ubnt-unifi-6-lr-v1.dtsi"
4
5 / {
6 model = "Ubiquiti UniFi 6 LR v1 (U-Boot mod)";
7 compatible = "ubnt,unifi-6-lr-v1-ubootmod", "mediatek,mt7622";
8
9 chosen {
10 rootdisk = <&rootdisk>;
11 bootargs = "earlycon=uart8250,mmio32,0x11002000 swiotlb=512 console=ttyS0,115200n8 root=/dev/fit0 rootwait";
12 };
13 };
14
15 &nor_partitions {
16 partition@0 {
17 label = "bl2";
18 reg = <0x0 0x20000>;
19 };
20
21 partition@20000 {
22 label = "fip";
23 reg = <0x20000 0xa0000>;
24 };
25
26 partition@c0000 {
27 label = "u-boot-env";
28 reg = <0xc0000 0x10000>;
29 };
30
31 factory: partition@d0000 {
32 label = "factory";
33 reg = <0xd0000 0x40000>;
34 read-only;
35 };
36
37 eeprom: partition@110000 {
38 label = "eeprom";
39 reg = <0x110000 0x10000>;
40 read-only;
41
42 nvmem-layout {
43 compatible = "fixed-layout";
44 #address-cells = <1>;
45 #size-cells = <1>;
46
47 macaddr_eeprom_0: macaddr@0 {
48 reg = <0x0 0x6>;
49 };
50
51 macaddr_eeprom_6: macaddr@6 {
52 reg = <0x6 0x6>;
53 };
54 };
55 };
56
57 partition@120000 {
58 label = "recovery";
59 reg = <0x120000 0xee0000>;
60 };
61
62 rootdisk: partition@1000000 {
63 compatible = "denx,fit";
64 label = "firmware";
65 reg = <0x1000000 0x3000000>;
66 };
67 };
68
69 &wmac {
70 mediatek,mtd-eeprom = <&factory 0x0>;
71 nvmem-cells = <&macaddr_eeprom_0>;
72 nvmem-cell-names = "mac-address";
73 status = "okay";
74 };
75
76 &slot0 {
77 wifi@0,0 {
78 reg = <0x0 0 0 0 0>;
79 mediatek,mtd-eeprom = <&factory 0x20000>;
80 nvmem-cells = <&macaddr_eeprom_6>;
81 nvmem-cell-names = "mac-address";
82 ieee80211-freq-limit = <5000000 6000000>;
83 };
84 };
85
86 &gmac0 {
87 nvmem-cells = <&macaddr_eeprom_0>;
88 nvmem-cell-names = "mac-address";
89 };