Mikael Olsson | 7da6619 | 2021-02-12 17:30:22 +0100 | [diff] [blame] | 1 | /* |
Mikael Olsson | 3288b46 | 2022-08-15 17:12:58 +0200 | [diff] [blame] | 2 | * Copyright (c) 2021-2022, Arm Limited. All rights reserved. |
Mikael Olsson | 7da6619 | 2021-02-12 17:30:22 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Laurent Carlier | 5205df2 | 2021-09-16 15:10:35 +0100 | [diff] [blame] | 7 | /* |
Mikael Olsson | 3288b46 | 2022-08-15 17:12:58 +0200 | [diff] [blame] | 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. |
Laurent Carlier | 5205df2 | 2021-09-16 15:10:35 +0100 | [diff] [blame] | 11 | * https://github.com/ARM-software/ethos-n-driver-stack |
| 12 | */ |
| 13 | |
Mikael Olsson | 7da6619 | 2021-02-12 17:30:22 +0100 | [diff] [blame] | 14 | / { |
| 15 | #address-cells = <2>; |
| 16 | #size-cells = <2>; |
| 17 | |
Mikael Olsson | 3288b46 | 2022-08-15 17:12:58 +0200 | [diff] [blame] | 18 | smmu_ethosn0: iommu@6f400000 { |
| 19 | compatible = "arm,smmu-v3"; |
| 20 | reg = <0 0x6f400000 0 0x80000>; |
Mikael Olsson | 7da6619 | 2021-02-12 17:30:22 +0100 | [diff] [blame] | 21 | status = "okay"; |
Mikael Olsson | 3288b46 | 2022-08-15 17:12:58 +0200 | [diff] [blame] | 22 | /* msi-parent omitted */ |
| 23 | #iommu-cells = <0x1>; |
Mikael Olsson | 7da6619 | 2021-02-12 17:30:22 +0100 | [diff] [blame] | 24 | }; |
Mikael Olsson | 3288b46 | 2022-08-15 17:12:58 +0200 | [diff] [blame] | 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 | }; |
Mikael Olsson | 7da6619 | 2021-02-12 17:30:22 +0100 | [diff] [blame] | 76 | }; |