blob: 4609524829f11065a09baa4ac7a594b0f7bcd6cd [file] [log] [blame]
Mikael Olsson7da66192021-02-12 17:30:22 +01001/*
Mikael Olsson3288b462022-08-15 17:12:58 +02002 * Copyright (c) 2021-2022, Arm Limited. All rights reserved.
Mikael Olsson7da66192021-02-12 17:30:22 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Laurent Carlier5205df22021-09-16 15:10:35 +01007/*
Mikael Olsson3288b462022-08-15 17:12:58 +02008 * 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.
Laurent Carlier5205df22021-09-16 15:10:35 +010011 * https://github.com/ARM-software/ethos-n-driver-stack
12 */
13
Mikael Olsson7da66192021-02-12 17:30:22 +010014/ {
15 #address-cells = <2>;
16 #size-cells = <2>;
17
Mikael Olsson3288b462022-08-15 17:12:58 +020018 smmu_ethosn0: iommu@6f400000 {
19 compatible = "arm,smmu-v3";
20 reg = <0 0x6f400000 0 0x80000>;
Mikael Olsson7da66192021-02-12 17:30:22 +010021 status = "okay";
Mikael Olsson3288b462022-08-15 17:12:58 +020022 /* msi-parent omitted */
23 #iommu-cells = <0x1>;
Mikael Olsson7da66192021-02-12 17:30:22 +010024 };
Mikael Olsson3288b462022-08-15 17:12:58 +020025
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 };
Mikael Olsson7da66192021-02-12 17:30:22 +010076};