dts: tm2: enable dsp mailbox driver [1/1]
authorShunzhou Jiang <shunzhou.jiang@amlogic.com>
Mon, 13 May 2019 08:45:33 +0000 (16:45 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 20 May 2019 02:16:23 +0000 (19:16 -0700)
PD#SWPL-6580

Problem:
dsp mailbox driver not enabled

Solution:
enable dsp mbox driver

Verify:
tm2

Change-Id: I926c6da3fd373bd19cc171514096e90d929a5807
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
arch/arm/boot/dts/amlogic/mesontm2.dtsi
arch/arm64/boot/dts/amlogic/mesontm2.dtsi

index 1c1bc90..60d7ff9 100644 (file)
                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>;
index 190fc6c..bef2ee5 100644 (file)
                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>;