Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1407383ybh; Sun, 19 Jul 2020 19:12:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxI5MoqU1ybkeBx2GXXWrdniFDfFHPK/6DlLwUVAgTHzuR9Pwwa0Rboe1KymKVoKbW46Xx6 X-Received: by 2002:a17:906:23e9:: with SMTP id j9mr18505763ejg.107.1595211167077; Sun, 19 Jul 2020 19:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595211167; cv=none; d=google.com; s=arc-20160816; b=fsWYXU9wjDs5R2QNALqWoYYz0R2KJfaZF0sGyIkh5U8ve0JY/iaQLmcrsV+JOGwe+g qvlfpuncRKH0dBKlx/0of876tISzB8TD/jJW97/zSNg9DEDTgYQwp8/5Dv9v+/TdwPZb 6Iiz8XTKEf105p92mT+huSbNzG1AjST+GNug6PmC6dBA5mrMoJZXmvYIZqZYVdZJMLil zAcCeAEAqSXKozTrRhzR4Oc26UMIVob6HY1jW2zYdsp6XcjpxbzA1fU6kqBYhwT2CLIp 3/DAfE5UL75kRuv5mk/M3HiX5VjKv/WgY2AB4m6ow3UwVVg5zKBYj6PfWgoeSCSz/IcS 4V3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=A5HCZRF5f/jpmipL1O9i5sr7/s2lPaDlfmRyXdWoG4E=; b=TAV+2AA3x21PxKi/Cdlpx37ZnX+2v2smUG+Ffwr8/C8Am1rAQWdg4s2FSpKRb+3rn2 7+9zV4kYeYbbyW/YYpJj/p6c3pNbTa/XzsEpdQLxRMcyxfdgdT3VfCIzFzdQZlTjT46W K+mqBse+4Nj0/E89FJAzUkvdRtthus4skr/MVZ/tTi2cZAZlFGUvJifxR04Yuc2THO9s 7DCN//w7Xf6tcBoe55C4endJkUdg4BHY9vlDZM0WKpkWTu2QSGYjB6VRn98QDxMIESAl zhYkLhF5dXSNNQMP9K1pYOAPyoN73H1qZde4qIOfRVPIht8fA9js/hA/0h1LL/I9jqiG qLcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xYYOIPhj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n5si1658356ejl.286.2020.07.19.19.12.24; Sun, 19 Jul 2020 19:12:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xYYOIPhj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726711AbgGTCLm (ORCPT + 99 others); Sun, 19 Jul 2020 22:11:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:53742 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726225AbgGTCLm (ORCPT ); Sun, 19 Jul 2020 22:11:42 -0400 Received: from dragon (unknown [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 15472208B3; Mon, 20 Jul 2020 02:11:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595211101; bh=PgDcAq+4nyz4PbXB7ez/Cs907K+I0Hwh/nXW03+MYaE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xYYOIPhjYHhrVPbinYr1Yu+dMXz1s1oqP1orozIz0nqL8+BlHf4G6rTrMRoHCqrfc yG4A/mlQ25vMLDKLq6LssLNpRR+ieh7scg5n3dK6hVfNRIUzlZ6nTKBrVGfUVRAsEr cn1ufSU/UGfA1eXN/Rqddi2dwmloZUaIMBK65mHA= Date: Mon, 20 Jul 2020 10:11:26 +0800 From: Shawn Guo To: Philippe Schenker Cc: "devicetree@vger.kernel.org" , "a.fatoum@pengutronix.de" , "s.hauer@pengutronix.de" , "festevam@gmail.com" , "kernel@pengutronix.de" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-imx@nxp.com" , "robh+dt@kernel.org" Subject: Re: [PATCH 3/3] ARM: dts: colibri-imx7: add usb dual-role switch capability Message-ID: <20200720021125.GC11560@dragon> References: <20200710132423.497230-1-philippe.schenker@toradex.com> <20200710132423.497230-3-philippe.schenker@toradex.com> <73240ab0-5069-40c5-4ade-7fcc2207dfaf@pengutronix.de> <7e6f8135-120f-0831-20ad-25648ea646b8@pengutronix.de> <83b230cef109e1a413ab1036c21ad763a1d127eb.camel@toradex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83b230cef109e1a413ab1036c21ad763a1d127eb.camel@toradex.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 14, 2020 at 08:20:34AM +0000, Philippe Schenker wrote: > On Tue, 2020-07-14 at 09:55 +0200, Ahmad Fatoum wrote: > > Hello Philippe, > > > > On 7/13/20 1:53 PM, Philippe Schenker wrote: > > > On Mon, 2020-07-13 at 11:46 +0200, Ahmad Fatoum wrote: > > > > Hello Philippe, > > > > > > > > > + extcon_usbc_det: usbc_det { > > > > > + compatible = "linux,extcon-usb-gpio"; > > > > > > > > According to 4602f3bff266 ("usb: common: add USB GPIO based > > > > connection > > > > detection driver"): > > > > "the old way using extcon to support USB Dual-Role switch is now > > > > deprecated > > > > when use Type-B connector." > > > > > > > > Have you considered using a compatible = "gpio-usb-b-connector" > > > > child > > > > node instead? > > > > > > > > Cheers, > > > > Ahmad > > > > > > Thanks for the Hint Ahmad, > > > > > > I already tried and just now tried again but it doesn't work on our > > > hardware. Are you sure this works with chipidea driver? > > > > I haven't, just wanted to point its existence out in case you didn't > > know. > > Seems we need to call of_platform_populate somewhere in the driver. > > Unsure what other changes are necessary. > > Yep, thanks for that! It seems like that need to be really called as I > can't get a probe of the new usb connector driver. I quickly grepped > through code and saw that tegra USB driver is calling > of_platform_populate and they also use that gpio-usb-b-connector. > > > > > > Should this new usb-connector stuff work in general with every old > > > driver? > > > > If the driver support isn't there yet, I think use of extcon is fine > > as is. Shouldn't we improve chipidea driver to get it work with gpio-usb-b-connector? Shawn