From patchwork Thu Aug 18 10:10:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9287331 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BF72D600CB for ; Thu, 18 Aug 2016 10:25:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ADF4729099 for ; Thu, 18 Aug 2016 10:25:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 97C57290C3; Thu, 18 Aug 2016 10:25:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4EBF02909E for ; Thu, 18 Aug 2016 10:25:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1baKW9-00042i-8s; Thu, 18 Aug 2016 10:25:45 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1baKVl-0002Da-2g for linux-amlogic@bombadil.infradead.org; Thu, 18 Aug 2016 10:25:21 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by casper.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1baKHp-00026s-Gz for linux-amlogic@lists.infradead.org; Thu, 18 Aug 2016 10:10:58 +0000 Received: by mail-wm0-x231.google.com with SMTP id o80so24551883wme.1 for ; Thu, 18 Aug 2016 03:10:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tWWofrzBElWZgrQhQaEc4fzZzNZbjuCuu5Sv37Jw0/A=; b=RLZS4LqyS4WLr5JeybktFWA2VFMCtU4P+GVrGHx42YFgDndvsINtXeLIfs6KXx7Z7/ 0FW1Nm6cjw8svHEsDJMycq3DkoOwi0ori1NMMfzOi8GlLWCy1MO8Rz883DiJHmQvAy2A Ylw+we9qLMo3gcbFpdzhxp5k2/t11W3Q9575YoGM64lLEr/hIDAsIDuHt+iWIvX8sZP3 D/OF2ijBgg0ma22Eym99LksPwqM2hGfky/JrTlEz9ojzeuurUmhm4oxCApUnIEi3mXzq iXOIy55/SetN8EBB5L4kaxa/11byZlZYYuCfS7roJZR0bbDq0PZTjRdOLNJckyN2rRXb glOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tWWofrzBElWZgrQhQaEc4fzZzNZbjuCuu5Sv37Jw0/A=; b=ZjZQO78ArajfIm/CoA14qIk1f1DF+noZu0AWCgTWUVANplCvI3a92vTrMi3ESe4Iy9 UPseadtnZ3DwewKUCP2YXiG2VjmR1imVoCKsZWX48InhK2WvWWszar3zidy/8PgDyqy7 NpUBHSgWCRx4uBhg+wBQA6sirYpYGjNfkV5KmJq1n5jeZJjRmN+L/XrWBUH6PA8Q1uMh pspMoR01iRMPnnrTRWrl0IISLIDItqprhPQh1Hfl65Ce95PZ4SwIuTMZZjQSZkzZ4PfY gSmH2AFhAU2UCeWRjT2XFmLYsLJDbZ5M4ly8Cg2dePfBr86sW11zmKyNsJjxQV1zTVoH hSRg== X-Gm-Message-State: AEkoouvgd/FWTWcHoqCa2fMKGUijsvOBQLGKgc+8kOgtKAfG8dhb1JEfPxWyEBWWMuf47Rh4 X-Received: by 10.28.157.148 with SMTP id g142mr1902107wme.2.1471515035686; Thu, 18 Aug 2016 03:10:35 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id i1sm1514126wjl.9.2016.08.18.03.10.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Aug 2016 03:10:35 -0700 (PDT) From: Neil Armstrong To: linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, jassisinghbrar@gmail.com, devicetree@vger.kernel.org Subject: [PATCH v2 2/3] dt-bindings: mailbox: Add Amlogic Meson MHU Bindings Date: Thu, 18 Aug 2016 12:10:26 +0200 Message-Id: <1471515027-3543-3-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1471515027-3543-1-git-send-email-narmstrong@baylibre.com> References: <1471515027-3543-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160818_111057_613676_401A06F3 X-CRM114-Status: GOOD ( 14.17 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Acked-by: Rob Herring Signed-off-by: Neil Armstrong --- .../devicetree/bindings/mailbox/meson-mhu.txt | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/meson-mhu.txt diff --git a/Documentation/devicetree/bindings/mailbox/meson-mhu.txt b/Documentation/devicetree/bindings/mailbox/meson-mhu.txt new file mode 100644 index 0000000..a530310 --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/meson-mhu.txt @@ -0,0 +1,34 @@ +Amlogic Meson MHU Mailbox Driver +================================ + +The Amlogic's Meson SoCs Message-Handling-Unit (MHU) is a mailbox controller +that has 3 independent channels/links to communicate with remote processor(s). +MHU links are hardwired on a platform. A link raises interrupt for any +received data. However, there is no specified way of knowing if the sent +data has been read by the remote. This driver assumes the sender polls +STAT register and the remote clears it after having read the data. + +Mailbox Device Node: +==================== + +Required properties: +-------------------- +- compatible: Shall be "amlogic,meson-gxbb-mhu" +- reg: Contains the mailbox register address range (base + address and length) +- #mbox-cells Shall be 1 - the index of the channel needed. +- interrupts: Contains the interrupt information corresponding to + each of the 2 links of MHU. + +Example: +-------- + + mailbox: mailbox@c883c404 { + #mbox-cells = <1>; + compatible = "amlogic,meson-gxbb-mhu"; + reg = <0 0xc883c404 0 0x4c>; + interrupts = <0 208 IRQ_TYPE_EDGE_RISING>, + <0 209 IRQ_TYPE_EDGE_RISING>, + <0 210 IRQ_TYPE_EDGE_RISING>; + #mbox-cells = <1>; + };