Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp652948rwr; Thu, 4 May 2023 08:01:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ63YV2BVt7yXjhJ0eL8SdOddS1FiPv1MpkmCTOYDe9zdGKUmFKjm/WqKW5/m3CT/TKqcBU8 X-Received: by 2002:a05:6a20:3ca5:b0:db:22dc:23d with SMTP id b37-20020a056a203ca500b000db22dc023dmr3859616pzj.5.1683212478751; Thu, 04 May 2023 08:01:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683212478; cv=none; d=google.com; s=arc-20160816; b=eR6BFsfn7YV0vJ0qlYzIRNeGYN14xmM0iX839212OGNgWSrZyBwSV3YxyYcuD5q+cD KD9qlJ2sVSaZAZHLZ1VGBA9JjM/lVLevRfjq8kxfnrjtTi1WCBlPSH6lSDFLDHWNaO/y lSuIiFeVfZr5ZSzhce78ZhjWwXn+7+w0TiF+jkt2gp+0YJQ6FGnq4XfxE3cp6dJWZI39 hBwYzmJw5u+dEERMlzPPIKZq1lNnyH9Ld/qHJAU7rorWg1MjXPaFu3hOh5j3j3UxFoDO NapzqmvpEPjJzs86/LEQLzttIHsOtT3e4Xc2mXue/eYuobfbjmT1TPWaRXP/68Vx2xIT +z/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GhSbuOrmW94M9j+Wv4Gh8g0l7nGibTjHwc6eC1CVovo=; b=Ob0eNMP09AmiZ1PR4bcOgAg4GQ0A0YBxs1PhhZuTSZWFxBibRLW7DO0hyL7RtUlcf2 9mqrTQVrVOmFutsOsfiy+1QMhhelkc0OZE7HtU3rnT79uxjmvHduD0MlydInMy2xIZw6 saIu23pJeY+YDKNZ/XxNn807mk7+frqB+4IQGXfdU+GCoM0g1yQ2NkvqGvPFbakyM+n0 Ss9UHz7R9KqE7IoE6oW1CoV3dKwNUoT1l519kzEyzYJMDYyePiZ/f74RFhovVf8uaq/o Cb2BmreBDXIyqZQ13OcYnpJfe1A5CcEheokzZ7NgfG4KyZFCw1DH3LnGLr9cgPb4pkdy hFZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=TlWaMz+O; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x185-20020a6386c2000000b00520dfb861fcsi3844679pgd.309.2023.05.04.08.01.05; Thu, 04 May 2023 08:01: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; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=TlWaMz+O; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231437AbjEDOx7 (ORCPT + 99 others); Thu, 4 May 2023 10:53:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231384AbjEDOwp (ORCPT ); Thu, 4 May 2023 10:52:45 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99BF27AA6; Thu, 4 May 2023 07:51:46 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 344E82UW004917; Thu, 4 May 2023 14:51:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : content-transfer-encoding : in-reply-to; s=qcppdkim1; bh=GhSbuOrmW94M9j+Wv4Gh8g0l7nGibTjHwc6eC1CVovo=; b=TlWaMz+O3G+UriYSGBJeGEnRlWBhj9cDJrGTSDpntgl/X+rdu3S7Oh0rH7wKWhP5WCKj kPIepsbFilGnuWCYalElsA1iy3zPa70PiS6vSW/422SKSRIb1pFonw/GggKyEutNbaV0 FeZTU7CY6+4Xt8ljTOgd3K/QOebmRqQ9EpdmHixBCiBG5skJysITQecbn3A/qllnOFY3 lt+q+QgcN/1fAnVk95waDoM64uGDOtJrFXpTc3slxfojINse7E6soxahLQwp0u5VZfh5 Wiu/3rXIErWk/b2Sb6jTRhe+URquhnQBDDYIq//Bf3CxNinQps/yfW7F4P0KKoFNtyl2 sw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qce6mg372-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 May 2023 14:51:39 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 344EpcEN002967 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 4 May 2023 14:51:39 GMT Received: from hu-bjorande-lv.qualcomm.com (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Thu, 4 May 2023 07:51:38 -0700 Date: Thu, 4 May 2023 07:51:37 -0700 From: Bjorn Andersson To: Neil Armstrong CC: Bryan O'Donoghue , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Johan Hovold , Bjorn Andersson , Konrad Dybcio , , , , Subject: Re: [PATCH 1/7] dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp: Add ports and orientation-switch Message-ID: <20230504145137.GG870858@hu-bjorande-lv.qualcomm.com> References: <20230425034010.3789376-1-quic_bjorande@quicinc.com> <20230425034010.3789376-2-quic_bjorande@quicinc.com> <20230427195232.GB870858@hu-bjorande-lv.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Owq-MiMBFdp0s5W0zqY4uBpSH3fza73z X-Proofpoint-ORIG-GUID: Owq-MiMBFdp0s5W0zqY4uBpSH3fza73z X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-04_10,2023-05-04_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 mlxscore=0 lowpriorityscore=0 priorityscore=1501 spamscore=0 phishscore=0 mlxlogscore=999 impostorscore=0 suspectscore=0 adultscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2305040122 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Thu, May 04, 2023 at 03:50:53PM +0200, Neil Armstrong wrote: > 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. > Right, so let's keep port@1 and port@2 in the binding, and then we can choose to connect port@1 to DWC3 or not... Regards, Bjorn > > > > Do you have a concern with keeping it around in the DT (the > > implementation doesn't need to care)? > > > > Regards, > > Bjorn >