Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp650218rwr; Thu, 27 Apr 2023 06:32:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5VPgKaQn3DblSlrooccdP/eCKEDeZb/jSdd4YZNatgR+X8e7+ovXq0LuM9Ykz7RG4E8Ynb X-Received: by 2002:a05:6a00:4c11:b0:641:23df:e929 with SMTP id ea17-20020a056a004c1100b0064123dfe929mr580897pfb.2.1682602340877; Thu, 27 Apr 2023 06:32:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682602340; cv=none; d=google.com; s=arc-20160816; b=IT9rADf/jD+89Li+CIduiu5s6aWwqzqs50SI36X2ogzYcJJ69QPWXi/xkkbACqoYWM qBRsi9XCdZFsHwlxzDQAQUVGytUkebUiIktA+GDJjctSGdYNAzQwRzDTJyEtacjbRl/u 9AxLiSOMDTZu/cEpV1nzxRhNCCrztnScT74Ev5XMgBzoah51ByGocuPGKoICV/U+gXRI Ih/TrSMnMBR6vXQDBlSPOUzUagrZ0Z6MVcaZd5zM8PGANk1P2iItn5vsTxanRoXu1Frd HcscO7Z+0NJnKg+SpS0+bgx2wfnqxuGvZ4XZHfXzpQzMiuiXlqPBVkE04o+V7pafahlY bLgQ== 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=V7xnDUz2dODxnj/h8N5FrCM6kM8AWsyfS5hNS2c2bj4=; b=g9wgqsFpHSOsKeqfBDftETcZA5kz/ZkE2pVPsPsTZeuPfcQbuqsPZ8sAxxwVigUCik Qe0eV3HXnvzR2HPiyxJuNGKaATJ9Q4a7I66QhtiRc/OHWrIuxNKAnw4rXY6mXSeul9xH zs6DFtfK2+jENT+qnJrqvirEWEz3yLmY87MGpz45kTFyPdANS9SxTWZ2GLZq42m0rrub R7N7L8RDf6yOa+ikbOHZKKlq3C4PgCVIM66iPTeK9onTfILHICdRBY/EKMwc2NqR73pA WLRpJqZLVMhKw7LYEMxKVG2VXQvyF2iQtGBJ68u4yOBpnM4Mfz5RuZcX2wQ/qwfrc+Pk pGfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iHG1KltZ; 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 x2-20020aa79402000000b0063f13fd6b7esi16959743pfo.207.2023.04.27.06.32.04; Thu, 27 Apr 2023 06:32:20 -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=iHG1KltZ; 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 S243371AbjD0N2O (ORCPT + 99 others); Thu, 27 Apr 2023 09:28:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232894AbjD0N2N (ORCPT ); Thu, 27 Apr 2023 09:28:13 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CB202D47 for ; Thu, 27 Apr 2023 06:28:12 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4efe8991b8aso6978444e87.0 for ; Thu, 27 Apr 2023 06:28:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682602090; x=1685194090; 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=V7xnDUz2dODxnj/h8N5FrCM6kM8AWsyfS5hNS2c2bj4=; b=iHG1KltZKTyYffz9q8/QAwT9/43bbAqRHUzYFgSLFvM02rBdgThzlkhxJWhNWZU+Jz /kkH3ZoTHjPbhaWg8Klhd2/u5YsOJKuv6TePC3CCOtSG21ldVPImoBz/TrCBf5+bo3rb qSeiwgc/u6vL3Z6tLt8LNhrBXuyeLpNPvcHGjKV5YqvcovxoHvkwg23T2N6xuOoSHYHf osV19b7EJ3xpsLwGMMuHC0us+6YMVy3F6cKGPl+Q2Fb25OBkxOEOvUTS8acpmClhBuBg UPHIlRt597I+79J7CK7AGqzqBaP+ZkLJh9s73YPtSDmlC+PofcoGcCIfpjc4kXFTdd7U WhIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682602090; x=1685194090; 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=V7xnDUz2dODxnj/h8N5FrCM6kM8AWsyfS5hNS2c2bj4=; b=SGEDf48ZpybMLuOHZQnwSH+eMj8PtdPm3/Gr77WAxrV3v/uVSH4PtV957yVYtwDBSu 0v3RucfQUQRp1X+IJ+Px+ziQFYhmp0c+74IvNqmnDOukR/ZM6QPk94Gk6ZcetghMeSBW k48mE5nyiSfBL57lxOPpPEc6zClpprJuYHOaQxOHbfKnYblIl0AAPsL6qXbfGY+tPZl3 jJ0Y+8I2d8HC33VHPWUMjJuF3nsmB1mc/jxtCpV9Cs27vJKJ83eCEKy+/rp3y6AW1hbC vjWQayx0DSSPID5PUOPYYAP2TKvLSromJHONJ9VJ+mQDStYstlClPvsVkeR5h9odYKTZ x0Rg== X-Gm-Message-State: AC+VfDzhrhgg4QPRLasnF2QilEn2/pYRI/FWC1S5K3tf3VUwbtUOhtva BnQX0N+3FhFqMOok00hET2CtVKYZRa/oRO4ZV1wwPg== X-Received: by 2002:a05:6402:2:b0:504:9cec:8afb with SMTP id d2-20020a056402000200b005049cec8afbmr1773400edu.2.1682602069344; Thu, 27 Apr 2023 06:27:49 -0700 (PDT) Received: from [172.23.2.82] ([31.221.30.162]) by smtp.gmail.com with ESMTPSA id n20-20020a05640206d400b00504b203c4f1sm8070176edy.40.2023.04.27.06.27.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Apr 2023 06:27:48 -0700 (PDT) Message-ID: Date: Thu, 27 Apr 2023 15:27:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 6/7] arm64: dts: qcom: sc8280xp-crd: Add QMP to SuperSpeed graph Content-Language: en-US To: Konrad Dybcio , Bjorn Andersson , Bjorn Andersson , Johan Hovold Cc: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , 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-7-quic_bjorande@quicinc.com> From: Neil Armstrong Organization: Linaro Developer Services In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.5 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 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 27/04/2023 01:33, Konrad Dybcio wrote: > > On 4/25/23 04:40, Bjorn Andersson wrote: >> With support for the QMP combo phy to react to USB Type-C switch events, >> introduce it as the next hop for the SuperSpeed lanes of the two USB >> Type-C connectors, and connect the output of the DisplayPort controller >> to the QMP combo phy. >> >> This allows the TCPM to perform orientation switching of both USB and >> DisplayPort signals. >> >> Signed-off-by: Bjorn Andersson >> --- >>   arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 28 ++++++++++++++++--- >>   arch/arm64/boot/dts/qcom/sc8280xp.dtsi    | 34 +++++++++++++++++++++++ >>   2 files changed, 58 insertions(+), 4 deletions(-) >> >> diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts >> index 547277924ea3..33c973661fa5 100644 >> --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts >> +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts >> @@ -64,7 +64,7 @@ port@1 { >>                       reg = <1>; >>                       pmic_glink_con0_ss: endpoint { >> -                        remote-endpoint = <&mdss0_dp0_out>; >> +                        remote-endpoint = <&usb_0_qmpphy_out>; >>                       }; >>                   }; >> @@ -99,7 +99,7 @@ port@1 { >>                       reg = <1>; >>                       pmic_glink_con1_ss: endpoint { >> -                        remote-endpoint = <&mdss0_dp1_out>; >> +                        remote-endpoint = <&usb_1_qmpphy_out>; >>                       }; >>                   }; >> @@ -412,7 +412,7 @@ &mdss0_dp0 { >>   &mdss0_dp0_out { >>       data-lanes = <0 1>; >> -    remote-endpoint = <&pmic_glink_con0_ss>; >> +    remote-endpoint = <&usb_0_qmpphy_dp_in>; >>   }; >>   &mdss0_dp1 { >> @@ -421,7 +421,7 @@ &mdss0_dp1 { >>   &mdss0_dp1_out { >>       data-lanes = <0 1>; >> -    remote-endpoint = <&pmic_glink_con1_ss>; >> +    remote-endpoint = <&usb_1_qmpphy_dp_in>; >>   }; >>   &mdss0_dp3 { >> @@ -670,9 +670,19 @@ &usb_0_qmpphy { >>       vdda-phy-supply = <&vreg_l9d>; >>       vdda-pll-supply = <&vreg_l4d>; >> +    orientation-switch; > > I believe this belongs in the SoC DTSI, as it's supported by > the PHY block itself > > > The rest seems to lgtm.. > > > On a note, why did we end up placing pmic_glink in device > DTs? It's already assumed that we're using the full Qualcomm > stack as we use PAS for remoteprocs so I *think* we can always > assume pmic_glink would be there! As we did on other board, I think because having pmic_glink depends on the board firmware capabilities ? Boards without USB-C won't need/have pmic_link right ? Neil > > Konrad > >> + >>       status = "okay"; >>   }; >> +&usb_0_qmpphy_dp_in { >> +    remote-endpoint = <&mdss0_dp0_out>; >> +}; >> + >> +&usb_0_qmpphy_out { >> +    remote-endpoint = <&pmic_glink_con0_ss>; >> +}; >> + >>   &usb_0_role_switch { >>       remote-endpoint = <&pmic_glink_con0_hs>; >>   }; >> @@ -697,9 +707,19 @@ &usb_1_qmpphy { >>       vdda-phy-supply = <&vreg_l4b>; >>       vdda-pll-supply = <&vreg_l3b>; >> +    orientation-switch; >> + >>       status = "okay"; >>   }; >> +&usb_1_qmpphy_dp_in { >> +    remote-endpoint = <&mdss0_dp1_out>; >> +}; >> + >> +&usb_1_qmpphy_out { >> +    remote-endpoint = <&pmic_glink_con1_ss>; >> +}; >> + >>   &usb_1_role_switch { >>       remote-endpoint = <&pmic_glink_con1_hs>; >>   }; >> diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi >> index 0e691bb0120c..1eb3a295e8fa 100644 >> --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi >> @@ -3006,6 +3006,23 @@ usb_0_qmpphy: phy@88eb000 { >>               #phy-cells = <1>; >>               status = "disabled"; >> + >> +            ports { >> +                #address-cells = <1>; >> +                #size-cells = <0>; >> + >> +                port@0 { >> +                    reg = <0>; >> + >> +                    usb_0_qmpphy_out: endpoint {}; >> +                }; >> + >> +                port@1 { >> +                    reg = <1>; >> + >> +                    usb_0_qmpphy_dp_in: endpoint {}; >> +                }; >> +            }; >>           }; >>           usb_1_hsphy: phy@8902000 { >> @@ -3042,6 +3059,23 @@ usb_1_qmpphy: phy@8903000 { >>               #phy-cells = <1>; >>               status = "disabled"; >> + >> +            ports { >> +                #address-cells = <1>; >> +                #size-cells = <0>; >> + >> +                port@0 { >> +                    reg = <0>; >> + >> +                    usb_1_qmpphy_out: endpoint {}; >> +                }; >> + >> +                port@1 { >> +                    reg = <1>; >> + >> +                    usb_1_qmpphy_dp_in: endpoint {}; >> +                }; >> +            }; >>           }; >>           mdss1_dp0_phy: phy@8909a00 {