Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1477113img; Tue, 19 Mar 2019 08:26:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYgecoeaIEuLEKfzkaVObWwtEeYg/4ODkIjzfHBCyhqDWKzl71yExo8XT1cFzs0brmc/oc X-Received: by 2002:a63:1d03:: with SMTP id d3mr2611042pgd.42.1553009219402; Tue, 19 Mar 2019 08:26:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553009219; cv=none; d=google.com; s=arc-20160816; b=PTA+VEEABZWYPuGnS8GWOEhtzJTo5JPJEHrLpKw4IUhGf2neQy7qBUdb8esoukf8Ka JpWoCNYYi/AwIJe2GzQUzwLTq1W2uWpOKe1k+VoRku/TOCpCgH11iRS4z+eyg2xCUv6k z0B4iw2/L1ouvQHgaZ9WYo6EZLab3zYyIcssbUUmTZDdjcAUqU0ssXRM01P7lLzkWUod h2pOuI2J3kjxeFfImXNg8x1NXExXqeJCjludTR8BgSdBdx/fioDPjUgdOwIEyBtFq63l BWZzEQaRfGuEHWz28kt60BAMO1Ww0plDqwYgE7ZDxM4Qv8T3l5uyIkyibiIX62DE/+iH 2eRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=x5FyuFaVWsdXrG6Ue9Tz6SFboYKBHRGpvJaLEiDC/hQ=; b=PwZVr++ZgZNMvUqsMg+T+jhzgEvvzd7pC3wurHFL1XaxNeYDd+pe8+b4gz/ZoseGXh bWKBzaR79tMcmD2A12l5GG01wMSvalhb3F42XwG+E8aCjnXllj4ypcTXa3UldlQUfZ98 aOAqBld+H9l6RkKwMScayIq2qOATy6vuOEahIo50RXTDqhbSBKQYd5dE1IySsbuW+l+n 1wpt9YaqQQFrxT87VG9kUZ/QTEh7iCyPysbcRS8WV10P05NtsRETberNQ1A2R/iYpnEA yc8JqzkuuQKQ145PyEU/ak53wQAuLE9DvhupRYJbaIGJ6ieSVe1c3EHpiT8fL7VG+sr5 ra+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=VkzgUTj8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u66si12559251pfu.54.2019.03.19.08.26.44; Tue, 19 Mar 2019 08:26:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=VkzgUTj8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727804AbfCSPZK (ORCPT + 99 others); Tue, 19 Mar 2019 11:25:10 -0400 Received: from mout.gmx.net ([212.227.15.15]:37021 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbfCSPZI (ORCPT ); Tue, 19 Mar 2019 11:25:08 -0400 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=20Neusch=C3=A4fer?= To: linux-arm-kernel@lists.infradead.org Cc: Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Thierry Reding , Manivannan Sadhasivam , Kevin Hilman , Heiko Stuebner , Jagan Teki , Martin Blumenstingl , Johan Hovold , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:0cHFUBU+V3xPJK5bnKVc39JMOGsAGPjkYMvryFj2TD6JJ5SrRjD LOBPVgYxuUz4Lqua5tbJ9efDYwNoniQDKI4IgeBiRXH/mGOAoXTmLv9XtvXByoSMLr54swN 2QLtWDz2OgesEadrVE7Vskk2ZhBYdThGDgGlk5HpkDitcZaX3Q/QJve67OVyHXWS/AL+gkk CThEoWQpMjPDZImOf+iYw== X-Spam-Flag: NO 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== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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=C3=A4fer =2D-- arch/arm/boot/dts/imx50-kobo-aura.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/imx50-kobo-aura.dts b/arch/arm/boot/dts/imx= 50-kobo-aura.dts index e778a677c752..d0dc20d99d99 100644 =2D-- 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 =3D < + MX50_PAD_ECSPI2_SS0__GPIO4_19 0x0 + >; + }; + pinctrl_i2c1: i2c1 { fsl,pins =3D < MX50_PAD_I2C1_SCL__I2C1_SCL 0x400001fd @@ -180,6 +186,18 @@ status =3D "okay"; }; +&usbotg { + status =3D "okay"; + phy_type =3D "utmi_wide"; + dr_mode =3D "peripheral"; +}; + +&usbphy0 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_usbphy>; + vbus-detect-gpio =3D <&gpio4 19 GPIO_ACTIVE_LOW>; +}; + &i2c1 { pinctrl-names =3D "default"; pinctrl-0 =3D <&pinctrl_i2c1>; =2D- 2.20.1