Kristofer Jonsson | 116a635 | 2020-08-20 17:25:23 +0200 | [diff] [blame] | 1 | /* |
Per Åstrand | f8ae5e1 | 2020-10-20 10:26:17 +0200 | [diff] [blame] | 2 | * (C) COPYRIGHT 2020 Arm Limited. All rights reserved. |
Kristofer Jonsson | 116a635 | 2020-08-20 17:25:23 +0200 | [diff] [blame] | 3 | * |
| 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 Åstrand | f8ae5e1 | 2020-10-20 10:26:17 +0200 | [diff] [blame] | 20 | |
| 21 | /* Example for mailbox driver dts entries for mhuv2 */ |
Kristofer Jonsson | 116a635 | 2020-08-20 17:25:23 +0200 | [diff] [blame] | 22 | |
| 23 | /{ |
Per Åstrand | f8ae5e1 | 2020-10-20 10:26:17 +0200 | [diff] [blame] | 24 | 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 Jonsson | 116a635 | 2020-08-20 17:25:23 +0200 | [diff] [blame] | 33 | }; |
| 34 | |
Per Åstrand | f8ae5e1 | 2020-10-20 10:26:17 +0200 | [diff] [blame] | 35 | 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 = <ðosu_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 Jonsson | 116a635 | 2020-08-20 17:25:23 +0200 | [diff] [blame] | 57 | }; |
Per Åstrand | f8ae5e1 | 2020-10-20 10:26:17 +0200 | [diff] [blame] | 58 | |