summaryrefslogtreecommitdiff
path: root/doc/develop/devicetree
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-04-20 07:52:47 -0600
committerTom Rini <[email protected]>2025-04-20 07:52:47 -0600
commit13248ae93bd07ce1574b6d6e4d279c3b96089515 (patch)
tree332cfd3526692de0441db0729600edaceaf26c32 /doc/develop/devicetree
parent71f497a6d3908574a1b1c3813c2a1385910f76bd (diff)
parented16466966447b95d402376035217633ee5098ad (diff)
Merge tag 'efi-2025-07-rc1-2' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request efi-2025-07-rc1-2 Documentation: * dt_qemu: correct dumpdtb description * release_cycle: Use variable substitution for next version UEFI: * cmd: simplify eficonfig_init() * efi_selftest: check executing in EL2 * efi_selftest: use do_bootefi_exec() Others: * riscv: dts: jh7110: add bootph-pre-ram for &pllclk * mips: malta: set MIPS_RELOCATION_TABLE_SIZE=0xc000
Diffstat (limited to 'doc/develop/devicetree')
-rw-r--r--doc/develop/devicetree/dt_qemu.rst25
1 files changed, 16 insertions, 9 deletions
diff --git a/doc/develop/devicetree/dt_qemu.rst b/doc/develop/devicetree/dt_qemu.rst
index 8ba2b225590..b452e2a997a 100644
--- a/doc/develop/devicetree/dt_qemu.rst
+++ b/doc/develop/devicetree/dt_qemu.rst
@@ -16,15 +16,22 @@ Obtaining the QEMU devicetree
Where QEMU generates its own devicetree to pass to U-Boot you can use
`-dtb u-boot.dtb` to force QEMU to use U-Boot's in-tree version.
-To obtain the devicetree that qemu generates, add `-machine dumpdtb=qemu.dtb`,
-e.g.::
-
- qemu-system-arm -machine virt -machine dumpdtb=qemu.dtb
-
- qemu-system-aarch64 -machine virt -machine dumpdtb=qemu.dtb
-
- qemu-system-riscv64 -machine virt -machine dumpdtb=qemu.dtb
-
+To obtain the devicetree that QEMU generates, add `dumpdtb=qemu.dtb` to the
+`-machine` argument, e.g.
+
+.. code-block:: bash
+
+ qemu-system-aarch64 \
+ -machine virt,gic-version=3,dumpdtb=qemu.dtb \
+ -cpu cortex-a57 \
+ -smp 4 \
+ -memory 8G \
+ -chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock \
+ -tpmdev emulator,id=tpm0,chardev=chrtpm \
+ -device tpm-tis-device,tpmdev=tpm0
+
+Except for the dumpdtb=qemu.dtb sub-parameter use the same qemu-system-<arch>
+invocation that you would use to start U-Boot to to get a complete device-tree.
Merging in U-Boot nodes/properties
----------------------------------