ARM: dts: dra7-ipu-dsp-common: Move mailboxes into common files

The System Mailboxes 5 and 6 and their corresponding child sub-mailbox
(IPC 3.x) nodes are enabled in each of the DRA7xx and AM57xx board
dts files individually at present. These mailboxes enable the Remote
Processor Messaging (RPMsg) communication stack between the MPU host
processor and each of the IPU1, IPU2, DSP1 and DSP2 remote processors.

Move these nodes into two common dtsi files - dra7-ipu-dsp-common and
dra74-ipu-dsp-common files, which are then included in various board
dts files. These files can be used to add all the common configuration
properties (except memory data) required by remote processor nodes.
The memory pools and the remote processor nodes themselves are to be
enabled in the actual board dts files. The first file is to used by
platforms using DRA72x/DRA71x/AM571x/AM570x SoCs, and the second file
is to be used by platforms using DRA74x/DRA76x/AM572x/AM574x SoCs.
The second file includes the first file and contains additional data
only applicable for DSP2 remote processor.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by Suman Anna and committed by Tony Lindgren a11a2f73 0ed073c2

+38 -74
+1 -17
arch/arm/boot/dts/am571x-idk.dts
··· 10 10 #include "dra7-mmc-iodelay.dtsi" 11 11 #include "dra72x-mmc-iodelay.dtsi" 12 12 #include "am57xx-idk-common.dtsi" 13 + #include "dra7-ipu-dsp-common.dtsi" 13 14 14 15 / { 15 16 model = "TI AM5718 IDK"; ··· 147 146 148 147 &sn65hvs882 { 149 148 load-gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; 150 - }; 151 - 152 - &mailbox5 { 153 - status = "okay"; 154 - mbox_ipu1_ipc3x: mbox_ipu1_ipc3x { 155 - status = "okay"; 156 - }; 157 - mbox_dsp1_ipc3x: mbox_dsp1_ipc3x { 158 - status = "okay"; 159 - }; 160 - }; 161 - 162 - &mailbox6 { 163 - status = "okay"; 164 - mbox_ipu2_ipc3x: mbox_ipu2_ipc3x { 165 - status = "okay"; 166 - }; 167 149 }; 168 150 169 151 &pcie1_rc {
+1 -20
arch/arm/boot/dts/am572x-idk-common.dtsi
··· 6 6 #include <dt-bindings/gpio/gpio.h> 7 7 #include <dt-bindings/interrupt-controller/irq.h> 8 8 #include "am57xx-idk-common.dtsi" 9 + #include "dra74-ipu-dsp-common.dtsi" 9 10 10 11 / { 11 12 memory@0 { ··· 146 145 &pcie1_rc { 147 146 status = "okay"; 148 147 gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>; 149 - }; 150 - 151 - &mailbox5 { 152 - status = "okay"; 153 - mbox_ipu1_ipc3x: mbox_ipu1_ipc3x { 154 - status = "okay"; 155 - }; 156 - mbox_dsp1_ipc3x: mbox_dsp1_ipc3x { 157 - status = "okay"; 158 - }; 159 - }; 160 - 161 - &mailbox6 { 162 - status = "okay"; 163 - mbox_ipu2_ipc3x: mbox_ipu2_ipc3x { 164 - status = "okay"; 165 - }; 166 - mbox_dsp2_ipc3x: mbox_dsp2_ipc3x { 167 - status = "okay"; 168 - }; 169 148 };
+1 -20
arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
··· 7 7 #include "am5728.dtsi" 8 8 #include "am57xx-commercial-grade.dtsi" 9 9 #include "dra74x-mmc-iodelay.dtsi" 10 + #include "dra74-ipu-dsp-common.dtsi" 10 11 #include <dt-bindings/gpio/gpio.h> 11 12 #include <dt-bindings/interrupt-controller/irq.h> 12 13 ··· 583 582 >; 584 583 tx-num-evt = <32>; 585 584 rx-num-evt = <32>; 586 - }; 587 - 588 - &mailbox5 { 589 - status = "okay"; 590 - mbox_ipu1_ipc3x: mbox_ipu1_ipc3x { 591 - status = "okay"; 592 - }; 593 - mbox_dsp1_ipc3x: mbox_dsp1_ipc3x { 594 - status = "okay"; 595 - }; 596 - }; 597 - 598 - &mailbox6 { 599 - status = "okay"; 600 - mbox_ipu2_ipc3x: mbox_ipu2_ipc3x { 601 - status = "okay"; 602 - }; 603 - mbox_dsp2_ipc3x: mbox_dsp2_ipc3x { 604 - status = "okay"; 605 - }; 606 585 };
+1
arch/arm/boot/dts/dra7-evm-common.dtsi
··· 3 3 * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/ 4 4 */ 5 5 6 + #include "dra74-ipu-dsp-common.dtsi" 6 7 #include <dt-bindings/gpio/gpio.h> 7 8 #include <dt-bindings/clock/ti-dra7-atl.h> 8 9 #include <dt-bindings/input/input.h>
+21
arch/arm/boot/dts/dra7-ipu-dsp-common.dtsi
··· 1 + // SPDX-License-Identifier: GPL-2.0 2 + /* 3 + * Common IPU and DSP data for TI DRA7xx/AM57xx platforms 4 + */ 5 + 6 + &mailbox5 { 7 + status = "okay"; 8 + mbox_ipu1_ipc3x: mbox_ipu1_ipc3x { 9 + status = "okay"; 10 + }; 11 + mbox_dsp1_ipc3x: mbox_dsp1_ipc3x { 12 + status = "okay"; 13 + }; 14 + }; 15 + 16 + &mailbox6 { 17 + status = "okay"; 18 + mbox_ipu2_ipc3x: mbox_ipu2_ipc3x { 19 + status = "okay"; 20 + }; 21 + };
+1 -17
arch/arm/boot/dts/dra72-evm-common.dtsi
··· 5 5 /dts-v1/; 6 6 7 7 #include "dra72x.dtsi" 8 + #include "dra7-ipu-dsp-common.dtsi" 8 9 #include <dt-bindings/gpio/gpio.h> 9 10 #include <dt-bindings/clock/ti-dra7-atl.h> 10 11 ··· 582 581 >; 583 582 tx-num-evt = <32>; 584 583 rx-num-evt = <32>; 585 - }; 586 - 587 - &mailbox5 { 588 - status = "okay"; 589 - mbox_ipu1_ipc3x: mbox_ipu1_ipc3x { 590 - status = "okay"; 591 - }; 592 - mbox_dsp1_ipc3x: mbox_dsp1_ipc3x { 593 - status = "okay"; 594 - }; 595 - }; 596 - 597 - &mailbox6 { 598 - status = "okay"; 599 - mbox_ipu2_ipc3x: mbox_ipu2_ipc3x { 600 - status = "okay"; 601 - }; 602 584 }; 603 585 604 586 &pcie1_rc {
+12
arch/arm/boot/dts/dra74-ipu-dsp-common.dtsi
··· 1 + // SPDX-License-Identifier: GPL-2.0 2 + /* 3 + * Common IPU and DSP data for TI DRA74x/DRA76x/AM572x/AM574x platforms 4 + */ 5 + 6 + #include "dra7-ipu-dsp-common.dtsi" 7 + 8 + &mailbox6 { 9 + mbox_dsp2_ipc3x: mbox_dsp2_ipc3x { 10 + status = "okay"; 11 + }; 12 + };