When I build TF-A like this:
#!/bin/bash KERNEL_ADDR=0x83000000 DTB_ADDR=0x82000000 HW_CONFIG_DTS=fdts/fvp-base-gicv3-psci-1t.dts CROSS_COMPILE=aarch64-linux-gnu- \ make \ PLAT=fvp \ ARCH=aarch64 \ DEBUG=1 \ RESET_TO_BL31=1 \ ARM_LINUX_KERNEL_AS_BL33=1 \ HW_ASSISTED_COHERENCY=1 \ CTX_INCLUDE_AARCH32_REGS=0 \ USE_COHERENT_MEM=0 \ PRELOADED_BL33_BASE=$KERNEL_ADDR \ ARM_PRELOADED_DTB_BASE=$DTB_ADDR \ FVP_USE_GIC_DRIVER=FVP_GICV3 \ FVP_HW_CONFIG_DTS=$HW_CONFIG_DTS \ FVP_CLUSTER_COUNT=1 \ FVP_INTERCONNECT_DRIVER=FVP_CCI \ all fip
I get device tree warnings:
build/fvp/debug/fdts/fvp-base-gicv3-psci-1t.pre.dts:128.20-133.5: Warning (simple_bus_reg): /smb@0,0/motherboard/flash@0,00000000: simple-bus unit address format error, expected "0" build/fvp/debug/fdts/fvp-base-gicv3-psci-1t.pre.dts:134.19-137.5: Warning (simple_bus_reg): /smb@0,0/motherboard/vram@2,00000000: simple-bus unit address format error, expected "200000000" build/fvp/debug/fdts/fvp-base-gicv3-psci-1t.pre.dts:138.23-142.5: Warning (simple_bus_reg): /smb@0,0/motherboard/ethernet@2,02000000: simple-bus unit address format error, expected "202000000" build/fvp/debug/fdts/fvp-base-gicv3-psci-1t.pre.dts:143.26-148.5: Warning (simple_bus_reg): /smb@0,0/motherboard/clk24mhz: missing or empty reg/ranges property build/fvp/debug/fdts/fvp-base-gicv3-psci-1t.pre.dts:149.30-154.5: Warning (simple_bus_reg): /smb@0,0/motherboard/refclk1mhz: missing or empty reg/ranges property build/fvp/debug/fdts/fvp-base-gicv3-psci-1t.pre.dts:155.32-160.5: Warning (simple_bus_reg): /smb@0,0/motherboard/refclk32khz: missing or empty reg/ranges property build/fvp/debug/fdts/fvp-base-gicv3-psci-1t.pre.dts:161.21-283.5: Warning (simple_bus_reg): /smb@0,0/motherboard/iofpga@3,00000000: simple-bus unit address format error, expected "300000000" build/fvp/debug/fdts/fvp-base-gicv3-psci-1t.pre.dts:284.33-290.5: Warning (simple_bus_reg): /smb@0,0/motherboard/fixedregulator: missing or empty reg/ranges property build/fvp/debug/fdts/fvp-base-gicv3-psci-1t.pre.dts:294.21-300.6: Warning (simple_bus_reg): /smb@0,0/motherboard/mcc/osc: missing or empty reg/ranges property build/fvp/debug/fdts/fvp-base-gicv3-psci-1t.pre.dts:301.12-304.6: Warning (simple_bus_reg): /smb@0,0/motherboard/mcc/muxfpga: missing or empty reg/ranges property build/fvp/debug/fdts/fvp-base-gicv3-psci-1t.pre.dts:305.12-308.6: Warning (simple_bus_reg): /smb@0,0/motherboard/mcc/dvimode: missing or empty reg/ranges property
Is this to be expected? It looks like it's the syntax in fdts/rtsm_ve-motherboard.dtsi that dtc is complaining about:
flash@0,00000000 vram@2,00000000 ethernet@2,02000000
Looking at a similar device tree file in the Linux repository, arch/arm64/boot/dts/arm/rtsm_ve-motherboard.dtsi, the initial number which dtc is complaining about in the TF-A case is missing:
flash@0 ethernet@202000000
I'm using DTC version 1.6.1 and working on TF-A master branch.