Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1263944rwr; Wed, 3 May 2023 12:28:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5RR7cOlKy4u+ndKmIKHIXbgFFpMzGEwxbUSe0nR4wNw01Gs5fszB8y60uZaf0H4WtDc8bP X-Received: by 2002:a17:90b:4b90:b0:247:35c7:bd67 with SMTP id lr16-20020a17090b4b9000b0024735c7bd67mr22770174pjb.46.1683142128491; Wed, 03 May 2023 12:28:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683142128; cv=none; d=google.com; s=arc-20160816; b=JZxUpzgGuiSUoNkNAkHM0rxfypUvq9Fvaf3Y+KU93VTLQNGIfyRjroSPx2GNCml9nC e86ZmNoryytwda1f0KHg+fLTUs09BsTm2ifQ0BJKF1VJH6pYDTgB6W4MHZ2C9BRSQJDe Yvb0Eya6vPP4znYLxRehJBFpId86g2k25cz1mD87MuEOykgWE/QXc2iku6JGsP8QwYCw VJV1cwpp6JTTU0Y8jmT93Ulaxo4xi1MNBs1XagSbY33ruiEfZqACuYPQz8nSOIyoTDGQ LOaMwrfwfvJ8M06U5o6G/Zx+Rg55PeBtF5Zn0/Mee+8sGkZAAfGhVY/NlFrd8YgRCl5K pVig== 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=SHiq5Xp+CNvww2A3STWwZejZZ5RhdcesxUNmQR7N2JY=; b=B8wE5wBD9NJ5Shr99n6xd7TzAFPVXhoiqvMdy8tqBtFsJsRecuTnIFyquWKOp6qFgP srSukpUntnffe0FlG6W0YvnSg5ro7HdsFh+dUpTJdBNzgEFFfEupyL+/1qs6PExypro2 vWX+XTE7ejBhILJJEqUPgHpQlrZhFt03nVUjd2wUqs6Fkx/Hd0KOPKWFKdVG62jrc304 bDbvAbz9bvgfowXdOtpnpkAINTate/XdMAM8to+P/rQwUVsMrpaxy6fZ1hqlbYM70eTg PwDK6oXv+h9H2UYbbkKbMrleI4xfgeCVY3mdRLd3xLlwdIFodACGAYgcuqMMD944D+VZ CdRw== 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 a190-20020a6390c7000000b00519009eb504si35203925pge.96.2023.05.03.12.28.36; Wed, 03 May 2023 12:28:48 -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 S229502AbjECTII (ORCPT + 99 others); Wed, 3 May 2023 15:08:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjECTIH (ORCPT ); Wed, 3 May 2023 15:08:07 -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 1CB1AB6 for ; Wed, 3 May 2023 12:08:06 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1puHpb-0005mD-Kq; Wed, 03 May 2023 21:08:03 +0200 Received: from mfe by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1puHpZ-0005aB-UM; Wed, 03 May 2023 21:08:01 +0200 Date: Wed, 3 May 2023 21:08:01 +0200 From: Marco Felsch To: Jun Li Cc: "festevam@gmail.com" , "kernel@pengutronix.de" , Andreas Henriksson , Xu Yang , "linux-kernel@vger.kernel.org" , "robh+dt@kernel.org" , dl-linux-imx , "krzysztof.kozlowski+dt@linaro.org" , "shawnguo@kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH] arm64: dts: imx8mp-evk: add dual-role usb port1 support Message-ID: <20230503190801.5glkm3n5sn5tvg7m@pengutronix.de> References: <20230323105826.2058003-1-m.felsch@pengutronix.de> <20230327084947.dcguxgyo2lfen2ms@fatal.se> <20230503184834.qln2wwvf3pgitkmp@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230503184834.qln2wwvf3pgitkmp@pengutronix.de> User-Agent: NeoMutt/20180716 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: mfe@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 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 23-05-03, Marco Felsch wrote: > Hi Li, Andreas, ... > > Thanks for the advice. > > > > *reuse* compatible = "gpio-sbu-mux"; can make the basic *function* work, > > but that's not the right direction, SBU has its own signal in typec connector, > > here what we need is the Super Speed signal switch, you can see iMX8MP EVK > > use 2 GPIOs control the SS for 3 states(normal orientation, reserve orientation, > > places all channels in high impedance state), but SBU will disable both channels > > at TYPEC_STATE_USB, this is not correct for USB data, so logically we cannot > > reuse SBU either. But I think this gpio-sbu-mux.c driver can be extended to > > add support super speed signal orientation. > > Thanks for the useful input :) I was dug into the usb-c hole and now I'm > back. The "gpio-sbu-mux" should fit perfectly for our use-case, we only > have to tell the driver to act as 'orientation-switch' only. All pieces > are in place so just dts work to do. I will test my new patch and send a > new version which should support super-speed to (fingers crossed). Now I see problem you mentioned, let's see if we can extent the driver. Sorry for the noise. Regards, Marco