From patchwork Tue Jun 21 10:02:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9190115 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 85DD0601C0 for ; Tue, 21 Jun 2016 10:04:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 749F727FAD for ; Tue, 21 Jun 2016 10:04:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 692D72807B; Tue, 21 Jun 2016 10:04:12 +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 2360927FAD for ; Tue, 21 Jun 2016 10:04:09 +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 1bFIXN-0002ah-KD; Tue, 21 Jun 2016 10:04:05 +0000 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bFIWq-0001yY-O7 for linux-amlogic@lists.infradead.org; Tue, 21 Jun 2016 10:03:34 +0000 Received: by mail-lf0-x22e.google.com with SMTP id f6so15651888lfg.0 for ; Tue, 21 Jun 2016 03:03:12 -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=9pq9Lj48Es4B1b5v8Z4EUCuKAqKbtQ4cVBVu6p7MZ0Y=; b=RAgTH/CjKHSm/PY5gZw8qgxjPySJHfXTj+TPaGmKmRXWYkG5yi5QidGvKHcHhcZOtI +Y/Xsn/zRnEMYIpltiY4ZdwOvrYPuMtxd0hQStlb/bppbiyS8FjhSESgMd55gHM+O5fB V3bQ8/CdOd1sIAmX8w8MCwufoE58bpmruUqLrQspwmBetzz3Dt/Z6dFfcHztc+GO8ULA i9pgHS0dQo72A9lof5eqZQD/fxhKMQ/ZRbOeFDzk7mHJBc0xwA1k50jxFWtJlfVqREer AULtnw44s3MqbdHSU9WIwuZmYJ9RxnDdboWLOfLiLUvEWxh3gBNKhZCKO+EufNKfsTe6 YhJg== 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=9pq9Lj48Es4B1b5v8Z4EUCuKAqKbtQ4cVBVu6p7MZ0Y=; b=ZXl6nnHdvVJtnCS6dIkj6DThubn1JoCOosyX89iARoWwyokP3eAM6xQOOY6L0EJM0y d6FK7+JTXBri0m3psVMXjud801EVkBdvVSFvemr0wL2btZQqoxA4BGNAdIHHae+XXPjP 77Q/F/0OLzdIBPN0fAKrNNAQr3wrW6ydlAWdUD5B9HxWPKTN5jpYSXS15Ni4PiN1fAN5 63EgpSRmIlWzSKk6bJ5UdRWiG3pdsJN017fFObRbvC9nzH6YZ5zUay5WlKtfO8Wk5yZS OYwt9aKVwWCmMV4eVkkCHtgtl4NbCzQJ6r51wE7OYNWAXwCAgCJ1wG0slBQIPkaL0310 ksFw== X-Gm-Message-State: ALyK8tLe7cafTEd5ZncjYHnpioqNytzQ0mDAvvzk1Vjd0RrKZ1ASIqXoNj7TghxY9ErfKtQ3 X-Received: by 10.28.26.67 with SMTP id a64mr2394622wma.70.1466503390057; Tue, 21 Jun 2016 03:03:10 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id q69sm2184821wmd.4.2016.06.21.03.03.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Jun 2016 03:03:09 -0700 (PDT) From: Neil Armstrong To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, sudeep.holla@arm.com Subject: [RFC PATCH v2 2/9] dt-bindings: mailbox: Add Amlogic Meson MHU Bindings Date: Tue, 21 Jun 2016 12:02:47 +0200 Message-Id: <1466503374-28841-3-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466503374-28841-1-git-send-email-narmstrong@baylibre.com> References: <1466503374-28841-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160621_030333_070423_EB9AF540 X-CRM114-Status: GOOD ( 11.09 ) 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: heiko@sntech.de, Neil Armstrong , frank.wang@rock-chips.com, khilman@baylibre.com, linux-amlogic@lists.infradead.org, wxt@rock-chips.com 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 Signed-off-by: Neil Armstrong --- .../devicetree/bindings/mailbox/meson-mhu.txt | 33 ++++++++++++++++++++++ 1 file changed, 33 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..4a80b44 --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/meson-mhu.txt @@ -0,0 +1,33 @@ +Amlogic Meson MHU Mailbox Driver +================================ + +The Amlogic's Meson SoCs Message-Handling-Unit (MHU) is a mailbox controller +that has 2 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@c883c400 { + #mbox-cells = <1>; + compatible = "amlogic,meson-gxbb-mhu"; + reg = <0 0xc883c400 0 0x4c>; + interrupts = <0 209 IRQ_TYPE_EDGE_RISING>, + <0 210 IRQ_TYPE_EDGE_RISING>; + #mbox-cells = <1>; + };