summaryrefslogtreecommitdiffstats
path: root/fdts/juno-ethosn.dtsi
blob: 4609524829f11065a09baa4ac7a594b0f7bcd6cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
 * Copyright (c) 2021-2022, Arm Limited. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

/*
 * This device tree is only an example and some properties have been omitted.
 *
 * Refer to the Arm(R) Ethos(TM)-N driver stack for complete device tree examples.
 * https://github.com/ARM-software/ethos-n-driver-stack
 */

/ {
	#address-cells = <2>;
	#size-cells = <2>;

	smmu_ethosn0: iommu@6f400000 {
		compatible = "arm,smmu-v3";
		reg = <0 0x6f400000 0 0x80000>;
		status = "okay";
		/* msi-parent omitted */
		#iommu-cells = <0x1>;
	};

	ethosn0: ethosn@6f300000 {
		 compatible = "ethosn";
		 reg = <0 0x6f300000 0 0x00100000>;
		 status = "okay";

		 core0 {
			 compatible = "ethosn-core";
			 status = "okay";

			 main_allocator {
				 compatible = "ethosn-main_allocator";
				 status = "okay";

				 firmware {
					 compatible = "ethosn-memory";
					 iommus = <&smmu_ethosn0 0>;
				 };

				 working_data {
					 compatible = "ethosn-memory";
					 iommus = <&smmu_ethosn0 1>;
				 };
			 };
		 };

		 asset_allocator {
			 compatible = "ethosn-asset_allocator";
			 status = "okay";

			 command_stream {
				 compatible = "ethosn-memory";
				 iommus = <&smmu_ethosn0 2>;
			 };

			 weight_data {
				 compatible = "ethosn-memory";
				 iommus = <&smmu_ethosn0 3>;
			 };

			 buffer_data {
				 compatible = "ethosn-memory";
				 iommus = <&smmu_ethosn0 4>;
			 };

			 intermediate_data {
				 compatible = "ethosn-memory";
				 iommus = <&smmu_ethosn0 5>;
			 };
		 };
	 };
};