From patchwork Thu Aug 20 02:53:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 52569 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id A70212156D for ; Thu, 20 Aug 2015 02:55:13 +0000 (UTC) Received: by labpx14 with SMTP id px14sf6877770lab.1 for ; Wed, 19 Aug 2015 19:55:12 -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=ZxUgRnlr2mRjXvHLUyAQHBR3MvWyGolkOYa4DC2oaSZCFyLVXsjYdziRTKWmIAil/7 k4a0enmVmauqerVVu+V68ev0IqP4UuivUNuZQjmj8sH0TxsiFHq7lYxavNEdlQ0sZex9 Ot+CtuhuKGTa4FIi+1kqOzVwRhGRtlw1O295JegQe/RuargjJKaM5eD/Wi+YEixnsE4h 6PVKT+pt7Xsa15CHGfuWl2YzRlKZgKid0GBfl/cy32yXUUoTD6tyiaXrqnjoSaa0swsW u5cj1ds/a5Qw4+b8MmjxXW2QQlk66xqTw9ogaDqZx9GOXOZPDS2Me0tOyvMCsZIgQ4W5 mp7g== X-Gm-Message-State: ALoCoQkcLbtLFxUrkIR7msUYwaBwaH+Id9uHHfZMsQTONMvRKkRhBw80QoXfZCXJ3zitbdsFQtHc X-Received: by 10.180.77.105 with SMTP id r9mr1259354wiw.0.1440039312233; Wed, 19 Aug 2015 19:55:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.135 with SMTP id m7ls106927laf.103.gmail; Wed, 19 Aug 2015 19:55:12 -0700 (PDT) X-Received: by 10.152.4.98 with SMTP id j2mr698883laj.67.1440039312030; Wed, 19 Aug 2015 19:55:12 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id lt3si2498641lac.124.2015.08.19.19.55.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Aug 2015 19:55:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by laba3 with SMTP id a3so14426294lab.1 for ; Wed, 19 Aug 2015 19:55:11 -0700 (PDT) X-Received: by 10.112.77.10 with SMTP id o10mr734796lbw.73.1440039311870; Wed, 19 Aug 2015 19:55:11 -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 yc8csp747490lbb; Wed, 19 Aug 2015 19:55:10 -0700 (PDT) X-Received: by 10.66.163.131 with SMTP id yi3mr1843529pab.100.1440039309775; Wed, 19 Aug 2015 19:55:09 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cv2si4915378pbc.213.2015.08.19.19.55.08; Wed, 19 Aug 2015 19:55:09 -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 S1752000AbbHTCzF (ORCPT + 28 others); Wed, 19 Aug 2015 22:55:05 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:35853 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751746AbbHTCzC (ORCPT ); Wed, 19 Aug 2015 22:55:02 -0400 Received: by pdbmi9 with SMTP id mi9so8470147pdb.3 for ; Wed, 19 Aug 2015 19:55:01 -0700 (PDT) X-Received: by 10.70.140.195 with SMTP id ri3mr1816002pdb.64.1440039301422; Wed, 19 Aug 2015 19:55:01 -0700 (PDT) Received: from localhost.localdomain ([116.251.214.16]) by smtp.gmail.com with ESMTPSA id i10sm2402245pdl.8.2015.08.19.19.54.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Aug 2015 19:55:00 -0700 (PDT) From: Leo Yan To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , galak@codeaurora.org, 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, Jian Zhang , Zhenwei Wang , Haoju Mo , Dan Zhao , kongfei@hisilicon.com, Guangyue Zeng Cc: Leo Yan Subject: [PATCH v2 1/3] dt-bindings: mailbox: Document Hi6220 mailbox driver Date: Thu, 20 Aug 2015 10:53:57 +0800 Message-Id: <1440039239-8772-2-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1440039239-8772-1-git-send-email-leo.yan@linaro.org> References: <1440039239-8772-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.45 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>; + };