From patchwork Tue Mar 19 15:24:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 10859785 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1F2876C2 for ; Tue, 19 Mar 2019 15:25:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 050A8286FF for ; Tue, 19 Mar 2019 15:25:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ECA9829759; Tue, 19 Mar 2019 15:25:35 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 A4D86286FF for ; Tue, 19 Mar 2019 15:25:35 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=rdVyYkHILuEet5JQy/QM88/fST3VH2kbvEGBiN80MZg=; b=PPqWyQdr/FBWgp 47CYUgzI+4jWQMfdi0Gc5KqK9PLjSxn52RuRsArz4Ya811UnNWm8SL5GoYUjsaT7hnP8MM49qCt2q Pb2VkAGWfnk3yvR4m5hYvafD6FHUffacRuCXaEbPgXtQGusyXbm2xuxYXyH3c8UxTYixIKOsJIKOS EwavOEgwtdKXnoKkwuDUP1tCG5MtueMjpHe2amXDKCgO553HkIdwv5HKMa3OwVZajMZxg3R3gtb8O yqbZAbOw8MuaNgRlSrd3m1COamKuwA1Z8qtg3hal/sZZhWLS3NMf2p2/puR5N6iQfuL+gC03RHG8B XF/RgWEdWwjliPF+T1Pw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6GcO-0003ID-EA; Tue, 19 Mar 2019 15:25:32 +0000 Received: from mout.gmx.net ([212.227.15.15]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6Gbn-0001PR-CO for linux-arm-kernel@lists.infradead.org; Tue, 19 Mar 2019 15:25:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1553009086; bh=nb0C5rRkoVkrLbGI/+Uko6W3kPIm+SmqJ2g43abCtI0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=VkzgUTj83MDC+s2Nhdqo6W77DWmaPWD5TqSbSSreKkUC9UtHRts2mZe3+9gZz/11E gVb9SXGAH+6Qys5nsnj3cbQrpLBfxJs56L0eNxuv7k60nF3NCyYyuOVScM7Takb7s6 M81qqED/n/GwDXIN8LmtFVTpa/YVEg/jD9xdGB58= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([109.90.232.48]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LkPBT-1gZfoD0qRn-00cO70; Tue, 19 Mar 2019 16:24:46 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/5] ARM: dts: imx50-kobo-aura: Enable USB support Date: Tue, 19 Mar 2019 16:24:19 +0100 Message-Id: <20190319152421.16179-5-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190319152421.16179-1-j.neuschaefer@gmx.net> References: <20190319152421.16179-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:0cHFUBU+V3xPJK5bnKVc39JMOGsAGPjkYMvryFj2TD6JJ5SrRjD LOBPVgYxuUz4Lqua5tbJ9efDYwNoniQDKI4IgeBiRXH/mGOAoXTmLv9XtvXByoSMLr54swN 2QLtWDz2OgesEadrVE7Vskk2ZhBYdThGDgGlk5HpkDitcZaX3Q/QJve67OVyHXWS/AL+gkk CThEoWQpMjPDZImOf+iYw== X-UI-Out-Filterresults: notjunk:1;V03:K0:tsxlXrPyxcQ=:kTpSYAJVJGymsLWQxjoovE AxUfZ+FANXjd63QbUwJ85xbMvKb7TVmM+zWagk9pznKXXos4BJanefZwj27P1Hj9wDyetK4ia HT4Vd+twnPk9EBuEhWw7frRMpaDhKL/8JZD2DzHS+6Bc1RgP7wr2K5iOh3/ba9JJQlcOChNfg pWuKgiMW1OSRr4tCHwh8vfMy6erYIIe0zksPWS8i4ftRvfw6Bj24PtsoJwhbg+KVXWmuR5qQo 93KtCP1iTGbAxm1gHN29kojg6vlYyYBliVG9nYn0zsKITHVrQPXUOlOtK8lCNLGHGcEloQS8G dOpV7K9zq/O4Xdlt5wkW+bq8aC5+VFy9l/PMbrM6xXqGfgY2YJ3+e0JXq5qQp+jxAvyecVtLw VrslhEtBA9zuPtg3h5mk6w2tCSAACa6yg6/kJdcwA89xmlr0aN/w8oc2RBWshcRzxEKjZ6SMr mlXT4QOGltKN6wJTP82tYIA8hGPs0zGVZ/JCNVje6aQ+1+Fhkj3BkHuTjA+6mmy2J7Xc/kRbR d1+KsG7p4hDIeHSvh7f0JtaHxUGwoH4a+i0QgP0IrOWbO2JJLGqBIhP3rb0Wj2NLq9H4L+hQD whQQ0a7DBUwxhMCfKWu5i8RvBg3yfYBkwx2awc58/n+M04+ZmwqabXv63xcqBrSv0biUt4qWA SDKzXXSXyfFQG4BlMaKmmZNJN6HVDkDuMwG2lLwyQnBcJEzzKl27JMAiV6BTMkaVYVgRkYGP4 JuSkOdZ8ocY6MQSAy+uC4YbwrwRlJZF4Bp0s55R9U2XLE9ZL6hQs67h5u9QT9j72N3jVpkydP 9K4W9PNgZpFfXIe/1bHpmnluMuLAiH35C2+oqYX1Kt5zJsUjVf349xJFIw0CtU0cKKbhM0H5L Y5vGZQBdh6w5UoYYlXWj7XcxQqBH9vZSIFn6gP12cz+qI7ZC3F0Bbqq1mFD21wpmeA6fJGxGq PR7cL6YAQNQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190319_082456_143452_1BBEC9DE X-CRM114-Status: GOOD ( 10.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Heiko Stuebner , Martin Blumenstingl , Shawn Guo , Sascha Hauer , Johan Hovold , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Manivannan Sadhasivam , =?utf-8?q?Jonatha?= =?utf-8?q?n_Neusch=C3=A4fer?= , Thierry Reding , Fabio Estevam , Kevin Hilman , Jagan Teki Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Enable the USBOTG controller in device mode, and also enable the corresponding PHY. The presence of Vbus is detected via a GPIO. Signed-off-by: Jonathan Neuschäfer --- arch/arm/boot/dts/imx50-kobo-aura.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 2.20.1 diff --git a/arch/arm/boot/dts/imx50-kobo-aura.dts b/arch/arm/boot/dts/imx50-kobo-aura.dts index e778a677c752..d0dc20d99d99 100644 --- a/arch/arm/boot/dts/imx50-kobo-aura.dts +++ b/arch/arm/boot/dts/imx50-kobo-aura.dts @@ -87,6 +87,12 @@ >; }; + pinctrl_usbphy: usbphy { + fsl,pins = < + MX50_PAD_ECSPI2_SS0__GPIO4_19 0x0 + >; + }; + pinctrl_i2c1: i2c1 { fsl,pins = < MX50_PAD_I2C1_SCL__I2C1_SCL 0x400001fd @@ -180,6 +186,18 @@ status = "okay"; }; +&usbotg { + status = "okay"; + phy_type = "utmi_wide"; + dr_mode = "peripheral"; +}; + +&usbphy0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbphy>; + vbus-detect-gpio = <&gpio4 19 GPIO_ACTIVE_LOW>; +}; + &i2c1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c1>;