Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3678768rdh; Tue, 28 Nov 2023 00:11:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGU2LOrAJziMv79Gc3AGO1y7QcEchEwaEOkAMUetWLzkDwBjWPtAXnTAjHj/+GjdCTFyv6q X-Received: by 2002:a17:90b:3443:b0:27f:f655:e14c with SMTP id lj3-20020a17090b344300b0027ff655e14cmr12777649pjb.42.1701159108870; Tue, 28 Nov 2023 00:11:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701159108; cv=none; d=google.com; s=arc-20160816; b=D/8VMqwEhlHC8mZ6Gn9UwxivAXkkAfC8Ya9hTejJDtvoI6OknjPGK+5bEUZjaZlRH5 vKgTN79ScUaRwHLR8Ezq/JaWJhGHc/ZzxCBZfRXyIT/4N6wEE1kwZ1AQxXGUJknavIKK PFyXQtBIpCZtG1Hk1penwhfJH1DEcIt/AinxqYNSEyDvoSTOh4pf/hxkSvrT5sH4zRxc h99BFaefarDClu0UZ25OXZGTsjtz2Fg7Nv3/RVm0IwrAc3LJJdIgfsTlQUyiWS54rdmy k5Q183zYi2XCh4VfBaimFA6adxJlacbJu+BzNsAuGcrymLOTdSYe/Lfu1onT5B2Eg6Af V4CA== 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:from :references:cc:to:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=BtNV9fxeItkU7fpOKRpTTkq1EpJ8ElvN9qoExmaMMo0=; fh=V4KXNL34kSP+zT267yPY201Yz7ZFdQB6KhT3DOd2gqk=; b=Ik0Q6xrGuURNWlpQpQvG9Bm1/mDInv2voaNGenxhySbOOoxMFYKPpnPf0PL09c6jZK N0pg9Isk+xK6u+qi1xFjqpK4AF70HChHdF4DYpr1ODxowx1i1hOn9mByygKPIfoXh8j+ Bt+gzQDmjA6PHKr+RwLfnCp+RFITv3chiCdR8KGf+rL4xO8/uM9zP86chU00kkBdNWgE FetR+a7lkSoOCW2fGQe0NwT9HmLjUCu2fq8vgqkxAbgJYNUdOYkE4IJ8N/lvkZea/7PT KPo2yF29XY1hEYHf0WIqJyDqS2OFy9h40HGjBnPHo1CBXhBzoP+sIFoNRGmGbJbe8145 QBvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="F/8PUI6n"; 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=quicinc.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d8-20020a630e08000000b005c1cd55bf05si11129785pgl.882.2023.11.28.00.11.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 00:11:48 -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=@quicinc.com header.s=qcppdkim1 header.b="F/8PUI6n"; 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=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 16A73805EB2D; Tue, 28 Nov 2023 00:11:46 -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 S1343999AbjK1ILc (ORCPT + 99 others); Tue, 28 Nov 2023 03:11:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230044AbjK1ILa (ORCPT ); Tue, 28 Nov 2023 03:11:30 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DCDFB0; Tue, 28 Nov 2023 00:11:34 -0800 (PST) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AS5l8Mt012065; Tue, 28 Nov 2023 08:11:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=BtNV9fxeItkU7fpOKRpTTkq1EpJ8ElvN9qoExmaMMo0=; b=F/8PUI6nWUUO7nyDMwGIOLj8+Ygb7FyG+GP9HGSehmaxC7LJlr7oR5i0Os//FSoh2YGK 6VeV+21rCHeYKp53QVGSWYuWOFVRR5dGZ6qLmtE85kkmb5d88YrH5zhFy7P3+5DsIDWb wbLxsEhnFQ+0UAjcgIwtvBPT2Vivv55W8i6ISzcXbN/UpTXtENLS4UK1jxg6TgTcv0L/ UyS8OXEb0/aHfsM2a5r7cFl4+ZWo9oPKYT/AtjuAsxIyzE3Cfa/L8SLqkjYtlRzLnoZy 9UD3QI3prPP+wYWjvCkvF/aQNWD8lI5sZa+tlIl42CCdxxeKTOfn/5IekNLgXLfmuloy kw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3umsvajsx8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Nov 2023 08:11:20 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AS8BJj1021367 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Nov 2023 08:11:19 GMT Received: from [10.239.132.204] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 28 Nov 2023 00:11:14 -0800 Message-ID: <420ce17d-279e-47ee-9935-35bc03b89f98@quicinc.com> Date: Tue, 28 Nov 2023 16:11:12 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 15/16] arm64: dts: qcom: sm8550-aim300: add pmic glink port/endpoints To: Dmitry Baryshkov , , , , , , , CC: , , , References: <20231117101817.4401-1-quic_tengfan@quicinc.com> <20231117101817.4401-16-quic_tengfan@quicinc.com> From: Tengfei Fan In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: cNJyJUBvkVNb_T6jO9n5Dp1jNc-2l6xe X-Proofpoint-GUID: cNJyJUBvkVNb_T6jO9n5Dp1jNc-2l6xe X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-28_07,2023-11-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 malwarescore=0 suspectscore=0 spamscore=0 priorityscore=1501 impostorscore=0 mlxlogscore=899 phishscore=0 clxscore=1015 lowpriorityscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311280063 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]); Tue, 28 Nov 2023 00:11:46 -0800 (PST) 在 11/17/2023 6:32 PM, Dmitry Baryshkov 写道: > 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 = <1>; >>                       pmic_glink_ss_in: endpoint { >> -                        remote-endpoint = <&usb_1_dwc3_ss>; >> +                        remote-endpoint = <&redriver_ss_out>; >> +                    }; >> +                }; >> + >> +                port@2 { >> +                    reg = <2>; >> + >> +                    pmic_glink_sbu: endpoint { >> +                        remote-endpoint = <&fsa4480_sbu_mux>; >>                       }; >>                   }; >>               }; >> @@ -519,6 +527,62 @@ >>       }; >>   }; >> +&i2c_master_hub_0 { >> +    status = "okay"; >> +}; >> + >> +&i2c_hub_2 { >> +    status = "okay"; >> + >> +    typec-mux@42 { >> +        compatible = "fcs,fsa4480"; >> +        reg = <0x42>; >> + >> +        vcc-supply = <&vreg_bob1>; >> + >> +        mode-switch; >> +        orientation-switch; >> + >> +        port { >> +            fsa4480_sbu_mux: endpoint { >> +                remote-endpoint = <&pmic_glink_sbu>; >> +            }; >> +        }; >> +    }; >> + >> +    typec-retimer@1c { >> +        compatible = "onnn,nb7vpq904m"; >> +        reg = <0x1c>; >> + >> +        vcc-supply = <&vreg_l15b_1p8>; >> + >> +        orientation-switch; >> +        retimer-switch; >> + >> +        ports { >> +            #address-cells = <1>; >> +            #size-cells = <0>; >> + >> +            port@0 { >> +                reg = <0>; >> + >> +                redriver_ss_out: endpoint { >> +                    remote-endpoint = <&pmic_glink_ss_in>; >> +                }; >> +            }; >> + >> +            port@1 { >> +                reg = <1>; >> + >> +                redriver_ss_in: endpoint { >> +                    data-lanes = <3 2 1 0>; >> +                    remote-endpoint = <&usb_dp_qmpphy_out>; >> +                }; >> +            }; >> +        }; >> +    }; >> +}; >> + >>   &gcc { >>       clocks = <&bi_tcxo_div2>, <&sleep_clk>, >>            <&pcie0_phy>, >> @@ -552,6 +616,16 @@ >>       status = "okay"; >>   }; >> +&mdss_dp0 { >> +    status = "okay"; >> +}; >> + >> +&mdss_dp0_out { >> +    data-lanes = <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. > >> +    remote-endpoint = <&usb_dp_qmpphy_dp_in>; >> +}; >> + >> + >>   &mdss_dsi0 { >>       vdda-supply = <&vreg_l3e_1p2>; >>       status = "okay"; >> @@ -861,6 +935,18 @@ >>       status = "okay"; >>   }; >> +&usb_dp_qmpphy_dp_in { >> +    remote-endpoint = <&mdss_dp0_out>; >> +}; >> + >> +&usb_dp_qmpphy_out { >> +    remote-endpoint = <&redriver_ss_in>; >> +}; >> + >> +&usb_dp_qmpphy_usb_ss_in { >> +    remote-endpoint = <&usb_1_dwc3_ss>; >> +}; >> + >>   &xo_board { >>       clock-frequency = <76800000>; >>   }; > -- Thx and BRs, Tengfei Fan