From patchwork Fri Oct 27 06:15:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kaihua Zhong X-Patchwork-Id: 117287 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp401267qgn; Thu, 26 Oct 2017 23:22:32 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RnuMd34eC6s/X/AOhiiwNnw9Vv5bKZY68d8NaDyziX+JTA8NKqNtKgovm8Qohj2aRBmNou X-Received: by 10.98.178.22 with SMTP id x22mr7864300pfe.123.1509085352513; Thu, 26 Oct 2017 23:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509085352; cv=none; d=google.com; s=arc-20160816; b=w994FU5S2RBr4bS8iTaGHYVW4qT7rqoXAoqDRYcfvIKMaRelYmrCb0QTLDi3pVPW7h joWFV3oZPph4LtjLmTHfyHfIRsciF5Z6NC0WAolT8iyd7U2Go1dDY7v+7mjQ5eOIVgKN S7FbDKuH4ejaj40Ziv21UmMOBrGuLhbqx/W2LLOjj0m6dBHxJY9x2pIEKyjvN5d29zpM Ub+NHk5GhkikITnB6rA2K/z5Nwklw/9j2gJjwg6wRlIBgkH3BMRkddXw1lYtyKbgccdm k1M+nHhWCd06r2DlknENaYGBUfL7CK3gR+mvEcvHtdpzbr4mtTaA9ZwJ6DGPLcwC4INJ 9O0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=1WDMTvK3Oeo7MiWorLfS9+vUWfb/b+K+zAZT43i0y4s=; b=Ie9D4NK7m4DTvIgZ8TERFKJnM8C+RwRI5ddRJkNhI8OUzRdPk+/HN5XA0FxNNa1hVg DCVAdzx8SPp8MGE1fZ6LMyAmR/swvcwwJaCaUjoYItfuO3jw2ClSJPdfLj/Ja36yWW/0 PmHli64/4ctsl7lzoMFF3HF/0TtuLdTRA6RhCXtG5i4l5JUoI4lsMqw8EbGeq3ry36NB YXiUf7RgggdZlVIeXV1VpU4Z6TqheoCr4vslGH1HGLB1eOiJUfDYhAX3pxs+Nd2e/lXk j8wamUxFc2dCbvktOKbzQnxZhINI+8Br9JjDbuSY7Pkz7mkqatM/UHZOoDUQSM4DSsTa juww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si4925466pfh.149.2017.10.26.23.22.32; Thu, 26 Oct 2017 23:22:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752075AbdJ0GWa (ORCPT + 27 others); Fri, 27 Oct 2017 02:22:30 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:9443 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751072AbdJ0GWF (ORCPT ); Fri, 27 Oct 2017 02:22:05 -0400 Received: from 172.30.72.59 (EHLO DGGEMS414-HUB.china.huawei.com) ([172.30.72.59]) by dggrg04-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DJW60885; Fri, 27 Oct 2017 14:15:13 +0800 (CST) Received: from vm167-7.huawei.com (10.177.167.7) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.361.1; Fri, 27 Oct 2017 14:15:05 +0800 From: Kaihua Zhong To: , , , , , CC: , , , , , , , , Subject: [PATCH v2 0/3] mailbox: Add support for Hi3660 mailbox Date: Fri, 27 Oct 2017 14:15:01 +0800 Message-ID: <1509084904-2505-1-git-send-email-zhongkaihua@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.177.167.7] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020202.59F2CEF1.005C, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 0bfd22393429cdfd82cb44192493c17b Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leo Yan 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 v1: * Refactored structure definition according to Jassi's suggestion; * Refactored and simplized mailbox driver with "automatic ack" mode; * Refined commit logs to give background info for driver; * Added document for DT binding; * Added cover letter to track the changelog. 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 | 52 ++++ arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 + drivers/mailbox/Kconfig | 8 + drivers/mailbox/Makefile | 2 + drivers/mailbox/hi3660-mailbox.c | 331 +++++++++++++++++++++ 5 files changed, 401 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/hisilicon,hi3660-mailbox.txt create mode 100644 drivers/mailbox/hi3660-mailbox.c -- 1.9.1