Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp593415rwr; Thu, 4 May 2023 07:17:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6LHTv7WSF1FxkXkHYZ1kUgv7Rhyd3kigXQ32CTlleXmK5kbwO8yCWUQcB6U6jtI5Vu+V+j X-Received: by 2002:a17:902:bf49:b0:1a6:b23c:3bf2 with SMTP id u9-20020a170902bf4900b001a6b23c3bf2mr3192569pls.10.1683209827260; Thu, 04 May 2023 07:17:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683209827; cv=none; d=google.com; s=arc-20160816; b=hMF8+J7ivichLmbD7EnI5rKmC9PRTBTWuoDQqYq/rLkuUYpy+qEoxX9eWzKcNo35ot 1QDR1k18ei8rpykbMdlTw7jXQhELb5K+/NZqwEfZ8a5oxoLKyOKe6xKdqSljJoE2NmJ/ /q0s2Z8jN1DnVvatTAO72u1HPTvH75VmdVHvcSAI+AR6vR2pGuc6xl09oFaqLvSfisx/ 2zd18Uh512FnZdwP+8gI/MbdlHHnh54InDanig57cWWHBol2B4UuNnOXVX6xU4gSP1ht gp11uNnLzjjbI0uzOORMJoxvoEEPSfVprCdTTGbJnKleODO55fgPb8vGd17hxKbHO/tj hETw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :reply-to:user-agent:mime-version:date:message-id:dkim-signature; bh=CBa5yf09RWH4yiJkKKfGA5cpxuaznqIjeI5vqh5jKnc=; b=f9HTaefmoPxVwpHk9plDIShfIacIkcPlGoQEpqn+T1tLOu1JF9Ts7i2tfu56Dm/jEz j0W06AJbKIVOAlQHhKuUgtOu69IxaIbVVDz6RISfVbWHu8+KG/fcEqxwOmlXuYoebFj+ 2rgCWgOySdJIWih9/W0JANRUzdTl8qavNoBfMop2H/K7K8gqBWVZ9Sw0Gm/J5q4OWTjJ zqV8zeHacuiii3luhBRgrg9nJqy6PlZvBxTGBn2HIPU7NLy1yxIvmCIc84NV/7XJnHhc eZfTm/clhDbZYLE0CrXAG6IWigqB4gQbv5amzA1L54GL3s8cqd6xlY49Zlqub1qcq46q zmeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xXTCdKLJ; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p8-20020a170902e74800b001a966042af8si30687930plf.341.2023.05.04.07.16.52; Thu, 04 May 2023 07:17:07 -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=@linaro.org header.s=google header.b=xXTCdKLJ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230366AbjEDNu7 (ORCPT + 99 others); Thu, 4 May 2023 09:50:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231191AbjEDNu5 (ORCPT ); Thu, 4 May 2023 09:50:57 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30B371A6 for ; Thu, 4 May 2023 06:50:56 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-2f55ffdbaedso349443f8f.2 for ; Thu, 04 May 2023 06:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683208254; x=1685800254; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:reply-to:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=CBa5yf09RWH4yiJkKKfGA5cpxuaznqIjeI5vqh5jKnc=; b=xXTCdKLJQRFOFCzlTq25XVRG7iQ2YTig8JrOBlX202YIt83MpXRScjaLxgVkY0zWnX DAVukRu+mKp/O1lsgwViKkyFW5TflkdO+9RSnOsPHJf1UAuvmWhLpdvus2AS6Xx56NDm CfWYEWqfh/q/sQRS9cAWeu5+0DKAw8bGkidhmv8yzMLKCAVlMYDjKTkaErzmqMlx9vh1 DbS/JUBo+CCNe2h2qgjAEEJuEUOYtQ2xsNqwMrt8nEvQB4N73in46NuRPL+RS0Rw5t61 ZjElPUzI86zAglFLOI5kjjaAYdQ2zK8mOxkBdMX3cvwx4ZC5ZEWZEDh6z887sMcghrwC EYaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683208254; x=1685800254; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:reply-to:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CBa5yf09RWH4yiJkKKfGA5cpxuaznqIjeI5vqh5jKnc=; b=L/fmV1ucOm3P03xJH0MX0g2sNiExiDlPLsnAwnlD/6bvWDTmp1NDV2mBXit3G5MXEK Oj2VsIx/cVpHXtHAfUlOEFQ7fTXIKT5UpDQ5VFu0eyVQKUGtHVLbP+7Gf32eFxJrdjX2 UMrT9JkKFNct1eK2+crCJT0ZmyTbdW1o/sg0xX8iIfd/FKAeEDyHJvWIgZSVx6kq/swy vsMtScPQBfi8aZRLORt04y4ptSiPjQYnzHwY5AbA9+AmFxYMQ6Z1cV/lRurLvgSGA9mZ zH81LkOdeVXR07uYjXQ1JvtydqaiODedEw3oEh9QTNnz8eAtyil4adnrSdgIiqjp8zkE JqEg== X-Gm-Message-State: AC+VfDxfr7pF5TWWuZNSpycx+1JNfGTc+uLPCh019YKodCvJvX4baFua DT2Wmjj4XO00yG4Yh8otEfQRqA== X-Received: by 2002:a05:6000:1b82:b0:306:2a21:b5ff with SMTP id r2-20020a0560001b8200b003062a21b5ffmr2371851wru.17.1683208254591; Thu, 04 May 2023 06:50:54 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:52fb:80bd:bee3:f741? ([2a01:e0a:982:cbb0:52fb:80bd:bee3:f741]) by smtp.gmail.com with ESMTPSA id y6-20020a1c4b06000000b003f17131952fsm4982246wma.29.2023.05.04.06.50.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 May 2023 06:50:54 -0700 (PDT) Message-ID: Date: Thu, 4 May 2023 15:50:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 1/7] dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp: Add ports and orientation-switch Content-Language: en-US To: Bjorn Andersson , Bryan O'Donoghue Cc: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Johan Hovold , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230425034010.3789376-1-quic_bjorande@quicinc.com> <20230425034010.3789376-2-quic_bjorande@quicinc.com> <20230427195232.GB870858@hu-bjorande-lv.qualcomm.com> From: Neil Armstrong Organization: Linaro Developer Services In-Reply-To: <20230427195232.GB870858@hu-bjorande-lv.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 27/04/2023 21:52, Bjorn Andersson wrote: > On Wed, Apr 26, 2023 at 11:21:29AM +0100, Bryan O'Donoghue wrote: >> On Tue, Apr 25, 2023 at 4:40 AM Bjorn Andersson >> wrote: >>> >>> The QMP combo phy can be connected to a TCPM, a USB controller and a >>> DisplayPort controller for handling USB Type-C orientation switching >>> and propagating HPD signals. >>> >>> Extend the binding to allow these connections to be described. >>> >>> Signed-off-by: Bjorn Andersson >>> --- >>> .../phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 51 +++++++++++++++++++ >>> 1 file changed, 51 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml >>> index 3cd5fc3e8fab..c037ac90ce7f 100644 >>> --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml >>> +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml >>> @@ -60,6 +60,26 @@ properties: >>> description: >>> See include/dt-bindings/dt-bindings/phy/phy-qcom-qmp.h >>> >>> + orientation-switch: >>> + description: >>> + Flag the PHY as possible handler of USB Type-C orientation switching >>> + type: boolean >>> + >>> + ports: >>> + $ref: /schemas/graph.yaml#/properties/ports >>> + properties: >>> + port@0: >>> + $ref: /schemas/graph.yaml#/properties/port >>> + description: Output endpoint of the PHY >>> + >>> + port@1: >>> + $ref: /schemas/graph.yaml#/$defs/port-base >>> + description: Incoming endpoint from the USB controller >> >> Do you really need this one ? >> >> The controller doesn't process orientation switching. >> > > I don't have a need for it, as we can deal with role switching by > connecting connector/port@0 to the dwc3. > > But if we ever have a need to describe the dwc3 -> QMP -> connector path > in the of_graph I think it would look prettier to have USB input as > port@1 and DP input as port@2... I think it would be great to have port@1 for USB SS and port@2 for DP, otherwise we need to add 2 endpoints as I sent in https://lore.kernel.org/all/20230503-topic-sm8450-graphics-dp-next-v1-1-d1ee9397f2a6@linaro.org/ since we split USB HS and SS streams on SM8[345]50 platforms. > > Do you have a concern with keeping it around in the DT (the > implementation doesn't need to care)? > > Regards, > Bjorn