Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5211015rdb; Wed, 13 Dec 2023 02:05:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYndHd/VO6NOazXPYJktMpQ1+L/E14rGqGWYmUmBqME4FhsYW20faeP+i6ZeJ7I0whmyGX X-Received: by 2002:a05:6a00:804:b0:6ce:689d:e002 with SMTP id m4-20020a056a00080400b006ce689de002mr4915536pfk.42.1702461903932; Wed, 13 Dec 2023 02:05:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702461903; cv=none; d=google.com; s=arc-20160816; b=QuFv+iamqxtPYbdwgDP2EIq7l2HKotOW3Q3JEdCCfBkDaMW8BFcx0dBrJnExiYcmE4 6cxlinaLaXYbwJwIHpFxhbTy3kH+tiTsKIsBwBnOuDYMjyVJI3XQlhZphB1SXLYon2Z7 AsKJXxsTBPM3SrD48Byj1elNvP+79hSvPRT8XiIQsfrhc696+rM8q3E/e2kW7KoBkG30 Msn2tGgYwiQ6pnNL7AM/jhKk+TL3ZqGZuRQERDUjs/t3Rl7ydJCdQ1FGJZPoES28fNWp MkU9o0jqcLy5o7tNGtmjrJUf2BN9C+isjtJxOPht+olaOWPuz+6kAH34pWZboxJKAjET NYqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=UW6j6VNL8VCBZjejnKXWYkB2uzhHDBsJkDlpkHGo9WI=; fh=HLY5y2YcQIs88q+LFTNhouENx5yELn2ON1IWhcNfOr4=; b=YkNfs01FaltXVgIfv/aV4cJtkuM2FwOAjRotq96DSZzg9ojaPM1pIuck76HbpImRzm eDD1h3LaJrOKqRCE0Bdkh8PDHAAsY7BvAlsCXyKpy4zKtF4ak607wpA31pz17AiRKxgX OlScjKCrOg6qr8s8aQtfbyiB+agizmyiWrzDTQOjfc/4QUs+xkMhRHp1ff3vmbVFlGOj U+57deMmOElDwx77olRYLBtD1MNgf+cGSE04bilvXMZswwP2v6MsRHv1YVovK/g2rUiJ Z0nuPjbQbgcvdNkQ4DrjV41ZARXInjRmHDLf7hCXSpT4qOHwYZfcyr+CKOkCFDPC5CC6 Ep7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xA86cer1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id q10-20020a056a00084a00b006cef51f51basi7163667pfk.300.2023.12.13.02.05.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 02:05:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xA86cer1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C0A24805DEFE; Wed, 13 Dec 2023 02:05:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235204AbjLMKEp (ORCPT + 99 others); Wed, 13 Dec 2023 05:04:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235202AbjLMKEj (ORCPT ); Wed, 13 Dec 2023 05:04:39 -0500 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CF13107 for ; Wed, 13 Dec 2023 02:04:44 -0800 (PST) Received: by mail-yb1-xb31.google.com with SMTP id 3f1490d57ef6-dbcc9d4b1aeso728160276.2 for ; Wed, 13 Dec 2023 02:04:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702461883; x=1703066683; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=UW6j6VNL8VCBZjejnKXWYkB2uzhHDBsJkDlpkHGo9WI=; b=xA86cer1x73WQBw6eUxfMW2X21XpNk//+fjeRGf8tTb9N2KJ+6gfoue/niyyGwsIXZ cZs4MsPyBSxMI5bfNcUYMLk5y9YzrM2TvgtOQVMODgegWL3l9xqArCxBeLtpurWvM/T4 zc0DC30OQiFkqBsUjPrvKrd6SvBNQKGnP1kR4AIw19ruooj5lQqtRW69qlBgu+wqGBHr CeB/2DLyB3yyMn0WQlhQe/YB31sYGHkaLodh6o0WI1i4HHuFiMbPNOivpwAcRdJ7AFeB K4MrqVIb0Bbdk9ZELxyn0YvI5I0rDRiylCvrpI2STPGGPeiqrDRs/ejeSvgbzEEtEt1V LrmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702461883; x=1703066683; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UW6j6VNL8VCBZjejnKXWYkB2uzhHDBsJkDlpkHGo9WI=; b=l3wWguUsar8oaHPFflQ4zXOh1AEiwKsEns4hzJ7KYb6004b2vx2G5KL6bSptUv15je riuR4FVTIJ+JuxSkWJOlLRTJZfciOxFyelZWmXrCzUblN/D+6e2pX/ft6BnmkVPAHeqK 6HEurp8+7F25XP6pWvYh2UBu17Eb8SD5vMy1tgJQDDQ9UARZ3kkNJeOPn/RdKG0JfUYV TLxLJJ+YBzXlQlX6aEicHQ/SttKOR7Eseo+PgA4sX7elELZWqcBW9wnnba8lMjTLIyzF iB9AmZs5X/IJvXXANQlURAkWlKvPvuJeNUA6ho0VBk/lpfve1LeWBc8JtAbRlvhi46WO zTUQ== X-Gm-Message-State: AOJu0YyjS5NMWbLYreHY8kJKEkyVfp5OMF/7tBLXelL9T1io7I13IVDt BKA1DtNxNYSNV2FBzeEK9qhwGDUxhz0q1BIh7HiQNA== X-Received: by 2002:a05:6902:28c:b0:db7:dad0:76d2 with SMTP id v12-20020a056902028c00b00db7dad076d2mr4693790ybh.110.1702461883525; Wed, 13 Dec 2023 02:04:43 -0800 (PST) MIME-Version: 1.0 References: <20231117101817.4401-1-quic_tengfan@quicinc.com> <20231117101817.4401-16-quic_tengfan@quicinc.com> <420ce17d-279e-47ee-9935-35bc03b89f98@quicinc.com> In-Reply-To: <420ce17d-279e-47ee-9935-35bc03b89f98@quicinc.com> From: Dmitry Baryshkov Date: Wed, 13 Dec 2023 12:04:32 +0200 Message-ID: Subject: Re: [PATCH 15/16] arm64: dts: qcom: sm8550-aim300: add pmic glink port/endpoints To: Tengfei Fan Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, tglx@linutronix.de, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@quicinc.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 13 Dec 2023 02:05:00 -0800 (PST) On Tue, 28 Nov 2023 at 10:11, Tengfei Fan wrote: > > > > =E5=9C=A8 11/17/2023 6:32 PM, Dmitry Baryshkov =E5=86=99=E9=81=93: > > On 17/11/2023 12:18, Tengfei Fan wrote: > >> Add nodes to support Type-C USB/DP functionality. > >> > >> On this platform, a Type-C redriver is added to the SuperSpeed graph. > >> > >> Signed-off-by: Tengfei Fan > >> --- > >> arch/arm64/boot/dts/qcom/sm8550-aim300.dts | 88 ++++++++++++++++++++= +- > >> 1 file changed, 87 insertions(+), 1 deletion(-) > >> > >> diff --git a/arch/arm64/boot/dts/qcom/sm8550-aim300.dts > >> b/arch/arm64/boot/dts/qcom/sm8550-aim300.dts > >> index 6dc3040b9f76..f3c558dd40f1 100644 > >> --- a/arch/arm64/boot/dts/qcom/sm8550-aim300.dts > >> +++ b/arch/arm64/boot/dts/qcom/sm8550-aim300.dts > >> @@ -100,7 +100,15 @@ > >> reg =3D <1>; > >> pmic_glink_ss_in: endpoint { > >> - remote-endpoint =3D <&usb_1_dwc3_ss>; > >> + remote-endpoint =3D <&redriver_ss_out>; > >> + }; > >> + }; > >> + > >> + port@2 { > >> + reg =3D <2>; > >> + > >> + pmic_glink_sbu: endpoint { > >> + remote-endpoint =3D <&fsa4480_sbu_mux>; > >> }; > >> }; > >> }; > >> @@ -519,6 +527,62 @@ > >> }; > >> }; > >> +&i2c_master_hub_0 { > >> + status =3D "okay"; > >> +}; > >> + > >> +&i2c_hub_2 { > >> + status =3D "okay"; > >> + > >> + typec-mux@42 { > >> + compatible =3D "fcs,fsa4480"; > >> + reg =3D <0x42>; > >> + > >> + vcc-supply =3D <&vreg_bob1>; > >> + > >> + mode-switch; > >> + orientation-switch; > >> + > >> + port { > >> + fsa4480_sbu_mux: endpoint { > >> + remote-endpoint =3D <&pmic_glink_sbu>; > >> + }; > >> + }; > >> + }; > >> + > >> + typec-retimer@1c { > >> + compatible =3D "onnn,nb7vpq904m"; > >> + reg =3D <0x1c>; > >> + > >> + vcc-supply =3D <&vreg_l15b_1p8>; > >> + > >> + orientation-switch; > >> + retimer-switch; > >> + > >> + ports { > >> + #address-cells =3D <1>; > >> + #size-cells =3D <0>; > >> + > >> + port@0 { > >> + reg =3D <0>; > >> + > >> + redriver_ss_out: endpoint { > >> + remote-endpoint =3D <&pmic_glink_ss_in>; > >> + }; > >> + }; > >> + > >> + port@1 { > >> + reg =3D <1>; > >> + > >> + redriver_ss_in: endpoint { > >> + data-lanes =3D <3 2 1 0>; > >> + remote-endpoint =3D <&usb_dp_qmpphy_out>; > >> + }; > >> + }; > >> + }; > >> + }; > >> +}; > >> + > >> &gcc { > >> clocks =3D <&bi_tcxo_div2>, <&sleep_clk>, > >> <&pcie0_phy>, > >> @@ -552,6 +616,16 @@ > >> status =3D "okay"; > >> }; > >> +&mdss_dp0 { > >> + status =3D "okay"; > >> +}; > >> + > >> +&mdss_dp0_out { > >> + data-lanes =3D <0 1>; > > > > Why? Are you really limited to two lanes for DP by the hardware? > I got confirmation from a colleague that it is right that limited to two > lanes. Excuse me, I missed your reply earlier. Is it 2 DP lanes and 2 SS USB lanes? Or are there just 2 lanes which are shared between DP and SS USB? > > > >> + remote-endpoint =3D <&usb_dp_qmpphy_dp_in>; > >> +}; > >> + > >> + > >> &mdss_dsi0 { > >> vdda-supply =3D <&vreg_l3e_1p2>; > >> status =3D "okay"; > >> @@ -861,6 +935,18 @@ > >> status =3D "okay"; > >> }; > >> +&usb_dp_qmpphy_dp_in { > >> + remote-endpoint =3D <&mdss_dp0_out>; > >> +}; > >> + > >> +&usb_dp_qmpphy_out { > >> + remote-endpoint =3D <&redriver_ss_in>; > >> +}; > >> + > >> +&usb_dp_qmpphy_usb_ss_in { > >> + remote-endpoint =3D <&usb_1_dwc3_ss>; > >> +}; > >> + > >> &xo_board { > >> clock-frequency =3D <76800000>; > >> }; > > > > -- > Thx and BRs, > Tengfei Fan --=20 With best wishes Dmitry