From patchwork Tue May 29 09:00:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 137124 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3791962lji; Tue, 29 May 2018 02:01:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo1pDGkqP5GCpWiIEuBKy1464M/X8DgmL8vXGWarHm10Y5bAv9/MUP88YWBxbzibBPH2OZ9 X-Received: by 2002:a17:902:bccc:: with SMTP id o12-v6mr16865542pls.56.1527584471884; Tue, 29 May 2018 02:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527584471; cv=none; d=google.com; s=arc-20160816; b=HqrUmraG/EEYEeBRbZwjCJaHhOZjHHzgeBm6K3uBG6Kurw2uVCOusb496yRl4r/NRC iEugWGWqOwxlVvcI/C0LsKHjdXXVnjjKsvPjHRqp2Gz1G7cUzH6R0t6pqdTbsnoDg37R T7zYpyHdXudehA2sQIMeySGIt8wg/Y6cI0hUlLRDUr6P2ioUB0UifJ6WasR+gG0s/bHl KJsJ+ymm9/LuYo+fIiqOJFXfPuRee/x5exCQvMxKnbXce+37ksBaL3+lKwJWrVlWRtej VjUHVa3TCeMzqEy7a25XAjmDi1UPyqcqSif0ay4ZHq+8rNhuVYeMxB24U3202mYkxedw +JVw== 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=Wam3yPIHiTDfQwDNdbVsHcGzVM8q9Xx8zA+KVS1fM5g=; b=Cr83HQRliB2uD9zaL0AQ1xCkos1S/F44WZFkD8cnwwBT2iLHBZhs6MtZEbWlZ8iFki fIZsUNvdag4ypfX5oKr7E/NhRhE1wSzC3GlFpLEkNSH3c1MUjzaQjiD8V+mo2k0XiXW1 iA3/YuU5Dk+fvIODZ2aezaDwKQKHdmm7mzgI4nu9dSBKpLR/Qakz3VDdMyUoAOg6js/M dl7GljtYo273N0jffbO473kJOOeieuqT0CdElTRnejFB8yYD52zYvl4KYQk3di5p7Gju 3M7/MvsgB6cEVywMWEixfCPmagp2lrfUxQMaxu0BR0y1pPfRXyDC9JEwY8m+hMwEiW7f 4tlg== 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=vQibLB4A; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 j186-v6si25086157pgc.20.2018.05.29.02.01.11; Tue, 29 May 2018 02:01:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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=vQibLB4A; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 S932470AbeE2JBK (ORCPT + 5 others); Tue, 29 May 2018 05:01:10 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:16931 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932434AbeE2JBI (ORCPT ); Tue, 29 May 2018 05:01:08 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w4T916D6007660; Tue, 29 May 2018 04:01:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1527584466; bh=XparEuf+NqanLvTEejgb8P+s/zeeDsQVzPmiBO2WV6M=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=vQibLB4A/1U0h9sWr0b4elGLRTCbYGpVEQRqi3UYxmsePWE1SXgMaXP84psNNgn2G 5ioHrmma2gdLwy0oo39IX2qljm6F5soKphL8yHO6NDl29FdxEN/4tWiWV3Y8scl5DK dQa5scgMMfQ4WfPHI3jpe2MQ06fNAiJ8FKUHdDIA= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4T916mx004653; Tue, 29 May 2018 04:01:06 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE113.ent.ti.com (10.64.6.34) 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:05 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE105.ent.ti.com (10.64.6.26) 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:05 -0500 Received: from dlelxv97.itg.ti.com (dlelxv97.itg.ti.com [172.17.2.193]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4T9156B023423; Tue, 29 May 2018 04:01:05 -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 w4T90x5O008468; Tue, 29 May 2018 04:01:04 -0500 From: Roger Quadros To: CC: , , , Roger Quadros , "[4.16+]" Subject: [PATCH 2/5] ARM: dts: am57xx-idk: Enable dual role for USB2 port Date: Tue, 29 May 2018 12:00:55 +0300 Message-ID: <1527584458-6257-3-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: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Dual-role support was added in v4.12. We should be using it for USB2 port on the am57xx-idk. Cc: [4.16+] Reported-by: Bin Liu Signed-off-by: Roger Quadros --- arch/arm/boot/dts/am571x-idk.dts | 4 ---- arch/arm/boot/dts/am572x-idk-common.dtsi | 4 ---- arch/arm/boot/dts/am57xx-idk-common.dtsi | 7 ++++++- 3 files changed, 6 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 linux-omap" 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/am571x-idk.dts b/arch/arm/boot/dts/am571x-idk.dts index a255514..86301ae 100644 --- a/arch/arm/boot/dts/am571x-idk.dts +++ b/arch/arm/boot/dts/am571x-idk.dts @@ -65,10 +65,6 @@ }; }; -&omap_dwc3_2 { - extcon = <&extcon_usb2>; -}; - &extcon_usb2 { id-gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>; vbus-gpio = <&gpio7 22 GPIO_ACTIVE_HIGH>; diff --git a/arch/arm/boot/dts/am572x-idk-common.dtsi b/arch/arm/boot/dts/am572x-idk-common.dtsi index c6d858b..784639d 100644 --- a/arch/arm/boot/dts/am572x-idk-common.dtsi +++ b/arch/arm/boot/dts/am572x-idk-common.dtsi @@ -57,10 +57,6 @@ }; }; -&omap_dwc3_2 { - extcon = <&extcon_usb2>; -}; - &extcon_usb2 { id-gpio = <&gpio3 16 GPIO_ACTIVE_HIGH>; vbus-gpio = <&gpio3 26 GPIO_ACTIVE_HIGH>; diff --git a/arch/arm/boot/dts/am57xx-idk-common.dtsi b/arch/arm/boot/dts/am57xx-idk-common.dtsi index 43cdf52..697cd1a 100644 --- a/arch/arm/boot/dts/am57xx-idk-common.dtsi +++ b/arch/arm/boot/dts/am57xx-idk-common.dtsi @@ -406,8 +406,13 @@ dr_mode = "host"; }; +&omap_dwc3_2 { + extcon = <&extcon_usb2>; +}; + &usb2 { - dr_mode = "peripheral"; + extcon = <&extcon_usb2>; + dr_mode = "otg"; }; &mmc1 {