From patchwork Tue May 29 09:00:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 137126 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3792150lji; Tue, 29 May 2018 02:01:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpjsL5duFGz5vJOBoiSewKDtecjCdNXtO7/HJYntLTzIU5SZBm5CxVtA1ANV+uK0jNdMLjy X-Received: by 2002:a17:902:8a8c:: with SMTP id p12-v6mr16401070plo.94.1527584480433; Tue, 29 May 2018 02:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527584480; cv=none; d=google.com; s=arc-20160816; b=i7to8SPDwKJXNhD5PZTiOqh1YZGAU8S+4qGhdtkQ9mTMFrEwwONpKQyF+AcDQSrfzy luNynVBtXADJ4mIxRtYJDHBPquxLSRh599jUSGIJBlUa7wDZwd1xPtjtk9z0Omhl1HIa DVfNJKk5gaQl9A4KCRAHlmRxGIBXQlQsDqZFUdb6TRncp/mtV62CrbPiMAP3X4EW8B1C gwN7AoEYjhyUwTHOEs1y9hZErYpZdUPCVy1kdhuVIdbSWI6dR6bXiEFHZHbwzaUpvqkR It/ON/jZ7xvIWs3M5DysyShqNOhf8nLsQ5blvOpDpvYf51mtdapm4brynRSR07KMsNsr fUmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=raRSLOAMELb80riftFtBosOg4yoP10tpRiy0WPRduJM=; b=z2sIzMtFpXYifMD7sv0tBVwOblI9/n19M4rRqUqAZt07FTkSC+q3AhvyVbdDibuIX1 GLV93v6RPy19BUniUZtVfmZRBpEMTjlZWOneYrBfq3TXkXfkoXRD0GFw9Oh9JbW7gvNO pYCNN1IDGNmzLAv26hEV0mtPuZm2Sz518bgjpPvfcJwMZEyvn5YkGbBCbFUZcpUWMMCN 7yU/yuI2EDhIiOwz9CRxhtwNUK9g4VRJdAGeqbDLcDeRZftFKhMBKnPQ5Gbnzs2glbVC Pgp/fEbhhZmpP7vu+t94sA1Na3fmYw0aTGflSqggRPoBIiuMP04y2Aal3k/U3gZZQYku mVPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=zN0sfuiO; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w189-v6si11612264pgb.431.2018.05.29.02.01.19; Tue, 29 May 2018 02:01:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=zN0sfuiO; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932577AbeE2JBR (ORCPT + 5 others); Tue, 29 May 2018 05:01:17 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:40313 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932449AbeE2JBJ (ORCPT ); Tue, 29 May 2018 05:01:09 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w4T9176g009182; Tue, 29 May 2018 04:01:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1527584467; bh=fVlf05L8ugeStxFLfQXAnd872L/Sci7/X/p0ubbKgVM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=zN0sfuiOviqVXz0769VVg88Y9yLm4Om7nIkC9Td7j6oQ4odZBmdLE1TvnalYZndSs cAAlN+NRBrL5ODroLU3c33Xu1RfeKrihggHuAkcUYxGNzPFm9tfp2Bb7QRszNuUBpU ez2bb1MczLbV8g7Y4hc3kJyO3908/VRRAb1or3/I= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4T917XS032474; Tue, 29 May 2018 04:01:07 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 29 May 2018 04:01:07 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 29 May 2018 04:01:07 -0500 Received: from dlelxv97.itg.ti.com (dlelxv97.itg.ti.com [172.17.2.193]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4T917ON017290; Tue, 29 May 2018 04:01:07 -0500 Received: from lta0400828d.ti.com (vboxa0400828d.emea.dhcp.ti.com [172.22.238.29]) by dlelxv97.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4T90x5P008468; Tue, 29 May 2018 04:01:06 -0500 From: Roger Quadros To: CC: , , , Roger Quadros Subject: [PATCH 3/5] ARM: dts: dra7-evm: Add extcon to USB2 port Date: Tue, 29 May 2018 12:00:56 +0300 Message-ID: <1527584458-6257-4-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1527584458-6257-1-git-send-email-rogerq@ti.com> References: <1527584458-6257-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Both ports on the dra7-evm and related boards can be used as dual-role ports. Although we don't enable dual-role mode for USB2 port let's add the necessary extcon bits to it. Move the common portion of extcon_usb2 into dra7-evm-common.dtsi Signed-off-by: Roger Quadros --- arch/arm/boot/dts/dra7-evm-common.dtsi | 10 ++++++++++ arch/arm/boot/dts/dra7-evm.dts | 9 --------- arch/arm/boot/dts/dra72-evm-common.dtsi | 1 + 3 files changed, 11 insertions(+), 9 deletions(-) -- cheers, -roger Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/dra7-evm-common.dtsi b/arch/arm/boot/dts/dra7-evm-common.dtsi index 05a7b1a..425431f 100644 --- a/arch/arm/boot/dts/dra7-evm-common.dtsi +++ b/arch/arm/boot/dts/dra7-evm-common.dtsi @@ -20,6 +20,11 @@ id-gpio = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>; }; + extcon_usb2: extcon_usb2 { + compatible = "linux,extcon-usb-gpio"; + id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>; + }; + sound0: sound0 { compatible = "simple-audio-card"; simple-audio-card,name = "DRA7xx-EVM"; @@ -198,8 +203,13 @@ extcon = <&extcon_usb1>; }; +&omap_dwc3_2 { + extcon = <&extcon_usb2>; +}; + &usb2 { dr_mode = "host"; + extcon = <&extcon_usb2>; }; &atl { diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts index f1425b0..272ac773 100644 --- a/arch/arm/boot/dts/dra7-evm.dts +++ b/arch/arm/boot/dts/dra7-evm.dts @@ -54,11 +54,6 @@ regulator-max-microvolt = <1800000>; }; - extcon_usb2: extcon_usb2 { - compatible = "linux,extcon-usb-gpio"; - id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>; - }; - vtt_fixed: fixedregulator-vtt { compatible = "regulator-fixed"; regulator-name = "vtt_fixed"; @@ -338,10 +333,6 @@ vdd-supply = <&smps123_reg>; }; -&omap_dwc3_2 { - extcon = <&extcon_usb2>; -}; - &elm { status = "okay"; }; diff --git a/arch/arm/boot/dts/dra72-evm-common.dtsi b/arch/arm/boot/dts/dra72-evm-common.dtsi index e85f560..f2c0777 100644 --- a/arch/arm/boot/dts/dra72-evm-common.dtsi +++ b/arch/arm/boot/dts/dra72-evm-common.dtsi @@ -399,6 +399,7 @@ &usb2 { dr_mode = "host"; + extcon = <&extcon_usb2>; }; &mmc1 {