mediatek: mt7622: convert unifi6lr-v{1,2,3}-ubootmod to fitblk
[openwrt/openwrt.git] / target / linux / mediatek / dts / mt7622-ubnt-unifi-6-lr-v2-ubootmod.dts
index 6a7b6868ce37872327cb584e6f991a8b96f6ad88..96effb8aab411784794811cfc7eb8b997513f71d 100644 (file)
@@ -5,6 +5,11 @@
 / {
        model = "Ubiquiti UniFi 6 LR v2 (U-Boot mod)";
        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";
+       };
 };
 
 &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 {
@@ -40,7 +59,7 @@
                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>;
-       };
-};