From: Shiji Yang Date: Mon, 19 May 2025 13:56:58 +0000 (+0800) Subject: mvebu: dts: fix unit name leading 0s warnings X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=b5fb6be45ab183efc78e3832bbd1d0aa97291aa5;p=openwrt%2Fstaging%2Fnbd.git mvebu: dts: fix unit name leading 0s warnings 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 Link: https://github.com/openwrt/openwrt/pull/18242 Signed-off-by: Hauke Mehrtens --- diff --git a/target/linux/mvebu/files/arch/arm/boot/dts/marvell/armada-385-wd_cloud-mirror-gen2.dts b/target/linux/mvebu/files/arch/arm/boot/dts/marvell/armada-385-wd_cloud-mirror-gen2.dts index 95a33b7e7a..97edc4ca46 100644 --- a/target/linux/mvebu/files/arch/arm/boot/dts/marvell/armada-385-wd_cloud-mirror-gen2.dts +++ b/target/linux/mvebu/files/arch/arm/boot/dts/marvell/armada-385-wd_cloud-mirror-gen2.dts @@ -145,24 +145,24 @@ #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 */ }; diff --git a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9130-clearfog-pro.dts b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9130-clearfog-pro.dts index 15e19fb932..0b9007c151 100644 --- a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9130-clearfog-pro.dts +++ b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9130-clearfog-pro.dts @@ -30,7 +30,7 @@ spi1 = &cp0_spi1; }; - memory@00000000 { + memory@0 { reg = <0x0 0x0 0x1 0x0>; device_type = "memory"; }; diff --git a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts index 90d6e855be..43af31f1d8 100644 --- a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts +++ b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts @@ -40,7 +40,7 @@ led-upgrade = &led_info; }; - memory@00000000 { + memory@0 { device_type = "memory"; reg = <0x0 0x0 0x0 0x80000000>; }; diff --git a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts index 0c042f12de..b4eb501162 100644 --- a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts +++ b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts @@ -47,7 +47,7 @@ led-upgrade = &led_info; }; - memory@00000000 { + memory@0 { device_type = "memory"; reg = <0x0 0x0 0x0 0x80000000>; };