Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3152813rdg; Tue, 17 Oct 2023 06:19:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIbBYcY9Qa+LCxlTdcbTWxCiCPeKxEQElffO11pgAxbUZQnLDvhiGjiLFIjrpDcStV+UKg X-Received: by 2002:a05:6a20:7489:b0:15c:b7ba:6a4d with SMTP id p9-20020a056a20748900b0015cb7ba6a4dmr2265500pzd.50.1697548797029; Tue, 17 Oct 2023 06:19:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697548797; cv=none; d=google.com; s=arc-20160816; b=b3VnscXDws9BmOWODG9WdAsXDDcTrHVbab9ShROxZsFdpsdGjPfD3YfkugsyNA2MC0 oXQSiD33FRjJimQiWx7aHz5syTCWLOBjmdwNJqtYTj/PshZfRwjvjnhERNgu5i142B8d ivY18HNp6wY6rzot1WsFbATGX2yu0BzlP90qPEhzdGZVcvi8mjJOqa6NeJM3iDbiRbIH A47duJRn8OKZjJJa/Sl6bJeo+HrRABfCyMRicNfD4ovNNMloSC9qSCu//fyTEXPz/yDN a4tSpPWZAxbBl92KW+3dP4/TShXHHn4ABiwZ1U20rgICMzgk3Q5tRdCFAgXgA22GVYGH XC2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=omuWM003BT3MJQaVLbit0OGTV2xNjQ09oSQOKrMSkGI=; fh=lnz4DRjlq9crmzgxXmwaNWKaJ11J7ZN7K9PizVBu28Q=; b=J8pn7NxjKkfQrVqbzIan4S2kGfToP8RJf1H3aAr50QHMB3YqxRWA2wD2hqkfLsr6Zy +AkhuwxX6AKz4thS0DW7kD8104Fkudg2eVkE3aDVnzm2iavAmxJ9Dvawe/or1aA22Vrw IBMTgrOstFcU0aEH4rKjhkcFNdYCw+cKC19JeH0QOUI61LIPaIYtd5e5mHGBdiMDalcg l6RGw8A8QCIc6N01hU9qAK6R9q10/DERpUOgoPUDSpaY4ShMHWt0N5Y+R4AiKSGxPvkw 1nwnvXggsB3zQoPjUzuH4jMD/72py8OtYHrxRzE+7NqAfIOTWjpxFPpuUbAcEEIJk3Lv pYVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ewCerEXQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id i127-20020a639d85000000b00573fa4cfe49si1700522pgd.166.2023.10.17.06.19.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 06:19:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ewCerEXQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 1EF77801B9FD; Tue, 17 Oct 2023 06:19:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343938AbjJQNTu (ORCPT + 99 others); Tue, 17 Oct 2023 09:19:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343965AbjJQNTp (ORCPT ); Tue, 17 Oct 2023 09:19:45 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E7F7122; Tue, 17 Oct 2023 06:19:39 -0700 (PDT) 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 39HD78Yq004257; Tue, 17 Oct 2023 13: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-transfer-encoding : content-type; s=qcppdkim1; bh=omuWM003BT3MJQaVLbit0OGTV2xNjQ09oSQOKrMSkGI=; b=ewCerEXQ4xLmmpMWnu7c+BemPnOeyC5mL72uG4FTqb9Z3C0ba1BnVPw8jbKTH/GXZmpP drxm5uHy/efAn4C91v50K4v4rrzvFf2RMxqpsjwu6suDx0b2nPieJJoYniwWfO2wyg36 8coJ6mw+IW1qFQL+6am79IPRI4XVfpQBmFwP9ZzN2+m98CTssgY9wpQF1Gb0xHk1A58r fRaHWMIA3e5/dfyR2zpL0SpiGji3m56V4VlLXVio9kVc1+qGzSR/Zxd1oPR5+1WG50LF BkP1lzkBEAa/9QqcsPVvu620yTjbWE9C1MPShn5GPtgbx2WC9BFKD2D0FGRMfzeLIdns Bw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tstv9r0un-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Oct 2023 13:19:32 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39HDJVLU009503 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Oct 2023 13:19:32 GMT Received: from hu-kriskura-hyd.qualcomm.com (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.39; Tue, 17 Oct 2023 06:19:26 -0700 From: Krishna Kurapati To: Thinh Nguyen , Greg Kroah-Hartman , Philipp Zabel , "Andy Gross" , Bjorn Andersson , "Konrad Dybcio" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , CC: , , , , , , Krishna Kurapati Subject: [RFC 6/8] arm: dts: qcom: Add pmic glink support for sm8450-qrd Date: Tue, 17 Oct 2023 18:48:49 +0530 Message-ID: <20231017131851.8299-6-quic_kriskura@quicinc.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231017131851.8299-1-quic_kriskura@quicinc.com> References: <20231017131851.8299-1-quic_kriskura@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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-GUID: rGxtpp6Tl0RSZ_77yb1HVCqPdr0OpooL X-Proofpoint-ORIG-GUID: rGxtpp6Tl0RSZ_77yb1HVCqPdr0OpooL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-17_02,2023-10-17_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 phishscore=0 priorityscore=1501 mlxlogscore=684 impostorscore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 bulkscore=0 malwarescore=0 clxscore=1015 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310170113 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 17 Oct 2023 06:19:55 -0700 (PDT) Add Pmic Glink support for sm8450-qrd to facilitate passing of roe switch notifications generated by ADSP to dwc3 core via ucsi and pmic glink's. Signed-off-by: Krishna Kurapati --- arch/arm64/boot/dts/qcom/sm8450-qrd.dts | 46 ++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450-qrd.dts b/arch/arm64/boot/dts/qcom/sm8450-qrd.dts index fb800d24b00b..aec47e45284e 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-qrd.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-qrd.dts @@ -27,6 +27,40 @@ chosen { stdout-path = "serial0:115200n8"; }; + pmic-glink { + compatible = "qcom,sm8450-pmic-glink", "qcom,pmic-glink"; + #address-cells = <1>; + #size-cells = <0>; + + connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + power-role = "dual"; + data-role = "dual"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + pmic_glink_hs_in: endpoint { + remote-endpoint = <&usb_1_dwc3_hs>; + }; + }; + + port@1 { + reg = <1>; + + pmic_glink_ss_in: endpoint { + remote-endpoint = <&usb_1_dwc3_ss>; + }; + }; + }; + }; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; @@ -453,7 +487,17 @@ &ufs_mem_phy { &usb_1 { status = "okay"; - dr_mode = "peripheral"; + + dr_mode = "otg"; + usb-role-switch; +}; + +&usb_1_dwc3_hs { + remote-endpoint = <&pmic_glink_hs_in>; +}; + +&usb_1_dwc3_ss { + remote-endpoint = <&pmic_glink_ss_in>; }; &usb_1_hsphy { -- 2.42.0