Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4283342rwl; Mon, 3 Apr 2023 02:41:18 -0700 (PDT) X-Google-Smtp-Source: AKy350b5YT9RQ8U1PX47RMLW2SV2ESoN1HX+Ch5UYRR8eRjI7cdwC6xX832USGo8w4DM5idL5eL4 X-Received: by 2002:a17:90b:3846:b0:236:6a28:f781 with SMTP id nl6-20020a17090b384600b002366a28f781mr40505230pjb.22.1680514878293; Mon, 03 Apr 2023 02:41:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680514878; cv=none; d=google.com; s=arc-20160816; b=zkEvxjZTGhYvVtAZpb4B2IiWEfTK5Ct4Ulk9ToZidALuYJtzuG9NSKZbTo1SC9FtPE N4tSzGp7gUa8NuddfDR9l0wD+LdnHfQz/PG2o+agfCOrYcRvwqU/X9gK/xcm6VXP8t+m hgxR+Aq8ufU/CNlJgxelS9jODRfzgj6DHxqDffHWGWdE0Ax/chMbslTmRlVYjYkGOPbY 28JpWhIb88pjHtA0NgCkvcXP//+K8GKwkykzWzMdaBhp+E1xcL11ot50i0NeS1ZWZxRj Y+xLUwCcOvAStBg2MVrPp9yx3KSusRP8y6GFJ1QZ7NakmHROVeX9RKL18icgP+Me9Vdi MSCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=m2szRRdidPiJTmhXGXGVpmMTNNXQbfTvJMZ/uQd9W9E=; b=EjW8GSbFL+sOwvqinA5URZmFwH3wXobgz6+dEBaLt7ue6eWf5po0+skwdat4cDf2Mz zqNpMOmSokRGvjJHfzuQDcZNsuukJU3ZuVTF/PGUdRTj8FvhyRyIWgSh3gfcyiqhlr9f isk/qPC9w1EBRjvkvXOnC0EawdGQSn1DGBpgphRGdzYyx+F8KqmabkF6NjMADxaVXico sfOlo0u8F7P3K7MlHQOhoBxSDPQrfJUMj7jA+5G5s08Gwm8F0VcNHG1vHzEfDve1CQI6 vafwDdGegPA3Bzpz3bYcawwgcgoUu3DwY/oAmEA3YbI/rqQnf4ymdrB64k9vxSpzeipl giwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ku13-20020a170903288d00b0019e9849174fsi7251609plb.547.2023.04.03.02.41.06; Mon, 03 Apr 2023 02:41:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232307AbjDCJkC (ORCPT + 99 others); Mon, 3 Apr 2023 05:40:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231712AbjDCJj1 (ORCPT ); Mon, 3 Apr 2023 05:39:27 -0400 Received: from pi.fatal.se (andreasfatal-1-pt.tunnel.tserv3.fmt2.ipv6.he.net [IPv6:2001:470:1f04:f16::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CC2484C2B for ; Mon, 3 Apr 2023 02:38:22 -0700 (PDT) Received: by pi.fatal.se (Postfix, from userid 1000) id 25A062A1A3; Mon, 3 Apr 2023 11:38:12 +0200 (CEST) Date: Mon, 3 Apr 2023 11:38:12 +0200 From: Andreas Henriksson To: Marco Felsch Cc: Jun Li , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "shawnguo@kernel.org" , dl-linux-imx , "festevam@gmail.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "kernel@pengutronix.de" , Xu Yang Subject: Re: [PATCH] arm64: dts: imx8mp-evk: add dual-role usb port1 support Message-ID: <20230403093812.rjj2wkusajsx5mwi@fatal.se> References: <20230323105826.2058003-1-m.felsch@pengutronix.de> <20230327084947.dcguxgyo2lfen2ms@fatal.se> <20230330143813.teid36w24a4esjsx@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230330143813.teid36w24a4esjsx@pengutronix.de> User-Agent: NeoMutt/20170113 (1.7.2) X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Marco Felsch, On Thu, Mar 30, 2023 at 04:38:13PM +0200, Marco Felsch wrote: > Hi, > > On 23-03-27, Andreas Henriksson wrote: [...] > > / { > > gpio-sbu-mux { > > compatible = "gpio-sbu-mux"; [...] > I didn't tested it but at the moment I don't see the problem with my > patch. As Jun Li helpfully explained my patch is not correct, so don't bother. I don't have a problem with your patch, was just trying to share what I had done. I've since learned that the board I'll be working on will not even have SS, so I will not pursue SBU. I'll most likely use your patches instead as they seem simpler than what I did and should fully meet my needs for an usb port that works in both host and device mode. Not that it matters, but +1 from me on applying your patches. (If people are hesitant to do it because of lack of SS, then maybe that could be adressed by adding a comment setting the expectations?) > Sure the ID pin is not connected but if I understood it correctly > (please correct me) the tcpc will handle the orientation. I can set the > mode to device from user-space which worked. I didn't verified the > SuperSpeed mode nor the host mode since I don't have a USB-C flash > drive. > > Without the patch the port is just unused albeit the port is really > useful for bootloaders like barebox to provide a usbgadget/fastboot > device to flash the system. > > Regards, > Marco Regards, Andreas Henriksson