Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2021910rwp; Thu, 13 Jul 2023 22:31:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlGD/uXuw1vb1X1rTEmELdjHZiu3TrxNAJCg3EklpTvB+MQbxNXclCgDGWUNsiGwV4Ypi6HC X-Received: by 2002:a17:906:4e:b0:98e:1deb:cb03 with SMTP id 14-20020a170906004e00b0098e1debcb03mr3110027ejg.56.1689312675475; Thu, 13 Jul 2023 22:31:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689312675; cv=none; d=google.com; s=arc-20160816; b=y2xLEguGNMbMJleudLL70Y6+1nGMPojO/WI+dttnWHt4obvK87FvFZITM5bpJDlFCd NaCbN3eaKidYnE6na9sZQ8pU2Q+pQ/oeU1vhMgMRzG9QV+2CFU3igjhFvlz12lktfIda jk+1Ql6UCOiBhqyAQCDlwSxgnMIspEZrTrIZ50oEoI4ScsP5bn/sx7M5WVQ1evloA51v NhouxhLpc4+sIWSTOiR0NHWngpsVatsQY59VTwywR6+82fGcla3t1T4NPz4kr+HddByH XVBKYqdgBB5oep67mkWOf0hfD4PJMvtYY6vVWldpdTGoOayhlz/eW5M7A3Ve2cbo/BkE 7NCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=/Lx1ab3qRgx8WdYB3n1YuDrtzTcmtaaYbwnH1Hr7/XE=; fh=1PlPhL2iqZbkg6vrFcwyXzOFJk75/Sstg8kx1Kza+RM=; b=i+7o8PlmYktmmuJQTfN0SXpIqYIfhkcpk6X7Bp8tWM7Qbbr/Bvq7yghovANbvDKs09 VH4y9PSMC71VKEqqLErD6UFZoSPeUZ+fvsU0NoQ4SJqEXdptbOKmK99SNmoW4QZaNQX8 N0qvvydpDHi9+JCcqCwNTDioopdTWkmbiJuPDiGGmvM63xq0SKjO9DQHNca7lX8o3UV8 lo/QyEVSuLEjc/fB6SnmYzCVDIqtDVuINij2DMxQNOVk2rZ8hgKyjqm7vmRwIwqd7xaj nnTIxLleyFwtOYg5hk/UA6CHjt9v8XQHHFcclK6XiXXenEn8qXvRjAFSm3tu8yvXVV54 BD9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=gbdpvZey; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kq21-20020a170906abd500b00984713011c1si8702985ejb.306.2023.07.13.22.30.51; Thu, 13 Jul 2023 22:31:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=gbdpvZey; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234995AbjGNFJf (ORCPT + 99 others); Fri, 14 Jul 2023 01:09:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234088AbjGNFJQ (ORCPT ); Fri, 14 Jul 2023 01:09:16 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51A8830E2; Thu, 13 Jul 2023 22:09:11 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36E3drsn005977; Fri, 14 Jul 2023 05:09:02 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; s=qcppdkim1; bh=/Lx1ab3qRgx8WdYB3n1YuDrtzTcmtaaYbwnH1Hr7/XE=; b=gbdpvZeyZXHeFVl9nlQvQVFGqwj4da6o6vpjSbFJA9S/G1vv0QIBXx7FSrWsGWzqu8YN Sj5sM1OgQrS/GsbKM4vB70zhBJmB8HZCLDNuFlyJsXKkbl3Li1COvq/flq/P5SB/iZIh k3kbgl2EzNP7FWzmExQ27FYDE0pRxjMa/cDdZXZOxbOvgmZ/yrql8ohbcDvcJtaVhC+X /BTfzJR7ZLZp2xXorW3fpe4yFv/PfUHKQJ94fbPwnqwXGcg4chitUE6/7OfUhKD65YyH 0DfgAeLN1/xMp9h4lVv2twNr1pCjxmMUE3232m581ag1z9Kv2cjXY5H/JJYwipdvsD8j rw== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rtpu90vp9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Jul 2023 05:09:02 +0000 Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 36E58xtW001423; Fri, 14 Jul 2023 05:08:59 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 3rq0vm5789-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 14 Jul 2023 05:08:59 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 36E58ucW001391; Fri, 14 Jul 2023 05:08:59 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-msarkar-hyd.qualcomm.com [10.213.111.194]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 36E58woB001416; Fri, 14 Jul 2023 05:08:59 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3891782) id 27058333B; Fri, 14 Jul 2023 10:38:58 +0530 (+0530) From: Mrinmay Sarkar To: agross@kernel.org, andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, konrad.dybcio@linaro.org, mani@kernel.org Cc: quic_shazhuss@quicinc.com, quic_nitegupt@quicinc.com, quic_ramkri@quicinc.com, quic_nayiluri@quicinc.com, dmitry.baryshkov@linaro.org, Mrinmay Sarkar , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Vinod Koul , Kishon Vijay Abraham I , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Subject: [PATCH v2 6/6] arm64: dts: qcom: sa8775p-ride: enable pcie nodes Date: Fri, 14 Jul 2023 10:38:38 +0530 Message-Id: <1689311319-22054-7-git-send-email-quic_msarkar@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1689311319-22054-1-git-send-email-quic_msarkar@quicinc.com> References: <1689311319-22054-1-git-send-email-quic_msarkar@quicinc.com> X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 6I2BhuN07qbPPVy0jpvmQ9GWN1xMLuQI X-Proofpoint-ORIG-GUID: 6I2BhuN07qbPPVy0jpvmQ9GWN1xMLuQI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-14_02,2023-07-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 priorityscore=1501 mlxlogscore=795 clxscore=1015 adultscore=0 spamscore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 malwarescore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307140046 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 Enable pcie0, pcie1 nodes and their respective phy's. Signed-off-by: Mrinmay Sarkar --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 80 +++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index b2aa160..d3b2ab0 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -552,6 +552,86 @@ bias-pull-down; }; }; + + pcie0_default_state: pcie0-default { + perst { + pins = "gpio2"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + clkreq { + pins = "gpio1"; + function = "pcie0_clkreq"; + drive-strength = <2>; + bias-pull-up; + }; + + wake { + pins = "gpio0"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + pcie1_default_state: pcie1-default { + perst { + pins = "gpio4"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + clkreq { + pins = "gpio3"; + function = "pcie1_clkreq"; + drive-strength = <2>; + bias-pull-up; + }; + + wake { + pins = "gpio5"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + +&pcie0 { + perst-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&pcie0_default_state>; + + status = "okay"; +}; + +&pcie1 { + perst-gpios = <&tlmm 4 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&pcie1_default_state>; + + status = "okay"; +}; + +&pcie0_phy { + vdda-phy-supply = <&vreg_l5a>; + vdda-pll-supply = <&vreg_l1c>; + + status = "okay"; +}; + +&pcie1_phy { + vdda-phy-supply = <&vreg_l5a>; + vdda-pll-supply = <&vreg_l1c>; + + status = "okay"; }; &uart10 { -- 2.7.4