1/*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 * Copyright (c) 2020 Intel Corporation
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * Application overlay for creating a fake device instance we
8 * can use to test DEVICE_MMIO APIs, which get raw data about
9 * memory ranges from DTS instances.
10 *
11 * Names in this file should be chosen in a way that won't conflict
12 * with real-world devicetree nodes, to allow these tests to run on
13 * (and be extended to test) real hardware.
14 */
15
16/ {
17	fakedriver@E0000000 {
18		compatible = "fakedriver";
19		reg = <0x0 0xE0000000 0x0 0x2000>;
20		status = "okay";
21	};
22	fakedriver@E1000000 {
23		compatible = "fakedriver";
24		reg = <0x0 0xE1000000 0x0 0x2000>;
25		status = "okay";
26	};
27	fakedriver@E2000000 {
28		compatible = "fakedriver";
29		reg = <0x0 0xE2000000 0x0 0x2000>;
30		status = "okay";
31	};
32	fakedriver@E3000000 {
33		compatible = "fakedriver";
34		reg = <0x0 0xE3000000 0x0 0x2000>;
35		status = "okay";
36	};
37	fakedriver@E4000000 {
38		compatible = "fakedriver";
39		reg = <0x0 0xE4000000 0x0 0x2000>;
40		status = "okay";
41	};
42
43	fakedriver_multireg@E5000000 {
44		compatible = "fakedriver_multireg";
45		reg = <0x0 0xE5000000 0x0 0x1000>,
46		      <0x0 0xE6000000 0x0 0x1000>;
47		reg-names = "chip",
48			    "dale";
49		status = "okay";
50	};
51
52	fakedeferdriver@E7000000 {
53		compatible = "fakedeferdriver";
54		reg = <0x0 0xE7000000 0x0 0x2000>;
55		status = "okay";
56		zephyr,deferred-init;
57	};
58
59	fakedeferdriver@E8000000 {
60		compatible = "fakedeferdriver";
61		reg = <0x0 0xE8000000 0x0 0x2000>;
62		status = "okay";
63		zephyr,deferred-init;
64	};
65
66	fakedomain_0: fakedomain_0 {
67		compatible = "fakedomain";
68		status = "okay";
69		power-domain = <&fakedomain_2>;
70	};
71
72	fakedomain_1: fakedomain_1 {
73		compatible = "fakedomain";
74		status = "okay";
75		power-domain = <&fakedomain_0>;
76	};
77
78	fakedomain_2: fakedomain_2 {
79		compatible = "fakedomain";
80		status = "okay";
81	};
82};
83