zephyr/tests/kernel/device/app.overlay
Carlo Caione 26856ca878 test: device: Specify address and size cells.
The test is wrongly assuming that all the archs have #address-cells =
<1> and #size-cells = <1> at the DT root. This is not always true, and
it makes the test failing for AArch64. Fix the wrong assumption.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2021-11-29 19:41:27 -05:00

46 lines
1.0 KiB
Plaintext

/*
* Copyright (c) 2020 Nordic Semiconductor ASA
* Copyright (c) 2020 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*
* Application overlay for creating a fake device instance we
* can use to test DEVICE_MMIO APIs, which get raw data about
* memory ranges from DTS instances.
*
* Names in this file should be chosen in a way that won't conflict
* with real-world devicetree nodes, to allow these tests to run on
* (and be extended to test) real hardware.
*/
/ {
#address-cells = <1>;
#size-cells = <1>;
fakedriver@E0000000 {
compatible = "fakedriver";
reg = <0xE0000000 0x2000>;
status = "okay";
};
fakedriver@E1000000 {
compatible = "fakedriver";
reg = <0xE1000000 0x2000>;
status = "okay";
};
fakedriver@E2000000 {
compatible = "fakedriver";
reg = <0xE2000000 0x2000>;
status = "okay";
};
fakedriver@E3000000 {
compatible = "fakedriver";
reg = <0xE3000000 0x2000>;
status = "okay";
};
fakedriver@E4000000 {
compatible = "fakedriver";
reg = <0xE4000000 0x2000>;
status = "okay";
};
};