1# Copyright 2022 NXP 2# SPDX-License-Identifier: Apache-2.0 3 4description: | 5 NXP S32 Message Receive Unit 6 7 The MRU couples with a processor and allows to receive messages from senders, 8 which are other modules or processors. The interrupts from each MRU instance 9 route to specific Private Peripheral Interrupts (PPIs) of the corresponding 10 core. 11 12 This driver offers a simplified operation in order to integrate with Zephyr 13 Mbox API: 14 - Each channel uses only the first mailbox, as current API does not allow 15 to group hardware channel's mailboxes in logical channels. 16 - The MTU is fixed to the size of one mailbox, as current API does not 17 allow variable length per channel. 18 19 In a normal use-case for IPC, the receiver core must enable and set the number 20 of receive channels on the MRU instance coupled with the core, for instance in 21 a devicetree overlay. In turn, the sender(s) must enable the MRU instance of the 22 receiver to be able to transmit on it. There is no need to define the transmit 23 channels on which the sender is intended to transmit. 24 25 For example, core B and C want to send messages to core A in channels 0 and 1, 26 respectively, then the devicetree overlays will look like: 27 28 // overlay of core A 29 mruA { 30 rx-channels = <2>; 31 status = "okay"; 32 }; 33 34 // overlays of core B and core C 35 mruA { 36 status = "okay"; 37 }; 38 39compatible: "nxp,s32-mru" 40 41include: [base.yaml, mailbox-controller.yaml] 42 43properties: 44 interrupts: 45 required: true 46 47 rx-channels: 48 type: int 49 enum: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] 50 description: | 51 Number of receive channels enabled on this instance. 52 Setting this value to N, will enable channels 0 to N-1, consecutively. 53 It should be set by the receiver core coupled with this MRU instance. 54 55 For example, if receiver A wants to Rx on channels 0 and 1, then A must 56 set rx-channels of mruA as follows: 57 58 mruA { 59 rx-channels = <2>; 60 status = "okay"; 61 }; 62 63mbox-cells: 64 - channel 65