blob: 7774abf8523a05ed530e4a91b1a79c5fe6b1e3bb [file] [log] [blame]
Kristofer Jonsson116a6352020-08-20 17:25:23 +02001/*
Per Åstrandf8ae5e12020-10-20 10:26:17 +02002 * (C) COPYRIGHT 2020 Arm Limited. All rights reserved.
Kristofer Jonsson116a6352020-08-20 17:25:23 +02003 *
4 * This program is free software and is provided to you under the terms of the
5 * GNU General Public License version 2 as published by the Free Software
6 * Foundation, and any use by you of this program is subject to the terms
7 * of such GNU licence.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, you can access it online at
16 * http://www.gnu.org/licenses/gpl-2.0.html.
17 *
18 * SPDX-License-Identifier: GPL-2.0-only
19 */
Per Åstrandf8ae5e12020-10-20 10:26:17 +020020
21 /* Example for mailbox driver dts entries for mhuv2 */
Kristofer Jonsson116a6352020-08-20 17:25:23 +020022
23/{
Per Åstrandf8ae5e12020-10-20 10:26:17 +020024 npu_mhuv2_0: mhuv2@50040000 {
25 compatible = "arm,primecell";
26 reg = <0x0 0x50040000 0x0 0x1000>,
27 <0x0 0x50050000 0x0 0x1000>;
28 clocks = <&clk_apb>;
29 clock-names = "apb_pclk";
30 #mbox-cells = <2>;
31 interrupts = <0 195 4>;
32 interrupt-names = "mhu_rx";
Kristofer Jonsson116a6352020-08-20 17:25:23 +020033 };
34
Per Åstrandf8ae5e12020-10-20 10:26:17 +020035 ethosu@0x50000000 {
36 #address-cells = <2>;
37 #size-cells = <2>;
38 #interrupt-cells = <3>;
39 compatible = "arm,ethosu";
40 reg = <0 0x84000000 0 0x00010000>,
41 <0 0x84010000 0 0x00010000>,
42 <0 0x84020000 0 0x00010000>;
43 reg-names = "in_queue", "out_queue", "print_queue";
44 memory-region = <&ethosu_reserved>;
45 ranges = <>;
46 mboxes = <&npu_mhuv2_0 0>, <&npu_mhuv2_0 0>;
47 mbox-names = "tx", "rx";
48 dma-ranges = <0 0x60000000 0 0x80000000 0 0x20000000>;
49 };
50
51 mailbox_mhu_test@0x84000000 {
52 compatible = "mailbox-test";
53 reg = <0x0 0x84000000 0x0 0x10000>, <0x0 0x84010000 0x0 0x10000>;
54 mboxes = <&npu_mhuv2_0 0>, <&npu_mhuv2_0 0>;
55 mbox-names = "tx", "rx";
56 };
Kristofer Jonsson116a6352020-08-20 17:25:23 +020057};
Per Åstrandf8ae5e12020-10-20 10:26:17 +020058