diff options
author | Nicolas Saenz Julienne <nsaenzjulienne@suse.de> | 2021-01-12 13:55:23 +0100 |
---|---|---|
committer | Matthias Brugger <mbrugger@suse.com> | 2021-02-18 11:56:25 +0100 |
commit | 283628c412a2b98bdb22093a732aef4d5668e106 (patch) | |
tree | 832f3404cb6f49f52f45cd8f4ee35101c8cd1ba3 /arch/sandbox | |
parent | 51bdb50904b1ffffc1caa8dd92f5abea78e33a0b (diff) | |
download | u-boot-283628c412a2b98bdb22093a732aef4d5668e106.zip u-boot-283628c412a2b98bdb22093a732aef4d5668e106.tar.gz u-boot-283628c412a2b98bdb22093a732aef4d5668e106.tar.bz2 |
dm: test: Add test case for dev_get_dma_ranges()
Introduce some new nodes in sandbox's test device-tree and dm tests in
order to validate dev_get_dma_range().
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/dts/test.dts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index e95f463..c135881 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -350,6 +350,23 @@ test5-gpios = <&gpio_a 19>; }; + mmio-bus@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "denx,u-boot-test-bus"; + dma-ranges = <0x10000000 0x00000000 0x00040000>; + + subnode@0 { + compatible = "denx,u-boot-fdt-test"; + }; + }; + + mmio-bus@1 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "denx,u-boot-test-bus"; + }; + acpi_test1: acpi-test { compatible = "denx,u-boot-acpi-test"; acpi-ssdt-test-data = "ab"; |