From patchwork Tue Sep 15 14:37:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 53672 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 27FD322A0D for ; Tue, 15 Sep 2015 14:38:38 +0000 (UTC) Received: by lbcao8 with SMTP id ao8sf57885639lbc.1 for ; Tue, 15 Sep 2015 07:38:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=LmFBBq441mE7TcHed4Oo3WdSfa7jhsF3kBQJUhKmIuM=; b=lBtFIvdkpz8kECN+kKbu3yWSfJeVRVuKCmnNsRSCKhd8H5GXCzuYrmv9vXoBg2yvvT 7qTntc3kOk0F8/yqkHK0fiUQb/lBX4WzlXkCN7IEHnz3gwSk6cFfnRkrvJvs00FNqsgO zFEZjWKzD/aaZQcGSX43XLcR1SXxHNKvauZs5j0Bi1nl7nbTJUshZjXiQ1hCeftJldxR cDUdjL6iSmp3c1fTszayslOrbjohavP3Y5FzcDnClw0j06x+n64anU+Vc6SxLbP5gUdo E/HtVbGr8TTPkMpN2BXuN02MZEfTIiNxBn+Mn5pBlngw2QB/sRPFDhUR5hgrc7/E/pjW yTMA== X-Gm-Message-State: ALoCoQmZV6JtJqvPsJd5STHH8dwqK19cKltgU+WI3qdqxTyid7nNX3y2odyhdagpgfBd35kP9rmQ X-Received: by 10.195.12.234 with SMTP id et10mr1510032wjd.2.1442327917062; Tue, 15 Sep 2015 07:38:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.1.199 with SMTP id 7ls658581lao.67.gmail; Tue, 15 Sep 2015 07:38:36 -0700 (PDT) X-Received: by 10.152.22.138 with SMTP id d10mr4314964laf.85.1442327916729; Tue, 15 Sep 2015 07:38:36 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id qc10si14056153lbb.17.2015.09.15.07.38.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Sep 2015 07:38:36 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by lamp12 with SMTP id p12so107831458lam.0 for ; Tue, 15 Sep 2015 07:38:36 -0700 (PDT) X-Received: by 10.152.37.135 with SMTP id y7mr19786095laj.106.1442327916581; Tue, 15 Sep 2015 07:38:36 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1844951lbq; Tue, 15 Sep 2015 07:38:35 -0700 (PDT) X-Received: by 10.202.104.222 with SMTP id o91mr17349359oik.49.1442327915051; Tue, 15 Sep 2015 07:38:35 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cs4si5125684oeb.32.2015.09.15.07.38.34; Tue, 15 Sep 2015 07:38:35 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754649AbbIOOib (ORCPT + 29 others); Tue, 15 Sep 2015 10:38:31 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:33639 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754468AbbIOOi0 (ORCPT ); Tue, 15 Sep 2015 10:38:26 -0400 Received: by pacex6 with SMTP id ex6so178979091pac.0 for ; Tue, 15 Sep 2015 07:38:25 -0700 (PDT) X-Received: by 10.69.0.166 with SMTP id az6mr47398037pbd.168.1442327905361; Tue, 15 Sep 2015 07:38:25 -0700 (PDT) Received: from localhost.localdomain ([45.41.135.30]) by smtp.gmail.com with ESMTPSA id qr5sm22536422pbb.26.2015.09.15.07.38.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Sep 2015 07:38:24 -0700 (PDT) From: Leo Yan To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Catalin Marinas , Will Deacon , Jassi Brar , Bintian Wang , haojian.zhuang@linaro.org, Yiping Xu , Wei Xu , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, guodong.xu@linaro.org, zhangjian001@hisilicon.com, Zhenwei Wang , Haoju Mo , Dan Zhao , kongfei@hisilicon.com, Guangyue Zeng , leif.lindholm@linaro.org, Ard Biesheuvel Cc: Leo Yan Subject: [PATCH v3 1/3] dt-bindings: mailbox: Document Hi6220 mailbox driver Date: Tue, 15 Sep 2015 22:37:55 +0800 Message-Id: <1442327877-2620-2-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442327877-2620-1-git-send-email-leo.yan@linaro.org> References: <1442327877-2620-1-git-send-email-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: leo.yan@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Document the new compatible for Hisilicon Hi6220 mailbox driver. Signed-off-by: Leo Yan --- .../bindings/mailbox/hisilicon,hi6220-mailbox.txt | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/hisilicon,hi6220-mailbox.txt diff --git a/Documentation/devicetree/bindings/mailbox/hisilicon,hi6220-mailbox.txt b/Documentation/devicetree/bindings/mailbox/hisilicon,hi6220-mailbox.txt new file mode 100644 index 0000000..3dfb0b0 --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/hisilicon,hi6220-mailbox.txt @@ -0,0 +1,57 @@ +Hisilicon Hi6220 Mailbox Driver +=============================== + +Hisilicon Hi6220 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. + +Mailbox Device Node: +==================== + +Required properties: +-------------------- +- compatible: Shall be "hisilicon,hi6220-mbox" +- reg: Contains the mailbox register address range (base + address and length); the first item is for IPC + registers, the second item is shared buffer for + slots. +- #mbox-cells Common mailbox binding property to identify the number + of cells required for the mailbox specifier. Should be 1. +- interrupts: Contains the interrupt information for the mailbox + device. The format is dependent on which interrupt + controller the SoCs use. + +Example: +-------- + + mailbox: mailbox@F7510000 { + #mbox-cells = <1>; + compatible = "hisilicon,hi6220-mbox"; + reg = <0x0 0xF7510000 0x0 0x1000>, /* IPC_S */ + <0x0 0x06DFF800 0x0 0x0800>; /* Mailbox */ + interrupt-parent = <&gic>; + interrupts = <0 94 4>; + }; + + +Mailbox client +=============== + +"mboxes" and the optional "mbox-names" (please see +Documentation/devicetree/bindings/mailbox/mailbox.txt for details). Each value +of the mboxes property should contain a phandle to the mailbox controller +device node and second argument is the channel index. It must be 0 (hardware +support only one channel). The equivalent "mbox-names" property value can be +used to give a name to the communication channel to be used by the client user. + +Example: +-------- + + stub_clock: stub_clock { + compatible = "hisilicon,hi6220-stub-clk"; + hisilicon,hi6220-clk-sram = <&sram>; + #clock-cells = <1>; + mbox-names = "mbox-tx"; + mboxes = <&mailbox 1>; + };