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 { From patchwork Tue May 29 09:00:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 137127 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3792639lji; Tue, 29 May 2018 02:01:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpMjkfkuBlCJRp3x1jrCw7CE8O8hlZlPPNRnEoTzprd3iOdoosfao2zJW/n0WMdBWsweBLp X-Received: by 2002:a63:41c4:: with SMTP id o187-v6mr12768343pga.7.1527584502212; Tue, 29 May 2018 02:01:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527584502; cv=none; d=google.com; s=arc-20160816; b=w1kXN9VmPlzXm5H61pFDxwA8D6t9NSfyHC1qOEkNKpNSx+WxvCYB05UVI/vWYc2wue RGLsRQFKjnj2wcl/LX1kvstj/mMSXWoLFuvTRgo0w3kMV3il61YKxlx1lsJ5f71yVy5K eCk0+3cPAmZZ7UeHIYdF7GbLiizsF8ZUZO4rBj0YHOdPKRbv2W/nmhTZv5Z1vVIu1azk wyL4K3yHKox7prqC9qySbgIw2lcxCGM1AlstSBE6AyJlMGC+763ahLm0yFCHpRD+ZBn4 ctXylwUoX48DD8PbBKqAmENGzVg6ktmL//6rPM0esKgJ9QAjmP8wjt+nH3Zqkyw36FNl XjKQ== 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=PD5Rp5y7tMeJ8pM4Gg4QeV0evblv2tQZ36ckLE+7F6Q=; b=npr+6woayB8g6sl5tuoS/Op7S5BVAB+KUwsb2EgiwB3mUwxwjkgBKgYkFFUyoDTcEe G4NosPdmCIU871t9mJAF0Sk+jEVh+zVHoT181pADDCnvKtEsqUBS38zL3a5fIGQsmqS+ KKvTpy52yszpu9Q9Fxy5GzcQNnaa6IGkhHMtnTQ0B0gV11p+JXZnEuwoahJ6UFok1lsB W2UMuLB+0YHdaL8YqO68w2/hL4niPjmAfEJBPBYjsDImuunr/dgmIaTyMImy9VOaPgAk XQG+55Cn8vhWzTiT88a9yJrCdJPHhmOcn6XVp5+Td+BtAyadGl3fbr3G81L6JbdgotiS Fe2Q== 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=o9Lxg36Y; 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 n2-v6si33199420plk.433.2018.05.29.02.01.42; Tue, 29 May 2018 02:01:42 -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=o9Lxg36Y; 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 S932592AbeE2JBk (ORCPT + 5 others); Tue, 29 May 2018 05:01:40 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:16935 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932543AbeE2JBO (ORCPT ); Tue, 29 May 2018 05:01:14 -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 w4T9195M007665; Tue, 29 May 2018 04:01:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1527584469; bh=YvT+C2yOryyGOVQB3hVBIMkGzXLC/FA05dW+oQ/FiA0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=o9Lxg36Y3CIVSzeXB+X6AuNdbMk7VMMjNPAnUCKILms2RBFr7tceqh0MHEnyyHFyW ZeE759Md9kIn3tVTtPGiH2LJ0iEW0hGylHvh0YrHYeUYCoFzeCDCByQ+TwV7O77toa nPxlw3OiqMGwMpT53GYAHjAt5AaXvPERyveBfgTg= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4T919d4004782; Tue, 29 May 2018 04:01:09 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE111.ent.ti.com (157.170.170.22) 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:09 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE114.ent.ti.com (157.170.170.25) 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:09 -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 w4T919ek017326; Tue, 29 May 2018 04:01:09 -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 w4T90x5Q008468; Tue, 29 May 2018 04:01:07 -0500 From: Roger Quadros To: CC: , , , Roger Quadros Subject: [PATCH 4/5] ARM: dts: dra71-evm: Add VBUS GPIO to USB1/USB2 extcon Date: Tue, 29 May 2018 12:00:57 +0300 Message-ID: <1527584458-6257-5-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 The board has USB VBUS detection available over GPIO. Plug it to extcon node of USB1 and USB2 ports. Signed-off-by: Roger Quadros --- arch/arm/boot/dts/dra71-evm.dts | 8 ++++++++ 1 file changed, 8 insertions(+) -- 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/dra71-evm.dts b/arch/arm/boot/dts/dra71-evm.dts index ebc4bba..c513399 100644 --- a/arch/arm/boot/dts/dra71-evm.dts +++ b/arch/arm/boot/dts/dra71-evm.dts @@ -276,3 +276,11 @@ /* Supplied by VDA_1V8_PHY */ vdda_video-supply = <&lp8732_ldo1_reg>; }; + +&extcon_usb1 { + vbus-gpio = <&pcf_lcd 14 GPIO_ACTIVE_HIGH>; +}; + +&extcon_usb2 { + vbus-gpio = <&pcf_lcd 15 GPIO_ACTIVE_HIGH>; +};