From patchwork Wed Aug 19 09:37:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 52534 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 5B98422DB1 for ; Wed, 19 Aug 2015 09:38:27 +0000 (UTC) Received: by wicja10 with SMTP id ja10sf854431wic.2 for ; Wed, 19 Aug 2015 02:38:26 -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=qK7vwqRjbklUDrgS2ObmTvS+1+74zeIfYJSWiZimy2g=; b=FA0mifAuPSSlefbx2U8AaX0GLFd3097/6gMUx1T/q4tk+/IDlnwFOmt2oTCF1bZW+8 X99CsMadU40J2mdZwO53qJ0C3Z72k+XMxZmx4oCqyakYYrkZNfGjDMw+afoakTzyZlqt ExZVkB7Xz1HjLL+0cXW9t43+8uGQc2Nsd4BGsva+iCndlWE4HHXIGBf37QpMGreVsgx5 1eHUjmzrQ/9YQMRMQyTp+djG7zoINLR7ORp0tMFRELEstd4uGd98UpvVB+vIyf9ZhVEk Ks8GjWfxjhJ5dUCA994k1ewHIdFzOTc+hO7vToGkDerfrMQMtWQSFbs1/Crp03et5bH3 IGQA== X-Gm-Message-State: ALoCoQkFujBS+YGZQSDUEfaYGuQeHQU/2H6tJn1MGMLeQ44ietH7awjkk3nlOxErZgSqbRndyMeB X-Received: by 10.180.186.36 with SMTP id fh4mr219135wic.7.1439977106708; Wed, 19 Aug 2015 02:38:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.74 with SMTP id k10ls5638laf.30.gmail; Wed, 19 Aug 2015 02:38:26 -0700 (PDT) X-Received: by 10.152.25.196 with SMTP id e4mr10482999lag.15.1439977106415; Wed, 19 Aug 2015 02:38:26 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id ty7si91476lbb.49.2015.08.19.02.38.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Aug 2015 02:38:26 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by laba3 with SMTP id a3so12212782lab.1 for ; Wed, 19 Aug 2015 02:38:26 -0700 (PDT) X-Received: by 10.112.176.228 with SMTP id cl4mr10552016lbc.106.1439977106161; Wed, 19 Aug 2015 02:38:26 -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.162.200 with SMTP id yc8csp247459lbb; Wed, 19 Aug 2015 02:38:25 -0700 (PDT) X-Received: by 10.70.125.169 with SMTP id mr9mr23464196pdb.22.1439977104936; Wed, 19 Aug 2015 02:38:24 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7si220526pdj.79.2015.08.19.02.38.24; Wed, 19 Aug 2015 02:38:24 -0700 (PDT) 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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932103AbbHSJiW (ORCPT + 8 others); Wed, 19 Aug 2015 05:38:22 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:33480 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932102AbbHSJiR (ORCPT ); Wed, 19 Aug 2015 05:38:17 -0400 Received: by pabyb7 with SMTP id yb7so154080538pab.0 for ; Wed, 19 Aug 2015 02:38:17 -0700 (PDT) X-Received: by 10.68.184.225 with SMTP id ex1mr22630623pbc.75.1439977097163; Wed, 19 Aug 2015 02:38:17 -0700 (PDT) Received: from localhost.localdomain ([116.251.214.16]) by smtp.gmail.com with ESMTPSA id fa1sm157600pab.37.2015.08.19.02.38.08 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Aug 2015 02:38:16 -0700 (PDT) From: Leo Yan To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Jassi Brar , Bintian Wang , Haojian Zhuang , Yiping Xu , Wei Xu , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, guodong.xu@linaro.org, Jian Zhang , Zhenwei Wang , Haoju Mo , Dan Zhao , kongfei@hisilicon.com, Guangyue Zeng Cc: Leo Yan Subject: [PATCH v1 1/3] dt-bindings: mailbox: Document Hi6220 mailbox driver Date: Wed, 19 Aug 2015 17:37:33 +0800 Message-Id: <1439977055-1747-2-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439977055-1747-1-git-send-email-leo.yan@linaro.org> References: <1439977055-1747-1-git-send-email-leo.yan@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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.42 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>; + };