2017-11-17 16:33:29

by Xu YiPing

[permalink] [raw]
Subject: [PATCH v3 0/3] Add support for Hi3660 mailbox driver

From: Leo Yan <[email protected]>

Hi3660 mailbox controller is used to send message within multiple
processors, MCU, HIFI, etc. This patch series is to implement an
initial version for Hi3660 mailbox driver with "automatic
acknowledge" mode.

The patch set have been verified with Hi3660 stub clock driver, so
we can send message to MCU to execute CPU frequency scaling. This is
tested on 96boards Hikey960.

Changes from v2:
* According to Mark Rutland suggestions, removed sev()/wfe() from
driver, the system has no two masters sharing the same channel for
data transferring so we don't need these instructions;
* Refined DT binding and doc according to Rob suggestions;
* Refined driver according to Julien suggestions;

Changes from v1:
* Added cover letter to track the changelog;
* Added document for DT binding;
* Refactored and simplized mailbox driver with "automatic ack" mode;
* Refined commit logs for patches;


Kaihua Zhong (2):
mailbox: Add support for Hi3660 mailbox
dts: arm64: Add mailbox binding for hi3660

Leo Yan (1):
dt-bindings: mailbox: Introduce Hi3660 controller binding

.../bindings/mailbox/hisilicon,hi3660-mailbox.txt | 51 ++++
arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 +
drivers/mailbox/Kconfig | 8 +
drivers/mailbox/Makefile | 2 +
drivers/mailbox/hi3660-mailbox.c | 322 +++++++++++++++++++++
5 files changed, 391 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mailbox/hisilicon,hi3660-mailbox.txt
create mode 100644 drivers/mailbox/hi3660-mailbox.c

--
1.9.1


From 1584248837118293481@xxx Thu Nov 16 18:37:06 +0000 2017
X-GM-THRID: 1584243655331587972
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread


2017-11-17 17:14:54

by Xu YiPing

[permalink] [raw]
Subject: [PATCH v3 3/3] dts: arm64: Add mailbox binding for hi3660

From: Kaihua Zhong <[email protected]>

Add DT binding for mailbox driver.

Signed-off-by: Leo Yan <[email protected]>
Signed-off-by: Ruyi Wang <[email protected]>
Signed-off-by: Kaihua Zhong <[email protected]>
---
arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
index 610990f..451b6bf 100644
--- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
+++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
@@ -285,6 +285,14 @@
#reset-cells = <2>;
};

+ mailbox: mailbox@e896b000 {
+ compatible = "hisilicon,hi3660-mbox";
+ reg = <0x0 0xe896b000 0x0 0x1000>;
+ interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>;
+ #mbox-cells = <3>;
+ };
+
dual_timer0: timer@fff14000 {
compatible = "arm,sp804", "arm,primecell";
reg = <0x0 0xfff14000 0x0 0x1000>;
--
1.9.1


From 1584139789385143376@xxx Wed Nov 15 13:43:50 +0000 2017
X-GM-THRID: 1584139789385143376
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread