From d34c9b89175235ea616c6018a132d506fa3616b4 Mon Sep 17 00:00:00 2001 From: Shunzhou Jiang Date: Mon, 13 May 2019 16:45:33 +0800 Subject: [PATCH] dts: tm2: enable dsp mailbox driver [1/1] PD#SWPL-6580 Problem: dsp mailbox driver not enabled Solution: enable dsp mbox driver Verify: tm2 Change-Id: I926c6da3fd373bd19cc171514096e90d929a5807 Signed-off-by: Shunzhou Jiang --- arch/arm/boot/dts/amlogic/mesontm2.dtsi | 22 ++++++++++++++++++++++ arch/arm64/boot/dts/amlogic/mesontm2.dtsi | 21 +++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/arch/arm/boot/dts/amlogic/mesontm2.dtsi b/arch/arm/boot/dts/amlogic/mesontm2.dtsi index 1c1bc90..60d7ff9 100644 --- a/arch/arm/boot/dts/amlogic/mesontm2.dtsi +++ b/arch/arm/boot/dts/amlogic/mesontm2.dtsi @@ -212,6 +212,28 @@ mboxes = <&mailbox 0 &mailbox 1>; }; + mailbox_dsp: mhu@ff680150 { + status = "okay"; + compatible = "amlogic, meson_mhu_dsp"; + reg = <0xff680150 0x84>, /* MHU registers */ + <0xff690150 0x84>, + <0xfffdbc00 0x800>; /* Payload area */ + interrupts = <0 242 1>, /* DSPA Receive */ + <0 244 1>, /* DSPA Send */ + <0 246 1>, /* DSPB Receive */ + <0 248 1>; /* DSPB Send */ + mbox-names = "dspa_to_ap", + "ap_to_dspa", + "dspb_to_ap", + "ap_to_dspb"; + #mbox-cells = <1>; + mboxes = <&mailbox_dsp 0>, + <&mailbox_dsp 1>, + <&mailbox_dsp 2>, + <&mailbox_dsp 3>; + mbox-nums = <4>; + }; + cpu_iomap { compatible = "amlogic, iomap"; #address-cells = <1>; diff --git a/arch/arm64/boot/dts/amlogic/mesontm2.dtsi b/arch/arm64/boot/dts/amlogic/mesontm2.dtsi index 190fc6c..bef2ee5 100644 --- a/arch/arm64/boot/dts/amlogic/mesontm2.dtsi +++ b/arch/arm64/boot/dts/amlogic/mesontm2.dtsi @@ -201,6 +201,27 @@ mboxes = <&mailbox 0 &mailbox 1>; }; + mailbox_dsp: mhu@ff680150 { + status = "okay"; + compatible = "amlogic, meson_mhu_dsp"; + reg = <0x0 0xff680150 0x0 0x84>, /* MHU registers */ + <0x0 0xff690150 0x0 0x84>, + <0x0 0xfffdbc00 0x0 0x800>; /* Payload area */ + interrupts = <0 242 1>, /* DSPA Receive */ + <0 244 1>, /* DSPA Send */ + <0 246 1>, /* DSPB Receive */ + <0 248 1>; /* DSPB Send */ + mbox-names = "dspa_to_ap", + "ap_to_dspa", + "dspb_to_ap", + "ap_to_dspb"; + #mbox-cells = <1>; + mboxes = <&mailbox_dsp 0>, + <&mailbox_dsp 1>, + <&mailbox_dsp 2>, + <&mailbox_dsp 3>; + mbox-nums = <4>; + }; cpu_iomap { compatible = "amlogic, iomap"; #address-cells = <2>; -- 2.7.4