From patchwork Mon Aug 3 01:13:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 51816 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by patches.linaro.org (Postfix) with ESMTPS id 3BA21229FD for ; Mon, 3 Aug 2015 01:14:16 +0000 (UTC) Received: by labjm1 with SMTP id jm1sf5544826lab.0 for ; Sun, 02 Aug 2015 18:14:15 -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=Du5a8mbKxTSUlRw20R3U8FafJp7XxpK2x2E8MGavaKk=; b=WxJyxN9E7ieDode0EwHt50cmWTeE9+EdOIlkPNJviqrbqizn8O6g62IMgN8pB7qzcQ YsVg7wp+8cB2WdlaXmihheIRtPnLIWXPTlYADJ1mTU3CoXIm33wzw1UxR3LRbjs9EDEW bfqOcabIPctZ7PSKM7AiflsJnnqiV/xCKzcGbeLZzWdjo/Q+618VTpgr4Fppew01KAML B3ohomvkFdZ0wmhAWB7VHq8bJx50wkvo9Xenk2Rd4YILLnXsGfRm9zd/DTCVASkf/nuj Xmm4f5AEJY7NycP9csx+24oCoUKhixqc1tTPk0fOjWbZHMhTXkLEa4dTeWRMJoOYVvL0 Qp8g== X-Gm-Message-State: ALoCoQlOjvaEywT7RFfKbMwq8StqIzfjdv0D6cwwA6ti73VVDMp+nceVBrz2EBejO1BBK+Ck18sP X-Received: by 10.152.1.105 with SMTP id 9mr4744271lal.3.1438564455254; Sun, 02 Aug 2015 18:14:15 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.104 with SMTP id u8ls525265lae.31.gmail; Sun, 02 Aug 2015 18:14:15 -0700 (PDT) X-Received: by 10.112.55.33 with SMTP id o1mr6770105lbp.96.1438564455110; Sun, 02 Aug 2015 18:14:15 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id ac10si10619597lbc.134.2015.08.02.18.14.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Aug 2015 18:14:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by labow3 with SMTP id ow3so6443524lab.1 for ; Sun, 02 Aug 2015 18:14:14 -0700 (PDT) X-Received: by 10.152.4.163 with SMTP id l3mr14589953lal.35.1438564454316; Sun, 02 Aug 2015 18:14:14 -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.7.198 with SMTP id l6csp1596825lba; Sun, 2 Aug 2015 18:14:13 -0700 (PDT) X-Received: by 10.69.1.102 with SMTP id bf6mr18674343pbd.17.1438564452724; Sun, 02 Aug 2015 18:14:12 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id aj7si10014787pbd.210.2015.08.02.18.14.11; Sun, 02 Aug 2015 18:14:12 -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 S1751925AbbHCBOK (ORCPT + 8 others); Sun, 2 Aug 2015 21:14:10 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:33243 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751673AbbHCBOH (ORCPT ); Sun, 2 Aug 2015 21:14:07 -0400 Received: by padck2 with SMTP id ck2so76250644pad.0 for ; Sun, 02 Aug 2015 18:14:06 -0700 (PDT) X-Received: by 10.69.2.34 with SMTP id bl2mr18374871pbd.165.1438564446636; Sun, 02 Aug 2015 18:14:06 -0700 (PDT) Received: from localhost.localdomain ([180.150.157.4]) by smtp.gmail.com with ESMTPSA id he7sm5839938pbc.63.2015.08.02.18.14.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 02 Aug 2015 18:14:05 -0700 (PDT) From: Leo Yan To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Jassi Brar , Wei Xu , Bintian Wang , Haojian Zhuang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guodong Xu , Jian Zhang , Zhenwei Wang , Haoju Mo , Dan Zhao , kongfei@hisilicon.com, Guangyue Zeng Cc: Leo Yan Subject: [RFC PATCH 1/3] dt-bindings: mailbox: Document Hisilicon mailbox driver Date: Mon, 3 Aug 2015 09:13:08 +0800 Message-Id: <1438564390-28111-2-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438564390-28111-1-git-send-email-leo.yan@linaro.org> References: <1438564390-28111-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.51 as permitted sender) smtp.mail=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 mailbox driver. Signed-off-by: Leo Yan --- .../devicetree/bindings/mailbox/hisi-mailbox.txt | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/hisi-mailbox.txt diff --git a/Documentation/devicetree/bindings/mailbox/hisi-mailbox.txt b/Documentation/devicetree/bindings/mailbox/hisi-mailbox.txt new file mode 100644 index 0000000..898823d --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/hisi-mailbox.txt @@ -0,0 +1,57 @@ +Hisilicon Mailbox Driver +======================== + +The Hisilicon 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>; + };