From patchwork Mon Aug 18 17:08:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Bresticker X-Patchwork-Id: 4738201 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3CBA2C0338 for ; Mon, 18 Aug 2014 17:13:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7161C20120 for ; Mon, 18 Aug 2014 17:13:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A7DCC2011D for ; Mon, 18 Aug 2014 17:13:30 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XJQQw-00031H-Du; Mon, 18 Aug 2014 17:09:26 +0000 Received: from mail-qa0-f74.google.com ([209.85.216.74]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XJQQQ-0002ZY-4k for linux-arm-kernel@lists.infradead.org; Mon, 18 Aug 2014 17:08:55 +0000 Received: by mail-qa0-f74.google.com with SMTP id j15so631908qaq.3 for ; Mon, 18 Aug 2014 10:08:29 -0700 (PDT) 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=UTXy0J4DzauXJApOBIrZ3bapOj7Ig3qyX9OVLdVTsO0=; b=RFSzENYXKa8JuM4pErH5iHwMu0X6X6gRxIWSxFiEeFL8SjaJLJQdtFwP+oAq1clYkn JpKrSg6oGDEIwWkTPDQYHlwEg69AUq7aU4rsXtgnX8PO52fpqZ71zecymXaYNqldyXNT +gveiMV74zAq2Vle4Q1x7WUANKK3KPo/NwC+C508jwCd1/AcUQqbvpNeG/n6D102UInO 3ixPQweT41S8u766wIVAk1aQi3R7Z3XH7EssQNJKMwLSEgVtwxam9/J88PvNuNu6K/wn x3vKTuk8oFsushqiWlaaMYNRtzLulHede1TzlkKO669tUtsQ59KgOKq0MeKtrny1VpU3 QCaw== X-Gm-Message-State: ALoCoQldrZH0vb6f9YzAJQodflfI7gIEP/xQ1sOSMv3wa0rjLkkeiz+qGBpxBAUB+KMfA/yeFUtD X-Received: by 10.52.29.72 with SMTP id i8mr4201371vdh.6.1408381709125; Mon, 18 Aug 2014 10:08:29 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id y50si68812yhk.4.2014.08.18.10.08.29 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Aug 2014 10:08:29 -0700 (PDT) Received: from abrestic.mtv.corp.google.com (abrestic.mtv.corp.google.com [172.22.65.70]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id E29E431C5AE; Mon, 18 Aug 2014 10:08:28 -0700 (PDT) Received: by abrestic.mtv.corp.google.com (Postfix, from userid 137652) id A4665220C35; Mon, 18 Aug 2014 10:08:28 -0700 (PDT) From: Andrew Bresticker To: Stephen Warren , Thierry Reding , linux-tegra@vger.kernel.org Subject: [PATCH v2 1/9] of: Add NVIDIA Tegra XUSB mailbox binding Date: Mon, 18 Aug 2014 10:08:17 -0700 Message-Id: <1408381705-3623-2-git-send-email-abrestic@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <1408381705-3623-1-git-send-email-abrestic@chromium.org> References: <1408381705-3623-1-git-send-email-abrestic@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140818_100854_311693_739DFBF4 X-CRM114-Status: GOOD ( 14.24 ) X-Spam-Score: -1.4 (-) Cc: Mark Rutland , devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Russell King , Mathias Nyman , Pawel Moll , Ian Campbell , Andrew Bresticker , Greg Kroah-Hartman , Linus Walleij , Jassi Brar , linux-kernel@vger.kernel.org, Kishon Vijay Abraham I , Rob Herring , Alan Stern , linux-arm-kernel@lists.infradead.org, Kumar Gala , Grant Likely , Arnd Bergmann X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add device-tree bindings for the Tegra XUSB mailbox which will be used for communication between the Tegra xHCI controller's firmware and the host processor. Signed-off-by: Andrew Bresticker --- Changes from v1: - Updated to use common mailbox bindings. --- .../bindings/mailbox/nvidia,tegra124-xusb-mbox.txt | 30 ++++++++++++++++++++++ include/dt-bindings/mailbox/tegra-xusb-mailbox.h | 7 +++++ 2 files changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/nvidia,tegra124-xusb-mbox.txt create mode 100644 include/dt-bindings/mailbox/tegra-xusb-mailbox.h diff --git a/Documentation/devicetree/bindings/mailbox/nvidia,tegra124-xusb-mbox.txt b/Documentation/devicetree/bindings/mailbox/nvidia,tegra124-xusb-mbox.txt new file mode 100644 index 0000000..c46219b --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/nvidia,tegra124-xusb-mbox.txt @@ -0,0 +1,30 @@ +NVIDIA Tegra XUSB mailbox +========================= + +The Tegra XUSB mailbox is used by the Tegra xHCI controller's firmware to +communicate requests to the host and PHY drivers. + +Required properties: +-------------------- + - compatible: Should be "nvidia,tegra124-xusb-mbox". + - reg: Address and length of the XUSB FPCI registers. + - interrupts: XUSB mailbox interrupt. + - #mbox-cells: Should be 1. The specifier is the index of the mailbox to + reference. See for the list + of valid values. + +Example: +-------- + mbox: mailbox@0,70098000 { + compatible = "nvidia,tegra124-xusb-mbox"; + reg = <0x0 0x70098000 0x0 0x1000>; + interrupts = ; + + #mbox-cells = <1>; + }; + + usb@0,70090000 { + ... + mboxes = <&mbox TEGRA_XUSB_MBOX_CHAN_HOST>; + ... + }; diff --git a/include/dt-bindings/mailbox/tegra-xusb-mailbox.h b/include/dt-bindings/mailbox/tegra-xusb-mailbox.h new file mode 100644 index 0000000..59de6b0 --- /dev/null +++ b/include/dt-bindings/mailbox/tegra-xusb-mailbox.h @@ -0,0 +1,7 @@ +#ifndef _DT_BINDINGS_TEGRA_XUSB_MAILBOX_H +#define _DT_BINDINGS_TEGRA_XUSB_MAILBOX_H + +#define TEGRA_XUSB_MBOX_CHAN_HOST 0 +#define TEGRA_XUSB_MBOX_CHAN_PHY 1 + +#endif /* _DT_BINDINGS_TEGRA_XUSB_MAILBOX_H */