Message ID | 1495385079-3697-2-git-send-email-stefan.wahren@i2se.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 050EA6032C for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 21 May 2017 16:46:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED196285C9 for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 21 May 2017 16:46:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF4C02860B; Sun, 21 May 2017 16:46:25 +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=-1.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8674F285C9 for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 21 May 2017 16:46:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=15zBZkIYdHRe+bKmJTqP3CRdcUiKc+2vjtggxX+9jqM=; b=AFhONilGK1vQyTfgVy1zX8L9XR a3IigCfBenmWBpYz7kK8U6BtnUkBpWKIvJXlsGxKvKuS7yd0nNhvC5K6+FzWCDXBKzy8wUwez1Kya rm8kFrHMqlbB38wojypr2denzhy6Wn5OaaBB/7Xhi1tnDzTK8l1QKhl/FrJ9lUK6+ec1S/fuZrEi+ x+LKOe0TfKbEITTblyJ7i77RDW/LBgjqhpAlaG7PDcGBTu+GYOh+fxCnFsTojsvw8cj5aCYIASnC+ 2fAFnuTbGihWsrUwfh6+SMXJ+5wuTdrQ9pB6NfkhqpkfYLnwaYWLpnqn/ZxnUevRudD/DGNKdOU6+ ES5oCOLw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dCTzr-0003on-Fz; Sun, 21 May 2017 16:46:23 +0000 Received: from mout.kundenserver.de ([212.227.126.131]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dCTza-0003XG-Rf; Sun, 21 May 2017 16:46:09 +0000 Received: from localhost.localdomain ([95.90.210.50]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LuHH1-1dvgN71rfj-011grQ; Sun, 21 May 2017 18:45:34 +0200 From: Stefan Wahren <stefan.wahren@i2se.com> To: Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Eric Anholt <eric@anholt.net> Subject: [PATCH 1/4] ARM: dts: bcm283x: Add dtsi for OTG mode Date: Sun, 21 May 2017 18:44:36 +0200 Message-Id: <1495385079-3697-2-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495385079-3697-1-git-send-email-stefan.wahren@i2se.com> References: <1495385079-3697-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K0:vjIEzkoHDgtCHJ8g9M9NFjax/lldQ6TpNip2FBfUpxVyYIo3jtu FJ6rCc43k9JmXCKmSij3N0fzLGnRpP8wXwHqZq71+t9xjnsvxnxTctHjUwf2rnJbei0GI6u wvrVRAHtAbzNo2wbQU8IHmLHBUgvVarCMDXn0LdNUzdEV7G5bMmW5HPlo6VqBZFhO4wg4MC g6ZUDl5B4J6SOar1umgpw== X-UI-Out-Filterresults: notjunk:1; V01:K0:/XNNNq5OV2Y=:aa3b5BmnNfW2EGz6ERPfVr hb67/IXq2+ifRbW6YXvKxUIC8/z5J/6Ac0cTjGHYlvd7DeoLn1KSfiESMyVjeM0on9gJEph1a CladdPxRv7xb1j9c4/hE4DIV9iMdS7oXmbKmZ7nWs/pHdKchzK2n26QzLduOeoInTOKcCEhZo PP05Htn9hVXNV9eC/1l4K9UeIKqyc7bRHinHAtfsU2RxWKbDjcuMvQU2bKETz0vsBRm31WFwn S4RyOuU57MNuXVKwKsx3mZhYLoXs8mG9skNsswZ6yTVn/d3aqOznsiNWf1JUFhQkWESVl1o+1 xeJ+VyLWmPyl+iZNPYjX8RuAsbMYnpFq6I/4F+2h4ifAOfM0jSlfiChil3Wfoz0kOPvG59b3G t/WaF8z/+ehFFPZDxUuO8BpLYkbNrcN3/YXrpEuLXTPlDrjrG4KMy8OaDpUEhgq5i26nPNcnT THdHtLjOfeT0tdN9FGRmQ5IVo3P3XPxZDSVXEBtoCgYm1y6nG1AHe18/bJS6GVKAqXO9qmCXm gIDzWWUnCX4Jb0NnA8DxSWSVSvtvtTQGsIdeeIeUZrybgd9+RpB6sby37mQJWT0Dkst9iAXwG wKg4lARN17A+ppqNM9NTZ1Ltg1gXj1z76vKQYE76qo7G9RPhy3ROTmQ2kyeRJhnwDV+BWyvyb kvQFss92AUJw+1UpI/e5EnIwwrkEJo1M2XEiCzuVh9xVwJVXnN0hci2OD9VMy7xFL6UQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170521_094607_240550_CAFB0B0B X-CRM114-Status: GOOD ( 11.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Stefan Wahren <stefan.wahren@i2se.com>, devicetree@vger.kernel.org, Florian Fainelli <f.fainelli@gmail.com>, Phil Elwell <phil@raspberrypi.org>, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm/boot/dts/bcm283x-rpi-usb-otg.dtsi b/arch/arm/boot/dts/bcm283x-rpi-usb-otg.dtsi new file mode 100644 index 0000000..e7d217c --- /dev/null +++ b/arch/arm/boot/dts/bcm283x-rpi-usb-otg.dtsi @@ -0,0 +1,10 @@ +&usb { + dr_mode = "otg"; + g-rx-fifo-size = <256>; + g-np-tx-fifo-size = <32>; + /* + * According to dwc2 the sum of all device EP + * fifo sizes shouldn't exceed 3776 bytes. + */ + g-tx-fifo-size = <256 256 512 512 512 768 768>; +};
The Raspberry Pi Zero also supports OTG mode. So provide a dtsi file to configure the USB interface accordingly. The fifo sizes are optimized for device endpoint 6 and 7 with the maximum of 768. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> --- arch/arm/boot/dts/bcm283x-rpi-usb-otg.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 arch/arm/boot/dts/bcm283x-rpi-usb-otg.dtsi