]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mvebu: dts: fix unit name leading 0s warnings
authorShiji Yang <yangshiji66@outlook.com>
Mon, 19 May 2025 13:56:58 +0000 (21:56 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 19 Oct 2025 19:55:34 +0000 (21:55 +0200)
Trim unnecessary 0s from the node name to fix the dtc warnings:

cn9131-puzzle-m901.dts:43.18-46.4: Warning (unit_address_format): /memory@00000000: unit name should not have leading 0s
cn9130-clearfog-pro.dts:33.18-36.4: Warning (unit_address_format): /memory@00000000: unit name should not have leading 0s
cn9132-puzzle-m902.dts:50.18-53.4: Warning (unit_address_format): /memory@00000000: unit name should not have leading 0s
armada-385-wd_cloud-mirror-gen2.dts:148.26-152.9: Warning (unit_address_format): /soc/internal-regs/nand-controller@d0000/nand@0/partitions/partition@00000000: unit name should not have leading 0s
armada-385-wd_cloud-mirror-gen2.dts:154.26-157.9: Warning (unit_address_format): /soc/internal-regs/nand-controller@d0000/nand@0/partitions/partition@00500000: unit name should not have leading 0s
armada-385-wd_cloud-mirror-gen2.dts:159.26-163.9: Warning (unit_address_format): /soc/internal-regs/nand-controller@d0000/nand@0/partitions/partition@00a00000: unit name should not have leading 0s
armada-385-wd_cloud-mirror-gen2.dts:165.26-168.9: Warning (unit_address_format): /soc/internal-regs/nand-controller@d0000/nand@0/partitions/partition@00f00000: unit name should not have leading 0s

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18242
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/mvebu/files/arch/arm/boot/dts/marvell/armada-385-wd_cloud-mirror-gen2.dts
target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9130-clearfog-pro.dts
target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts
target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts

index 95a33b7e7a08429747abf505c368ca3d5db75a9f..97edc4ca46452501cd3d7bfe6598b193f2ad5205 100644 (file)
                                                #address-cells = <1>;
                                                #size-cells = <1>;
 
-                                               partition@00000000 {
+                                               partition@0 {
                                                        label = "U-Boot";
                                                        reg = <0x00000000 0x00500000>;    /*   5 MB */
                                                        read-only;
                                                };
 
-                                               partition@00500000 {
+                                               partition@500000 {
                                                        label = "kernel";
                                                        reg = <0x00500000 0x00500000>;    /*   5 MB */
                                                };
 
-                                               partition@00a00000 {
+                                               partition@a00000 {
                                                        label = "uRamdisk";
                                                        reg = <0x00a00000 0x00500000>;    /*   5 MB */
                                                        read-only;
                                                };
 
-                                               partition@00f00000 {
+                                               partition@f00000 {
                                                        label = "ubi";
                                                        reg = <0x00f00000 0x0b900000>;    /* 185 MB */
                                                };
index 15e19fb932d718fc0d8b1ddf8145a0873ddc38c1..0b9007c1515bb5c2b986cf4bc87b64ef180fda48 100644 (file)
@@ -30,7 +30,7 @@
                spi1 = &cp0_spi1;
        };
 
-       memory@00000000 {
+       memory@0 {
                reg = <0x0 0x0 0x1 0x0>;
                device_type = "memory";
        };
index 90d6e855be8e368f202cca3cba2add847b4d68c2..43af31f1d8983ddad0c89eab0807895b8a5c50a1 100644 (file)
@@ -40,7 +40,7 @@
                led-upgrade = &led_info;
        };
 
-       memory@00000000 {
+       memory@0 {
                device_type = "memory";
                reg = <0x0 0x0 0x0 0x80000000>;
        };
index 0c042f12ded3a025dbb706a88829e90ef10a2f19..b4eb501162c5afc52ad9048fb80cbea625f40e28 100644 (file)
@@ -47,7 +47,7 @@
                led-upgrade = &led_info;
        };
 
-       memory@00000000 {
+       memory@0 {
                device_type = "memory";
                reg = <0x0 0x0 0x0 0x80000000>;
        };