Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1566691ybh; Tue, 14 Jul 2020 00:57:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzosQDhhvehdLqt1uJWF3KDv3JTgn7UScaGs/EU4+pvJtZfbY5aY7nXwsq44wBvp4DQNKeg X-Received: by 2002:a17:906:7c54:: with SMTP id g20mr3427246ejp.460.1594713420927; Tue, 14 Jul 2020 00:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594713420; cv=none; d=google.com; s=arc-20160816; b=IMTzn7Gs/JfrJzmugVaKL4t7oCohyzoAOuUGdmyMGXrpdX4/ZgyArMEDgK0lq5TXDR Eihx09emzdDnvcz/V8O6r2IU6TKI1YisAV0YcaO83goCnSAzfUbW0jZMG82KLMY+9sLZ TdNKebACrnv+1fQQUiwdbFaTM1CA/evMKv3Dj/88I3G00M8e10D3CE4vd22kLv7VJdEz Fc9ckH1/eRVPrxGSMvNA8ca5tmbu2EvAzL870c6UzQHW4+DL2eb4ovTFmM9xZxw8Y4rl 5I6kkBySoTzA48HXoGbXJ8VhG9YbwQgD2208KiVZ8tFZL5hk251/xVqSlpdkerDCyUme YbhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=yiKDNIqunQ46yC5aad3edQ1OFAGSpuB9xS3SoYu+4BY=; b=xwcWGXmmWKXRhJW+XBE2f4GyPY3gW9CmykNL2h3a6wcHTENc6w8PHEZLK1aokBkr6f HK4s2jXEO2fgLqQO/hCVogSMGl1j5M14zzBWuKP65M3AhEocPwzwVp5zRp96tLuKXLKc 67JxYWBoBgOpZQvUETPMEpfW5tAYI7n2WkRi/t8trEHE1+1RjZvP8Z7hDMBlIzAv/jcN d24wmStF3VcP7o81ZhfgEIvFV/zw6DmrjigNsuE7oIcAwdWoFlgG9+XDFt7AA9KUghLL IKbdhzCWzo+Mlcjof6oUfuf9fi2aODhWsQrsMwyGbgErhbYkPO3a6vZ6QwPmvoGi9R/t u+Rw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lu12si10300027ejb.269.2020.07.14.00.56.38; Tue, 14 Jul 2020 00:57:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726619AbgGNHzb (ORCPT + 99 others); Tue, 14 Jul 2020 03:55:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbgGNHz3 (ORCPT ); Tue, 14 Jul 2020 03:55:29 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CC32C061755 for ; Tue, 14 Jul 2020 00:55:29 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1jvFmg-0007Gm-Ku; Tue, 14 Jul 2020 09:55:26 +0200 Subject: Re: [PATCH 3/3] ARM: dts: colibri-imx7: add usb dual-role switch capability To: Philippe Schenker , "devicetree@vger.kernel.org" , "shawnguo@kernel.org" Cc: "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" References: <20200710132423.497230-1-philippe.schenker@toradex.com> <20200710132423.497230-3-philippe.schenker@toradex.com> <73240ab0-5069-40c5-4ade-7fcc2207dfaf@pengutronix.de> From: Ahmad Fatoum Message-ID: <7e6f8135-120f-0831-20ad-25648ea646b8@pengutronix.de> Date: Tue, 14 Jul 2020 09:55:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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. Thanks Ahmad > > Philippe -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |