From patchwork Tue Dec 19 11:15:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kaihua Zhong X-Patchwork-Id: 122376 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4007413qgn; Tue, 19 Dec 2017 03:16:44 -0800 (PST) X-Google-Smtp-Source: ACJfBosJHXTAbYdMnljAeUyA3T7K9fOZY4S9tpWpofpfGiot8Bj/lJfqn78hPqWCPNDtHmLBDhcp X-Received: by 10.98.19.202 with SMTP id 71mr2881458pft.181.1513682203944; Tue, 19 Dec 2017 03:16:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513682203; cv=none; d=google.com; s=arc-20160816; b=S/AoKCzVfZb0c2zCYDY86LCXkp7vX9y3Nu34jYsiQFjvzhTfNt9FOZsDIqhaDypmvR bNHy/pjnclH7APFuE68b9d8wF9lhhslwsc0saTc9UUl2i/K+K3bt4a1P/36DDUGIcQ8a h/rPK/ZuRaBHM6fM0H0BIk8yWZCb5r/IIF98CrZjzC/sYIofW8sfbTPOUIhAQlUKDgqy ABb2cvlQCpH7CL5FB3bmh49gxJlqfclozGGc9aOslfeAjjgAd7OGvUpURCQaHMmlLpB8 3qxNWEvGYXtLcsBvDcwe6EE8OUM5om8IlUk2FhMYtTRVn+YFptgzcTl+G1pz2ujbbcPg HT3w== 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=gdKshVilN0sCNmiaAFx3qBAbzr+rKNRDqGuWcdNCCG0=; b=CmvjolrfO6A8bvzZ1sw97USiFx8gvUOQtr0ZXZwwM2FLaWElsuW+wmw1wjsFwxhjX0 8e6Epwn5Srk0kQN2nQcA9XgnhMSo4rImzML/iGtQWdPA+apCoF63SosGZQm1ZtbaBFEp /nHCaxog0ruEG5KXMXUcbemLugB4FBnx87hyKc8IOpdLzAhCzZzXBvhl5D6mVwSPKJgV 1vX/yMYAqVNsXPOxypkOAz1wYke5lqwG5660OiOFdcSEUnqhy1aAoIp/xrbERYlZKY/E gBBf4GAGr+o+glUXI7X+UUktXfLWR3QvxXxt9r50eTc2mh2dHSgkmidw4B2GB07Bhq1+ TOTw== 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 k195si9644376pgc.501.2017.12.19.03.16.43; Tue, 19 Dec 2017 03:16:43 -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 S967013AbdLSLQg (ORCPT + 6 others); Tue, 19 Dec 2017 06:16:36 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:34303 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1762150AbdLSLP5 (ORCPT ); Tue, 19 Dec 2017 06:15:57 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 1D28741F0E799; Tue, 19 Dec 2017 19:15:53 +0800 (CST) Received: from vm167-7.huawei.com (10.177.167.7) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.361.1; Tue, 19 Dec 2017 19:15:45 +0800 From: Kaihua Zhong To: , , , , , CC: , , , , , , , , Subject: [PATCH v4 0/3] Add support for Hi3660 mailbox driver Date: Tue, 19 Dec 2017 19:15:42 +0800 Message-ID: <1513682145-19892-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 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 v3: * According to Jassi suggestion, refined structure name to "struct hi3660_chan_info"; * According to Jassi suggestion, moved channel 'lock'+'acquire' operations into .startup(); 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 | 319 +++++++++++++++++++++ 5 files changed, 388 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