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 #address-cells = <1>; 18 #size-cells = <1>; 19 20 fakedriver@E0000000 { 21 compatible = "fakedriver"; 22 reg = <0xE0000000 0x2000>; 23 status = "okay"; 24 }; 25 fakedriver@E1000000 { 26 compatible = "fakedriver"; 27 reg = <0xE1000000 0x2000>; 28 status = "okay"; 29 }; 30 fakedriver@E2000000 { 31 compatible = "fakedriver"; 32 reg = <0xE2000000 0x2000>; 33 status = "okay"; 34 }; 35 fakedriver@E3000000 { 36 compatible = "fakedriver"; 37 reg = <0xE3000000 0x2000>; 38 status = "okay"; 39 }; 40 fakedriver@E4000000 { 41 compatible = "fakedriver"; 42 reg = <0xE4000000 0x2000>; 43 status = "okay"; 44 }; 45 46 fakedriver_multireg@E5000000 { 47 compatible = "fakedriver_multireg"; 48 reg = <0xE5000000 0x1000>, 49 <0xE6000000 0x1000>; 50 reg-names = "chip", 51 "dale"; 52 status = "okay"; 53 }; 54 55 fakedeferdriver@E7000000 { 56 compatible = "fakedeferdriver"; 57 reg = <0xE7000000 0x2000>; 58 status = "okay"; 59 zephyr,deferred-init; 60 }; 61 62 fakedeferdriver@E8000000 { 63 compatible = "fakedeferdriver"; 64 reg = <0xE8000000 0x2000>; 65 status = "okay"; 66 zephyr,deferred-init; 67 }; 68 69 fakedomain_0: fakedomain_0 { 70 compatible = "fakedomain"; 71 status = "okay"; 72 power-domains = <&fakedomain_2>; 73 #power-domain-cells = <0>; 74 }; 75 76 fakedomain_1: fakedomain_1 { 77 compatible = "fakedomain"; 78 status = "okay"; 79 power-domains = <&fakedomain_0>; 80 #power-domain-cells = <0>; 81 }; 82 83 fakedomain_2: fakedomain_2 { 84 compatible = "fakedomain"; 85 status = "okay"; 86 #power-domain-cells = <0>; 87 }; 88}; 89