From patchwork Mon Oct 12 16:32:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 54800 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id 8EE1622DB6 for ; Mon, 12 Oct 2015 16:32:55 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf62010795wic.3 for ; Mon, 12 Oct 2015 09:32:54 -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: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=XK9byEfRYHXjKLi9nC2wg9OiA7q8yTBqdLBn/a22dSN2DaBrfetnHOoUK6mgG3nGoM mq7TY1v178Ss1jBwgNjNfDQPxx+wrMbtOiZYgvxRrritmGsSOvRRzOqT1zGeJKR1SJNI 6+PwGf0THAMFDHlZqQlUyN0zX9YJgsMPPpxPXvjSwdWHlcMhFQozrYhJ7QFYefBx5IGi 6PCrIoUQM7uYbdBCSheR8B/7P986pm2KUgyl2k9sCVCa0WKr5AGNrqENRD5ehwVKtack V1Q6OTFnIDkhwDCRwftZHNQj9Iw2PJq0jzmJLDARSFImy7OHHcvL2SIS4Q/83FcxqAZ2 1W/Q== X-Gm-Message-State: ALoCoQnGD8DzF+0dXbyKdZE0LwqPlZYJ7T+V+CT2yO/Pqo51tyFvFAtSIfNfaKstvM98RjuanM8u X-Received: by 10.112.12.132 with SMTP id y4mr5825692lbb.0.1444667574880; Mon, 12 Oct 2015 09:32:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.87.139 with SMTP id l133ls515231lfb.34.gmail; Mon, 12 Oct 2015 09:32:54 -0700 (PDT) X-Received: by 10.25.143.146 with SMTP id r140mr1503766lfd.14.1444667574709; Mon, 12 Oct 2015 09:32:54 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id az8si11753068lbc.148.2015.10.12.09.32.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Oct 2015 09:32:54 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbbk10 with SMTP id k10so36362770lbb.0 for ; Mon, 12 Oct 2015 09:32:54 -0700 (PDT) X-Received: by 10.112.146.104 with SMTP id tb8mr13143791lbb.35.1444667574541; Mon, 12 Oct 2015 09:32:54 -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 w3csp1643223lbq; Mon, 12 Oct 2015 09:32:53 -0700 (PDT) X-Received: by 10.66.132.37 with SMTP id or5mr34927377pab.5.1444667573482; Mon, 12 Oct 2015 09:32:53 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sn2si27190807pac.146.2015.10.12.09.32.53; Mon, 12 Oct 2015 09:32:53 -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 S1752522AbbJLQct (ORCPT + 30 others); Mon, 12 Oct 2015 12:32:49 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:36223 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751663AbbJLQcq (ORCPT ); Mon, 12 Oct 2015 12:32:46 -0400 Received: by wicgb1 with SMTP id gb1so156001829wic.1 for ; Mon, 12 Oct 2015 09:32:45 -0700 (PDT) X-Received: by 10.180.198.109 with SMTP id jb13mr15767257wic.17.1444667565081; Mon, 12 Oct 2015 09:32:45 -0700 (PDT) Received: from localhost.localdomain ([78.110.172.67]) by smtp.gmail.com with ESMTPSA id he3sm20749198wjc.48.2015.10.12.09.32.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Oct 2015 09:32:44 -0700 (PDT) From: Leo Yan To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Jassi Brar , Leo Yan , Bintian Wang , Yiping Xu , Haojian Zhuang , Wei Xu , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 1/4] dt-bindings: mailbox: Document Hi6220 mailbox driver Date: Tue, 13 Oct 2015 00:32:12 +0800 Message-Id: <1444667535-16948-2-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1444667535-16948-1-git-send-email-leo.yan@linaro.org> References: <1444667535-16948-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.217.178 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>; + };