1/*
2 * Copyright (c) 2021-2022, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/*
8 * This device tree is only an example and some properties have been omitted.
9 *
10 * Refer to the Arm(R) Ethos(TM)-N driver stack for complete device tree examples.
11 * https://github.com/ARM-software/ethos-n-driver-stack
12 */
13
14/ {
15	#address-cells = <2>;
16	#size-cells = <2>;
17
18	smmu_ethosn0: iommu@6f400000 {
19		compatible = "arm,smmu-v3";
20		reg = <0 0x6f400000 0 0x80000>;
21		status = "okay";
22		/* msi-parent omitted */
23		#iommu-cells = <0x1>;
24	};
25
26	ethosn0: ethosn@6f300000 {
27		 compatible = "ethosn";
28		 reg = <0 0x6f300000 0 0x00100000>;
29		 status = "okay";
30
31		 core0 {
32			 compatible = "ethosn-core";
33			 status = "okay";
34
35			 main_allocator {
36				 compatible = "ethosn-main_allocator";
37				 status = "okay";
38
39				 firmware {
40					 compatible = "ethosn-memory";
41					 iommus = <&smmu_ethosn0 0>;
42				 };
43
44				 working_data {
45					 compatible = "ethosn-memory";
46					 iommus = <&smmu_ethosn0 1>;
47				 };
48			 };
49		 };
50
51		 asset_allocator {
52			 compatible = "ethosn-asset_allocator";
53			 status = "okay";
54
55			 command_stream {
56				 compatible = "ethosn-memory";
57				 iommus = <&smmu_ethosn0 2>;
58			 };
59
60			 weight_data {
61				 compatible = "ethosn-memory";
62				 iommus = <&smmu_ethosn0 3>;
63			 };
64
65			 buffer_data {
66				 compatible = "ethosn-memory";
67				 iommus = <&smmu_ethosn0 4>;
68			 };
69
70			 intermediate_data {
71				 compatible = "ethosn-memory";
72				 iommus = <&smmu_ethosn0 5>;
73			 };
74		 };
75	 };
76};
77