|
| 1 | +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | +%YAML 1.2 |
| 3 | +--- |
| 4 | +$id: http://devicetree.org/schemas/mailbox/arm,mhu.yaml# |
| 5 | +$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | + |
| 7 | +title: ARM MHU Mailbox Controller |
| 8 | + |
| 9 | +maintainers: |
| 10 | + |
| 11 | + |
| 12 | +description: | |
| 13 | + The ARM's Message-Handling-Unit (MHU) is a mailbox controller that has 3 |
| 14 | + independent channels/links to communicate with remote processor(s). MHU links |
| 15 | + are hardwired on a platform. A link raises interrupt for any received data. |
| 16 | + However, there is no specified way of knowing if the sent data has been read |
| 17 | + by the remote. This driver assumes the sender polls STAT register and the |
| 18 | + remote clears it after having read the data. The last channel is specified to |
| 19 | + be a 'Secure' resource, hence can't be used by Linux running NS. |
| 20 | +
|
| 21 | +# We need a select here so we don't match all nodes with 'arm,primecell' |
| 22 | +select: |
| 23 | + properties: |
| 24 | + compatible: |
| 25 | + contains: |
| 26 | + const: arm,mhu |
| 27 | + required: |
| 28 | + - compatible |
| 29 | + |
| 30 | +properties: |
| 31 | + compatible: |
| 32 | + items: |
| 33 | + - const: arm,mhu |
| 34 | + - const: arm,primecell |
| 35 | + |
| 36 | + reg: |
| 37 | + maxItems: 1 |
| 38 | + |
| 39 | + interrupts: |
| 40 | + items: |
| 41 | + - description: low-priority non-secure |
| 42 | + - description: high-priority non-secure |
| 43 | + - description: Secure |
| 44 | + maxItems: 3 |
| 45 | + |
| 46 | + clocks: |
| 47 | + maxItems: 1 |
| 48 | + |
| 49 | + clock-names: |
| 50 | + items: |
| 51 | + - const: apb_pclk |
| 52 | + |
| 53 | + '#mbox-cells': |
| 54 | + description: Index of the channel. |
| 55 | + const: 1 |
| 56 | + |
| 57 | +required: |
| 58 | + - compatible |
| 59 | + - reg |
| 60 | + - interrupts |
| 61 | + - '#mbox-cells' |
| 62 | + |
| 63 | +additionalProperties: false |
| 64 | + |
| 65 | +examples: |
| 66 | + - | |
| 67 | + soc { |
| 68 | + #address-cells = <2>; |
| 69 | + #size-cells = <2>; |
| 70 | +
|
| 71 | + mhuA: mailbox@2b1f0000 { |
| 72 | + #mbox-cells = <1>; |
| 73 | + compatible = "arm,mhu", "arm,primecell"; |
| 74 | + reg = <0 0x2b1f0000 0 0x1000>; |
| 75 | + interrupts = <0 36 4>, /* LP-NonSecure */ |
| 76 | + <0 35 4>, /* HP-NonSecure */ |
| 77 | + <0 37 4>; /* Secure */ |
| 78 | + clocks = <&clock 0 2 1>; |
| 79 | + clock-names = "apb_pclk"; |
| 80 | + }; |
| 81 | +
|
| 82 | + mhu_client_scb: scb@2e000000 { |
| 83 | + compatible = "fujitsu,mb86s70-scb-1.0"; |
| 84 | + reg = <0 0x2e000000 0 0x4000>; |
| 85 | + mboxes = <&mhuA 1>; /* HP-NonSecure */ |
| 86 | + }; |
| 87 | + }; |
0 commit comments