Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp31715rwb; Fri, 19 Aug 2022 16:12:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR4g8CMdtGDyR9FALccDQLWIfdKY2UY7IGUIfHlXOSikIvi2QRddm3wMy8Yd1VztVRGk1/FK X-Received: by 2002:a17:907:28d6:b0:731:10ff:86a6 with SMTP id en22-20020a17090728d600b0073110ff86a6mr6388892ejc.128.1660950773386; Fri, 19 Aug 2022 16:12:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660950773; cv=none; d=google.com; s=arc-20160816; b=lSs8SKt2tBZ4d9p/PgGqz6WyiVe0mLzkyeisHULgYBGf5h0PoD022DTZ7RrP421G3T 9/Gu9amfqYU3psyP8P+nkUCmi5bWZa0iipZVx1UJJ0APevI/P4lmntMH+srh2FaDlRAO xxjM0pz1GQcDVt5VA6wr89MCaF5yKn5u2pv/6yi+JpboRX1AM6pxFyD/YeOyK24R8cPU Nkfj/c0/5W2WEQWxJb3TJGjolbVvHFpvGgl3pSA+rmrmQmJtUtAWYCdDD0C8wU1m9UXx gy2jFWjY1F3D/FqyZBnN14Dg49cOoGSeOlqcDA070D1gFzDfDsNvSd76do4ch9JfS1/Z niPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=cS/kuLnPP2ycMAb+4GFjyKvYClGwacVOaG/GdCCcX3E=; b=HeCT+bmszkgag6AjWlIOFu9CMQq0y+6d+k4sgrch+TX97HjzSAYfKDuueIp6LoxLIC ZY/q05tlwRqcrJtjs18mJlHSwAPvOZ4iWL28kryJf0++7cnLMYr3W28GU4EhpvmCumQ9 tI/nUG/3xkyLe/oqJiXCTeyg245BUcpMcpz06SlT/PbOt3yxNQtb3nuxHrRhTyUaDg8K HE1Fb7JG18sHyp+jVuv7qvdjutyNaMEBD6X3YamU/edXUgeT5Bj1xF6+PFzPD4oxG2// F8AEmf2JhS4eb1pFPHcVYavqIUXxs6sCkHVYiXuPLr/X7BjWZE0IhgGIg0nsbzlzzNRP Alhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Isiv0LJr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa23-20020a1709076d1700b00734ba6143a7si3811790ejc.930.2022.08.19.16.12.24; Fri, 19 Aug 2022 16:12:53 -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; dkim=pass header.i=@chromium.org header.s=google header.b=Isiv0LJr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230062AbiHSWzZ (ORCPT + 99 others); Fri, 19 Aug 2022 18:55:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243303AbiHSWzU (ORCPT ); Fri, 19 Aug 2022 18:55:20 -0400 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08AA010DCE3 for ; Fri, 19 Aug 2022 15:55:19 -0700 (PDT) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-31f445bd486so157576777b3.13 for ; Fri, 19 Aug 2022 15:55:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=cS/kuLnPP2ycMAb+4GFjyKvYClGwacVOaG/GdCCcX3E=; b=Isiv0LJrfAWVrYWLGTYqoFk7nqIAox7SkpjdLcd6nWTP5m1SY/fz8TO9LKhoAPrw+T qBPEb/knPbfBD1lNbRdzMKznlxaWBVCi0IfWiQtZdkp8azSyBbimy4ezRgRoEstgl+Wj yt3en8fzROvDSehUAtEuq3lxurwKa6ZdoD86M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=cS/kuLnPP2ycMAb+4GFjyKvYClGwacVOaG/GdCCcX3E=; b=F2VSwxA2dAe2QJSSKtl3kERfCmY4k1N5OVPmAUD3ucHHw3obAiFWRKaZCB43Mlfep6 XZtiCH4Dp/dy/Jy2wF5pHik2HF7o4ATcY5pgQVl2Us4XCaT3Q3W35CIzcWv22A1QZaRK mqAnVZu/XPETat7ySS+nGHpVydOUJy5kLeXTeOsrzMLx7oDlwYxVYNHAsRsS/lM+lgV2 8XO9EeiTvGHwTpgMQUjoeF9zz6UR6mq/KAb7ULWvUb9H7YMnsXjPThSnquqvqx6UPtAj 1HsB1WfxtM5kCh4lfSwHUvrHwU/SjKld4g0b8nYJnFeLZzFYRUcMIRmQVVp+MtZTDale 9xFA== X-Gm-Message-State: ACgBeo0vx1baBtmeF8eSwrYTFByE3wJEn72/Eixsa5+3clyo1B7otQyw 8iPnkV5LDvqfbK5b3jYXCGhuN/XJbBGcWXs/tLGI/A== X-Received: by 2002:a81:658:0:b0:334:a23e:6caa with SMTP id 85-20020a810658000000b00334a23e6caamr9413958ywg.283.1660949718288; Fri, 19 Aug 2022 15:55:18 -0700 (PDT) MIME-Version: 1.0 References: <20220810204750.3672362-1-bjorn.andersson@linaro.org> <20220810204750.3672362-2-bjorn.andersson@linaro.org> <20220814210104.GA690892-robh@kernel.org> In-Reply-To: From: Prashant Malani Date: Fri, 19 Aug 2022 15:55:07 -0700 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: usb: Introduce GPIO-based SBU mux To: Bjorn Andersson Cc: Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Krzysztof Kozlowski , Heikki Krogerus , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Pin-yen Lin Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Fri, Aug 19, 2022 at 3:01 PM Bjorn Andersson wrote: > > > You can't physically connect 1, 2 or 4 lanes of DP from a DP chip to > your usb-c-connector at the same time as you physically connect 0, 2 or > 4 lanes of USB from a USB PHY. I apologize in case I'm misunderstanding, but why is that not possible? anx7625 allows that configuration (2 lane DP + 2 lane USB going to a single USB-C-connector) Since the discussion is to support various conceivable hardware configurations That same anx7625 can support 1 1-lane DP (or 2 1-lane DPs), and 1 2-lane Type-C output. The cross-point switch allows for that level of configuration. > > So, how about 4 endpoints (1 for each SS lane) in the usb-c-connector port@1? > > That should support every conceivable configuration and bridge/PHY hardware. > > and also allows a way to specify any lane remapping (similar to what > > "data lanes" does) > > if that is required. > > Wouldn't that prevent you from handling orientation switching, given > that the graph is static? It depends. If the end-points from the usb-c-connector go to the same switch, then it should allow orientation switching (anx7625 allows this). The port driver would just tell the orientation switch(es) attached to it that we are in NORMAL or REVERSE orientation. The graph is static, since the hardware line routing between components doesn't change (e.g SSTX1 from the Type-C port is always routed to Pin X1,X2 on the switch hardware), but that is what the switch is for. Note that in this case, the expectation is that the switch driver only registers 1 switch (it can figure out that all 4 endpoints go to the same Type-C port). The limitation to orientation switching would depend on how the hardware is routed.