From patchwork Fri Jul 14 05:08:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mrinmay Sarkar X-Patchwork-Id: 120234 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2281802vqm; Thu, 13 Jul 2023 22:15:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlE14SKCLLpaS3oxSztCEMtOMYIpCjaO+URly5cLLTN+zrJj18BnjuIAa1Ibrl6JD6i9Nebn X-Received: by 2002:a17:90a:5d07:b0:263:f73d:9f50 with SMTP id s7-20020a17090a5d0700b00263f73d9f50mr2312027pji.19.1689311712082; Thu, 13 Jul 2023 22:15:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689311712; cv=none; d=google.com; s=arc-20160816; b=kRmDmJj0K42GwQKsAwePvMFFGkOmZJgIRjYJY0rwFPoQaeu6fhWzTf0D2LYtPiciBh 6toBfJmxzPtBQez00TyfRuYRyacNbivs6GKRthJmdX22U2hLxfsTh35ppuHjj+ssuKG0 K/2tN/xNJHqJqH6voK3ZLGn4dxSA7E6LRou6+ROkhx6PU5E7beIbkLRwnTcl7v9Xo0yW scw27KT6k/7g8kTozWy6tk48aJ3Hqz2Ss1pbbVdtAi9ytfLuxoU0tg3uwJjoOIXhICIb nILtcV6wzwAejaiLxf4/Ptg7Jz2H6KKuAu0vQN9Iouti/zG3SlfSc1RL8gYzSLu1UrcZ mWgw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m19-20020a17090a859300b002465d98f18csi623104pjn.170.2023.07.13.22.14.59; Thu, 13 Jul 2023 22:15:12 -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 S235002AbjGNFJg (ORCPT + 99 others); Fri, 14 Jul 2023 01:09:36 -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_Wilczy=C5=84?= =?utf-8?q?ski?= , 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771371717827850009 X-GMAIL-MSGID: 1771371717827850009 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 {