/ {
model = "Ubiquiti UniFi 6 LR v2 (U-Boot mod)";
- compatible = "ubnt,unifi-6-lr-ubootmod-v2", "mediatek,mt7622";
+ compatible = "ubnt,unifi-6-lr-v2-ubootmod", "mediatek,mt7622";
+
+ chosen {
+ rootdisk = <&rootdisk>;
+ bootargs = "earlycon=uart8250,mmio32,0x11002000 swiotlb=512 console=ttyS0,115200n8 root=/dev/fit0 rootwait";
+ };
};
&nor_partitions {
label = "eeprom";
reg = <0x110000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_eeprom_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+
+ macaddr_eeprom_6: macaddr@6 {
+ reg = <0x6 0x6>;
+ };
+ };
};
partition@120000 {
reg = <0x120000 0xee0000>;
};
- partition@1000000 {
+ rootdisk: partition@1000000 {
compatible = "denx,fit";
label = "firmware";
reg = <0x1000000 0x3000000>;
nvmem-cells = <&macaddr_eeprom_0>;
nvmem-cell-names = "mac-address";
};
-
-&eeprom {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_eeprom_0: macaddr@0 {
- reg = <0x0 0x6>;
- };
-
- macaddr_eeprom_6: macaddr@6 {
- reg = <0x6 0x6>;
- };
-};