From patchwork Fri Nov 17 09:24:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu YiPing X-Patchwork-Id: 119138 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp290031qgn; Fri, 17 Nov 2017 01:30:31 -0800 (PST) X-Google-Smtp-Source: AGs4zMbsQfiwnRJrGIB+Dlmm4LkLmmv92FSx5FKH7IrBVAFfMkKLy+FDbHbvbW/tKAcy0rhYMSZf X-Received: by 10.84.214.23 with SMTP id h23mr530887pli.261.1510911031129; Fri, 17 Nov 2017 01:30:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510911031; cv=none; d=google.com; s=arc-20160816; b=0YMPZ4ajnKSuV3YpixSf332Fsyk6uTPp4CpTOAozVO6Z9+mJAfUvKbxq36MdYxEIxM +64Poat1/Lc4IZqEGGK7fuZF0SvDF9lYCmpTKUj2/O1zlvTfxGxuOX34NPcUy5OD37nH n+ge9vHSylue6sRev2lQ/xlsGaBi8C5XYXZo10gEj/Pye5fv+iAHO25bvnjLfZ3PW5Pr xA2dBdoMbMr5mUtgeoKDV16vphZUS25xV8xeEOGzTnf8MK7NcMJG7KFyzATgFoUfQUjr FqLkKImEDmuHRUNi7SM3VC3GbApz7qAwph2HuXAHTWtg6/VvGwrMIyTDzt28gJY00Rm8 XDhQ== 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=oejSW3m/FIhXnR+ohEfsmzDoRwssesADSKi7htDKS6U=; b=q4arx8/QmL8ajzsTPLhsVR7c6dgUAtuly9fQzK+ZAHPEhyHr5sJrjhqMnXs7o2U1wk Sg05y735JojR/JyMSeZ0FwC/212dQOD9xC9I3uwF1CWmklTaVh6kt6G7I3lBaGDMGh0I WLlZB0OzHwbOQSHHYH9AesJYRd93iLQ0vMfx6SSSazu+jngWYGc7/4SJRTbyun4AT1mB 737E3tiIbt9hI1Eb6+e+eJZho3J/KS4Y+/pwOjsGbS2cPIunt/H7nhfok2OplNurttZN g7sOarUJTMz4hop21LRlveHdFEjxAEkVlHN+sJsrKJnOXCxM4qPeVAgahgMgHtu5k8pm yLKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 k75si2710902pfg.360.2017.11.17.01.30.30; Fri, 17 Nov 2017 01:30:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757471AbdKQJa0 (ORCPT + 6 others); Fri, 17 Nov 2017 04:30:26 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:10948 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965933AbdKQJ3O (ORCPT ); Fri, 17 Nov 2017 04:29:14 -0500 Received: from 172.30.72.58 (EHLO DGGEMS402-HUB.china.huawei.com) ([172.30.72.58]) by dggrg04-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DLA22891; Fri, 17 Nov 2017 17:25:21 +0800 (CST) Received: from vm167-7.huawei.com (10.177.167.7) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.361.1; Fri, 17 Nov 2017 17:24:33 +0800 From: Xu YiPing To: , , , , , CC: , , , , , , , , Subject: [PATCH v3 0/3] Add support for Hi3660 mailbox driver Date: Fri, 17 Nov 2017 17:24:29 +0800 Message-ID: <1510910672-1409-1-git-send-email-xuyiping@hisilicon.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.0A020205.5A0EAB02.0004, 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: 68936c79092f84f3c584013f3c6ddf9c Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html