From patchwork Tue Jan 21 16:13:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Grinberg X-Patchwork-Id: 3519061 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 163A2C02DC for ; Tue, 21 Jan 2014 16:55:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 707A82015D for ; Tue, 21 Jan 2014 16:55:46 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 A72AB20122 for ; Tue, 21 Jan 2014 16:55:41 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W5ebw-0007qs-TV; Tue, 21 Jan 2014 16:55:37 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W5dyb-0002JH-MK; Tue, 21 Jan 2014 16:14:57 +0000 Received: from softlayer.compulab.co.il ([50.23.254.55] helo=compulab.co.il) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W5dy0-0002GJ-EP for linux-arm-kernel@lists.infradead.org; Tue, 21 Jan 2014 16:14:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=compulab.co.il; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=6NyiKvZ59AWInV9i7YJYn3K9PgSIqOjN0Er2zIRpMjk=; b=prjrZCnZG1ZwENhnfNujwMiHjH5Sae9lw1uWG7fYFbm5XtcQvufQYiGff2InqIPQHxrO/vSjuLO881JE+YvX+Mtqkac3lYVaEa5s5YuZla/1SnfDPIhx+/g03OomcgoJwWyQSAYT5BXIy+okNKDKpYslg2UwAvnX9GbQVE5LIx0=; Received: from [82.166.188.245] (port=62983 helo=zimbra-mta.compulab.co.il) by softlayer.compulab.co.il with esmtp (Exim 4.80.1) (envelope-from ) id 1W5dxa-0001j8-Vz; Tue, 21 Jan 2014 18:13:55 +0200 Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id 3FE4B644192; Tue, 21 Jan 2014 18:13:54 +0200 (IST) X-Virus-Scanned: amavisd-new at compulab.co.il Received: from zimbra-mta.compulab.co.il ([127.0.0.1]) by localhost (zimbra-mta.compulab.co.il [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vOEdL0nDmRvR; Tue, 21 Jan 2014 18:13:53 +0200 (IST) Received: from compulab.co.il (grinberg-pc.compulab.local [10.1.1.13]) by zimbra-mta.compulab.co.il (Postfix) with SMTP id 096B0644199; Tue, 21 Jan 2014 18:13:53 +0200 (IST) Received: (nullmailer pid 25146 invoked by uid 1000); Tue, 21 Jan 2014 16:13:41 -0000 From: Igor Grinberg To: Shawn Guo Subject: [PATCH 3/4] ARM: dts: cm-fx6: add support for USB OTG Date: Tue, 21 Jan 2014 18:13:31 +0200 Message-Id: <1390320812-25100-4-git-send-email-grinberg@compulab.co.il> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1390320812-25100-1-git-send-email-grinberg@compulab.co.il> References: <1390320812-25100-1-git-send-email-grinberg@compulab.co.il> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - softlayer.compulab.co.il X-AntiAbuse: Original Domain - lists.infradead.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - compulab.co.il X-Get-Message-Sender-Via: softlayer.compulab.co.il: acl_c_relayhosts_text_entry: grinberg@compulab.co.il|compulab.co.il X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140121_111420_657284_F03D2714 X-CRM114-Status: UNSURE ( 8.09 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) Cc: Mark Rutland , devicetree@vger.kernel.org, Pawel Moll , Ian Campbell , Rob Herring , Igor Grinberg , Sascha Hauer , Kumar Gala , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,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 Setup pin control, vbus regulator and the usb otg node to enable the USB OTG support. Signed-off-by: Igor Grinberg --- arch/arm/boot/dts/imx6q-cm-fx6.dts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/imx6q-cm-fx6.dts b/arch/arm/boot/dts/imx6q-cm-fx6.dts index 07f90a5..039a155 100644 --- a/arch/arm/boot/dts/imx6q-cm-fx6.dts +++ b/arch/arm/boot/dts/imx6q-cm-fx6.dts @@ -32,7 +32,21 @@ }; }; + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + reg_usb_otg_vbus: regulator@0 { + compatible = "regulator-fixed"; + reg = <0>; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio3 22 0>; + enable-active-high; + }; + }; }; &iomuxc { @@ -48,6 +62,10 @@ pinctrl_uart4: uart4grp { fsl,pins = ; }; + + pinctrl_usbotg: usbotggrp { + fsl,pins = ; + }; }; }; @@ -73,3 +91,11 @@ &sata { status = "okay"; }; + +&usbotg { + vbus-supply = <®_usb_otg_vbus>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbotg>; + dr_mode = "otg"; + status = "okay"; +};