Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp410694rdb; Fri, 17 Nov 2023 02:20:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IH3pdY/8xhwPhR8Xu7yWawMjpPnrmglKhwq7r7gTIAIe+0IH/1HbE9RKDdaw5+FoBQ9bFWX X-Received: by 2002:a17:902:b408:b0:1cc:3dc6:8cfc with SMTP id x8-20020a170902b40800b001cc3dc68cfcmr11815290plr.22.1700216411502; Fri, 17 Nov 2023 02:20:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700216411; cv=none; d=google.com; s=arc-20160816; b=kDCoq8awhAPO/NIAdvhFFUJUhaQC0JZIZK6EJSz2k8zkLodwfHT3Hb45djxls+OkKQ 7Fm1hziT3gaOa2LV1iCKp+kqDJuzqCD7XG9gFwe2OyXcfa8ydK4e43s3FXQmurkOeOVz TnqWL2QZbE/2sLF0tHzshDBdah2/HZ/B+SWZ8uwtXYvXMW1sgoSHOG3guFXpgdACeMlx ntQ1CVDS7MLuHRsruq+Qk+Q4ku1xObve5Wt9LTfkB9AYQnFzXtsjJn0pXp62G1mHWj8B Y+FxqYqCtl+aGh6n0cd/ZCp0x3wJYqA2hfjePfX6RyWzo0TomzxM9QMBTjEU4CKqTu4r C1Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=RsChYDWMkOVrJHQxBZT4p8taBcUGAl8Q1dcX5YppBmE=; fh=2n2Y+RYHubIkscSnYAqg/mDqVSW4ayNK5xPy63dfWj4=; b=Zj0Nsl5JYBGmczA7cYfglnVzUOU2VXMq3iB3pnAjTN8URPaFYZeeWwzbF3EEyQyWzR pZvlPrI08KBP1SxTsBKbgBvRvna8/QyG0BCwDGXK51Q0n08SKRbz2HOHbqIR1Yqllfu4 LIseWzdVqjwovHdbQ0yWSmEf4gbT3f+FLV29aiOx7o9fzRiWcvOKa+32I/JzXPUZJEXD nu2Qm6Eow5AJiLXozdp//ogP4rvbSg0Tye5SnuMY0xpVEtDCqxLKQBrBb/Ay49FjHqbT jU4svmYC49jgLUIaqzvCDF8hFeS0WfGEjtSfV0Er6gUqWpiSwGQNBvhnkE7NCQVNZhZs s+kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="foUy/uke"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id bg4-20020a1709028e8400b001c566ea86eesi1517239plb.177.2023.11.17.02.20.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 02:20:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="foUy/uke"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id A21C581DDBE1; Fri, 17 Nov 2023 02:20:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345948AbjKQKT5 (ORCPT + 99 others); Fri, 17 Nov 2023 05:19:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345890AbjKQKTl (ORCPT ); Fri, 17 Nov 2023 05:19:41 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 443A01723; Fri, 17 Nov 2023 02:19:38 -0800 (PST) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AH9SBl8031529; Fri, 17 Nov 2023 10:19:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=RsChYDWMkOVrJHQxBZT4p8taBcUGAl8Q1dcX5YppBmE=; b=foUy/ukeocGf+E3YemI2np5BwaisoMcOuqqrhMYhxulgZ6l7/az3qLaNY8sWDVvMhmeq D+8zjCA/HAtx+MlN+brVN7wOeDl0ro9BlmHKTNHUgZsKifsG4byXcR4cMAmfN6daSzsh bQUIewG34ocEJ7tQa31y72zVvNSJWN2d5XT48XZMFvtgbJvW3eCWE6uTEPWIGSMICPDq n4kYUvfm23bID3K3gegRbDJB311Y7fSzTHTSyD4MdBON/+XIp89U6Z5LOsRXpTx3GtMh ci7ACENGNptjKkEAPyE37MDAUKNYM+d3H6bBEYWsJETJdiCmmn27UutaRNUH5gXud/Jf 7Q== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3udmw42cs8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 10:19:32 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AHAJW3Y023093 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 10:19:32 GMT Received: from tengfan2-gv.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Fri, 17 Nov 2023 02:19:28 -0800 From: Tengfei Fan To: , , , , , , CC: , , , <-cc=kernel@quicinc.com>, Tengfei Fan Subject: [PATCH 15/16] arm64: dts: qcom: sm8550-aim300: add pmic glink port/endpoints Date: Fri, 17 Nov 2023 18:18:16 +0800 Message-ID: <20231117101817.4401-16-quic_tengfan@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231117101817.4401-1-quic_tengfan@quicinc.com> References: <20231117101817.4401-1-quic_tengfan@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: GmPXurubAkUAU3eOhKJ8FiAzW1Z1I2V_ X-Proofpoint-ORIG-GUID: GmPXurubAkUAU3eOhKJ8FiAzW1Z1I2V_ 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-17_08,2023-11-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxlogscore=734 clxscore=1015 suspectscore=0 mlxscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311170076 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,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 17 Nov 2023 02:20:08 -0800 (PST) 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>; + 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>; }; -- 2.17.1