Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751522AbbHCBNx (ORCPT ); Sun, 2 Aug 2015 21:13:53 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:36501 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750789AbbHCBNv (ORCPT ); Sun, 2 Aug 2015 21:13:51 -0400 From: Leo Yan To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Jassi Brar , Wei Xu , Bintian Wang , Haojian Zhuang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guodong Xu , Jian Zhang , Zhenwei Wang , Haoju Mo , Dan Zhao , kongfei@hisilicon.com, Guangyue Zeng Cc: Leo Yan Subject: [RFC PATCH 0/3] mailbox: hisilicon: add mailbox driver Date: Mon, 3 Aug 2015 09:13:07 +0800 Message-Id: <1438564390-28111-1-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2329 Lines: 52 This patch series is to implement Hisilicon's mailbox driver and enable the mailbox controller on Hi6220. The Hisilicon mailbox supports up to 32 channels. Each channel is unidirectional with a maximum message size of 8 words. I/O is performed using register access (there is no DMA) and the cell raises an interrupt when messages are received. For easily extending for Hisilicon series SoCs (SoCs may have difference for register's definition with each other), so firstly implement common mailbox driver; this common mailbox driver provides three mainly functionality: - help register channels into framework; - hook low level callback functions for register's operations; - Enhance rx channel's message queue, which is based on the code in drivers/mailbox/omap-mailbox.c. Base on this common driver, also has enabled Hi6220 mailbox controller. Leo Yan (3): dt-bindings: mailbox: Document Hisilicon mailbox driver mailbox: Hisilicon: add mailbox driver arm64: dts: add Hi6220 mailbox node .../devicetree/bindings/mailbox/hisi-mailbox.txt | 57 ++++ arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 20 +- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 8 + drivers/mailbox/Kconfig | 2 + drivers/mailbox/Makefile | 2 + drivers/mailbox/hisilicon/Kconfig | 13 + drivers/mailbox/hisilicon/Makefile | 2 + drivers/mailbox/hisilicon/common.c | 282 +++++++++++++++++++ drivers/mailbox/hisilicon/common.h | 114 ++++++++ drivers/mailbox/hisilicon/hi6220-mailbox.c | 305 +++++++++++++++++++++ 10 files changed, 802 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/mailbox/hisi-mailbox.txt create mode 100644 drivers/mailbox/hisilicon/Kconfig create mode 100644 drivers/mailbox/hisilicon/Makefile create mode 100644 drivers/mailbox/hisilicon/common.c create mode 100644 drivers/mailbox/hisilicon/common.h create mode 100644 drivers/mailbox/hisilicon/hi6220-mailbox.c -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/