From patchwork Tue Dec 19 11:15:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kaihua Zhong X-Patchwork-Id: 122375 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4006817qgn; Tue, 19 Dec 2017 03:16:09 -0800 (PST) X-Google-Smtp-Source: ACJfBouxlzqaz/GNqkU83wcAM64Kbhlui8JSRMx4KPcqon0sE53jA92T76HY7N2jqDxC7yPcY/Wl X-Received: by 10.84.128.197 with SMTP id a63mr2977363pla.340.1513682169316; Tue, 19 Dec 2017 03:16:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513682169; cv=none; d=google.com; s=arc-20160816; b=AteqPejMedOV0txsg1FY9z3OG/D/BQAZ39ctac8M63jAtbLv40ljRAphP0CuJR3D1D q5a4KUxI0eROhK3Og9BUzM/M04Cx4k7eHsBojpj5vU7GMqGhKI5du4J505q96wXG7L1i 8FbzMFIC5FwGR9BzGHbp2ChYUTQATs9LwPbPqRPbAbOrZ8HAzD+0V3wPB4I9+8k1Ep+d uc1XA38jqS5K8jY+GpsDzjWbAD7WWBugt5Eiwj4nMQ/cNFX+vaY0ae6CEG4M+Yxct8M8 gz4mMxReNzVLxSfTIF1ZsA4s2D919/cf4x710MI1N9GUoEjXC/EsFijF9sI6p0sqazYB 4DBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=u2lWQy3lnGnomXewSUflplIjy8ULTO8FtfP47B6weic=; b=jy+agLXULJohvp3dNkWMMuhGRfnTcRQdMU5Kwd9sA1VLgspwTvU/8nVjEVYpFET05G 5xJFTHwfE29+Hxp+my2R2RRapfBnm0EawBUygjrW6BCDdWKzkaIY8RmOYt5KwWzb0iq5 2VI6UIYwwSrROVjh6z7+OvJq9ZPsF3byiqnqZPCd3WA/X9+o2dX0AMrRWMK4CPWFyEBG xQkCua60F8a58MWt3iORJ9IZpcbyDYMUPcI6BsyYEZ07gMDaaXmVw7oTOjoby5vWt1W1 oa+7cuTPmusKEIcl/jakVo1fLk2s6iof72KE6r9ExZcatLEd+CDZ+8QFFIUlVrYOpej7 MhHA== 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 k195si9644376pgc.501.2017.12.19.03.16.09; Tue, 19 Dec 2017 03:16:09 -0800 (PST) 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 S1762233AbdLSLQE (ORCPT + 28 others); Tue, 19 Dec 2017 06:16:04 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:34304 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1762139AbdLSLP4 (ORCPT ); Tue, 19 Dec 2017 06:15:56 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 2CEE1FEEBCA7; 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:46 +0800 From: Kaihua Zhong To: , , , , , CC: , , , , , , , , Subject: [PATCH v4 1/3] dt-bindings: mailbox: Introduce Hi3660 controller binding Date: Tue, 19 Dec 2017 19:15:43 +0800 Message-ID: <1513682145-19892-2-git-send-email-zhongkaihua@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1513682145-19892-1-git-send-email-zhongkaihua@huawei.com> References: <1513682145-19892-1-git-send-email-zhongkaihua@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.177.167.7] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leo Yan Introduce a binding for the Hi3660 mailbox controller, the mailbox is used within application processor (AP), communication processor (CP), HIFI and MCU, etc. Signed-off-by: Leo Yan --- .../bindings/mailbox/hisilicon,hi3660-mailbox.txt | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/hisilicon,hi3660-mailbox.txt -- 1.9.1 diff --git a/Documentation/devicetree/bindings/mailbox/hisilicon,hi3660-mailbox.txt b/Documentation/devicetree/bindings/mailbox/hisilicon,hi3660-mailbox.txt new file mode 100644 index 0000000..3e5b453 --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/hisilicon,hi3660-mailbox.txt @@ -0,0 +1,51 @@ +Hisilicon Hi3660 Mailbox Controller + +Hisilicon Hi3660 mailbox controller supports up to 32 channels. Messages +are passed between processors, including application & communication +processors, MCU, HIFI, etc. Each channel is unidirectional and accessed +by using MMIO registers; it supports maximum to 8 words message. + +Controller +---------- + +Required properties: +- compatible: : Shall be "hisilicon,hi3660-mbox" +- reg: : Offset and length of the device's register set +- #mbox-cells: : Must be 3 + <&phandle channel dst_irq ack_irq> + phandle : Label name of controller + channel : Channel number + dst_irq : Remote interrupt vector + ack_irq : Local interrupt vector + +- interrupts: : Contains the two IRQ lines for mailbox. + +Example: + +mailbox: mailbox@e896b000 { + compatible = "hisilicon,hi3660-mbox"; + reg = <0x0 0xe896b000 0x0 0x1000>; + interrupts = <0x0 0xc0 0x4>, + <0x0 0xc1 0x4>; + #mbox-cells = <3>; +}; + +Client +------ + +Required properties: +- compatible : See the client docs +- mboxes : Standard property to specify a Mailbox (See ./mailbox.txt) + Cells must match 'mbox-cells' (See Controller docs above) + +Optional properties +- mbox-names : Name given to channels seen in the 'mboxes' property. + +Example: + +stub_clock: stub_clock@e896b500 { + compatible = "hisilicon,hi3660-stub-clk"; + reg = <0x0 0xe896b500 0x0 0x0100>; + #clock-cells = <1>; + mboxes = <&mailbox 13 3 0>; +};