From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DDFD6C77B7E for ; Tue, 2 May 2023 11:01:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233367AbjEBLBb (ORCPT ); Tue, 2 May 2023 07:01:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233827AbjEBLB3 (ORCPT ); Tue, 2 May 2023 07:01:29 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA8CA4686 for ; Tue, 2 May 2023 04:01:27 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2a8b62cfaceso36277881fa.2 for ; Tue, 02 May 2023 04:01:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683025286; x=1685617286; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=3AHG7QyY7Uakdx6REQCYSG7RD4RaqzmrdD7vCsADEuw=; b=MR51foAq/zrcxaAEBdjLcZ5f/OhepH79/4rBiT9OxhDshbb8bYZT6RtQ4oE1X2ukBj /rsI1d3Wu/PMRo3crYuWoYmN3lDrx0E9e3/gtqUbwStUtxQsFPFghNGx7mrwN0YgDSI4 FXbfycGAfA8ty93bUs6XRTJqjHKl0DADM5kteuj0rH0AB5XKTOz5p96GomAV0sCNHlAt dzQnsvp19Lr69C3AsXemwRV8YjesuyVbRtidpFDAiN3nzFJu8QfW10PDapR8MqMa5y7k 6tiVW5C4P8tnkbdzhZ/IUQNaUihUWA6lqo1L+/9PcgkDDX/ZKBet1lg4j3PAHTBGqVzY fakQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683025286; x=1685617286; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3AHG7QyY7Uakdx6REQCYSG7RD4RaqzmrdD7vCsADEuw=; b=KoTROEI15MhIMr87x8Ro44uSoyFmT1ixogYZ2uKj7IDOo5T5YCJyc/phYWu8urHPpx LwIdtLW22ps1Ibru9ZV7PTulpHcc8uRueIXzMwpJ0hI+rFWSAVU8CtNqqJK+ZvWpCvjI TKd+x+puK7GzNFUgpet5q1toVCo0+JX3ZHiL+4h7upQuaUxuUuEsNno/KJZJFNWOCvFa txSAedN/HvZDz9hqK9BQYa4W6VfgebfZMtgF4uGl19W2YbfDQ8MFcAkjcKfn+Smbb6gq vnWgaICSjTmNNaLFPQPghPQpa60NPRI6azEvV6Ad+7F3xvB+7liREeqLRnuAvbKJx4EW ba2w== X-Gm-Message-State: AC+VfDwLdv+lhhhVuBsl8jaCLhSoazc5GzJYtLtXP1t/V2F7w77bz3WR t7I3qRZQ2wsaBzYcjy+aHp7kgg== X-Google-Smtp-Source: ACHHUZ4gCQgkWoSRtBReko1joJOgCQi75hy+YTkIVExaO1jeKusCQ4URppbt/NV8ey8OWNhUtEpd3Q== X-Received: by 2002:a2e:7818:0:b0:2a8:baab:fb2e with SMTP id t24-20020a2e7818000000b002a8baabfb2emr4785110ljc.47.1683025285988; Tue, 02 May 2023 04:01:25 -0700 (PDT) Received: from [192.168.1.101] (abyl248.neoplus.adsl.tpnet.pl. [83.9.31.248]) by smtp.gmail.com with ESMTPSA id z17-20020a2e8e91000000b002a8a77f4d03sm5280365ljk.59.2023.05.02.04.01.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 May 2023 04:01:25 -0700 (PDT) Message-ID: <62f14bec-c293-7e62-50af-9d87be5853b7@linaro.org> Date: Tue, 2 May 2023 13:01:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH v6 13/13] arm64: dts: qcom: qrb5165-rb5: Switch on TCPM orientation-switch for usb_1_qmpphy Content-Language: en-US To: Bryan O'Donoghue , linux@roeck-us.net, heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org, andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, luca.weiss@fairphone.com, linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: caleb.connolly@linaro.org, subbaram@quicinc.com, jackp@quicinc.com, robertom@qti.qualcomm.com References: <20230501121111.1058190-1-bryan.odonoghue@linaro.org> <20230501121111.1058190-14-bryan.odonoghue@linaro.org> From: Konrad Dybcio In-Reply-To: <20230501121111.1058190-14-bryan.odonoghue@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On 1.05.2023 14:11, Bryan O'Donoghue wrote: > Switch on USB orientation-switching for usb_1_qmp via TCPM. Detecting the > orientation switch is required to get the PHY to reset and bring-up the PHY > with the CC lines set to the appropriate lane. > > Signed-off-by: Bryan O'Donoghue > --- > arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts > index b5cc45358a474..8935a8e327904 100644 > --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts > +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts > @@ -1295,6 +1295,14 @@ &usb_1_qmpphy { > > vdda-phy-supply = <&vreg_l9a_1p2>; > vdda-pll-supply = <&vreg_l18a_0p92>; > + orientation-switch; > + ports { > + port@1 { > + qmpphy_typec_mux_in: endpoint { You defined these ports in patch 6, you can simply reference the labels and assign endpoints. Konrad > + remote-endpoint = <&pm8150b_typec_mux_out>; > + }; > + }; > + }; > }; > > &usb_2 { > @@ -1375,6 +1383,12 @@ pm8150b_role_switch_out: endpoint { > remote-endpoint = <&dwc3_role_switch_in>; > }; > }; > + port@1 { > + reg = <1>; > + pm8150b_typec_mux_out: endpoint { > + remote-endpoint = <&qmpphy_typec_mux_in>; > + }; > + }; > }; > }; > };