sunxi: arm64: correct usage of DT node address in FIT generation

The DT spec demands a unit-address in a node name to match the "reg"
property in that node. Newer dtc versions will throw warnings if this is
not the case.
Adjust the FIT build script for 64-bit Allwinner boards to remove the
bogus addresses from the node names and avoid the warnings.
This avoids a warning with recent versions of the dtc tool.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
This commit is contained in:
Andre Przywara 2017-12-04 02:05:11 +00:00 committed by Simon Glass
parent b2267e8a22
commit 8837af154c

View file

@ -21,7 +21,7 @@ cat << __HEADER_EOF
#address-cells = <1>; #address-cells = <1>;
images { images {
uboot@1 { uboot {
description = "U-Boot (64-bit)"; description = "U-Boot (64-bit)";
data = /incbin/("u-boot-nodtb.bin"); data = /incbin/("u-boot-nodtb.bin");
type = "standalone"; type = "standalone";
@ -29,7 +29,7 @@ cat << __HEADER_EOF
compression = "none"; compression = "none";
load = <0x4a000000>; load = <0x4a000000>;
}; };
atf@1 { atf {
description = "ARM Trusted Firmware"; description = "ARM Trusted Firmware";
data = /incbin/("$BL31"); data = /incbin/("$BL31");
type = "firmware"; type = "firmware";
@ -44,7 +44,7 @@ cnt=1
for dtname in $* for dtname in $*
do do
cat << __FDT_IMAGE_EOF cat << __FDT_IMAGE_EOF
fdt@$cnt { fdt_$cnt {
description = "$(basename $dtname .dtb)"; description = "$(basename $dtname .dtb)";
data = /incbin/("$dtname"); data = /incbin/("$dtname");
type = "flat_dt"; type = "flat_dt";
@ -57,7 +57,7 @@ done
cat << __CONF_HEADER_EOF cat << __CONF_HEADER_EOF
}; };
configurations { configurations {
default = "config@1"; default = "config_1";
__CONF_HEADER_EOF __CONF_HEADER_EOF
@ -65,11 +65,11 @@ cnt=1
for dtname in $* for dtname in $*
do do
cat << __CONF_SECTION_EOF cat << __CONF_SECTION_EOF
config@$cnt { config_$cnt {
description = "$(basename $dtname .dtb)"; description = "$(basename $dtname .dtb)";
firmware = "uboot@1"; firmware = "uboot";
loadables = "atf@1"; loadables = "atf";
fdt = "fdt@$cnt"; fdt = "fdt_$cnt";
}; };
__CONF_SECTION_EOF __CONF_SECTION_EOF
cnt=$((cnt+1)) cnt=$((cnt+1))