From patchwork Fri Jul 21 17:24:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mrinmay Sarkar X-Patchwork-Id: 124040 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp369328vqg; Fri, 21 Jul 2023 10:48:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlGNQ7gE2AmB3/WwjG1olPjQadJ8EhJ6TYs1cJNumFs+rQc5JM0lNSeQSnGp3CC6gEf1YYMY X-Received: by 2002:a05:6a20:6a28:b0:135:26ad:124 with SMTP id p40-20020a056a206a2800b0013526ad0124mr2605661pzk.5.1689961706736; Fri, 21 Jul 2023 10:48:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689961706; cv=none; d=google.com; s=arc-20160816; b=drTXMGpo493eO0q/Uf9LGOwHtbcKiw7pTpPxo4LJz/lop/ye2nuStYkUthIHgo5lJ/ b3dNEEnI5BTJRynHHXPET1Mgop87mFVjqsTZWmJg4TlAXkr3wpY4ZZyrLuxoKq9PcV3K MgN+ylV8usxMr/AEcoW1+IyOh6oFGRMp/Zz/FuaIqfu4a6b2lgYrLr30Juqr+IpTODZz a5DG1SeMjRs+w+39JwMNePnDnzlVYc1AQx5UEYjy+acUcz9yzvJtEZgK+T3rEZ0U2hl/ e3unrjlNxaA1n5S3tTQCvv8AXHcmodTqUbnoEGasSEmxmaJVpfYRhK2Lu3NPRFFkYMgC kZTg== 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=MskCSFNl+rmVIkfxmIb4pmSgIy4cHH7XAmsFuhx3yZw=; fh=fa3AiaE4KLv2j4FY3Qgg7xWWvU+TpRVNhCr9/l8NBoA=; b=MrOl/9xQ7RPveNLZ/PUbzpEvwBnXCjJrZD+gbkPZ3ht+VVEeSUWcy0rlqMx/VH+4Wa wyxc/6bvk3zYiy6+OJnJqHYoU8N+mff/eCo9kivMpkEaZCO4YlbCcrc3YHc5qr3sX1CG zaGeWr2g6Yhe2xHM+tOVO1dnYKJJeoCJjQXxnzPEQZAYiMQamaE+f/+02PO6XCzucmYk nXSJ4Ih7WMNxMPV550qw1AQ+KAbSpGjWGPVPWymyWNPmBrqlMt5nx31HHuY/S0WvvHt1 3PLayNmXLJHoE7znCk1e5UlMqb5y8Z9TfVNkfaTCFsgwabP2QC2nmFmnGPDC6qze1rwh Uyjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JP1oRmq2; 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 eh4-20020a056a00808400b0067be4c2b937si3350377pfb.281.2023.07.21.10.48.13; Fri, 21 Jul 2023 10:48:26 -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=JP1oRmq2; 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 S231187AbjGURZH (ORCPT + 99 others); Fri, 21 Jul 2023 13:25:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231179AbjGURY7 (ORCPT ); Fri, 21 Jul 2023 13:24:59 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 945412699; Fri, 21 Jul 2023 10:24:58 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36LDSV4t011700; Fri, 21 Jul 2023 17:24:53 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=MskCSFNl+rmVIkfxmIb4pmSgIy4cHH7XAmsFuhx3yZw=; b=JP1oRmq2C+kSFKhf4JVjRWnr9hNb4BndoAEGdpcR8p8dP/WTHm6VEih5eUWjlf2baFcB nxnfgqyiAGLAevwHZ5nobDbwboqefWNCIxmxad3o/9iEXNucC3AYet69LlinaH2pSALU NNwfJlTF1dzlV3sYvRERoBr19ZjFzHBVwA7A2OPQx3Cd2NLM13wVoxYQNoCTmfIB0uNY +9a/K+jUHVBtkCpyc68dks+lgIYxUK/+YjGnx/JigpHar0Tvhjceal7crf8tTTrTnpfV uSfSfbkUQGNfG5oy0czwKAP3wnlYOkei0vmMahourJgYQdwpgR7xmHG50SpvzvFhBKH8 gw== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rykseshh2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jul 2023 17:24:52 +0000 Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 36LHOniK023804; Fri, 21 Jul 2023 17:24:49 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 3rumhknepx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 21 Jul 2023 17:24:49 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 36LHOlEF023783; Fri, 21 Jul 2023 17:24:49 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-msarkar-hyd.qualcomm.com [10.213.111.194]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 36LHOmRs023795; Fri, 21 Jul 2023 17:24:48 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3891782) id 0B3A132C9; Fri, 21 Jul 2023 22:54:48 +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 , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 4/4] arm64: dts: qcom: sa8775p-ride: enable pcie nodes Date: Fri, 21 Jul 2023 22:54:35 +0530 Message-Id: <1689960276-29266-5-git-send-email-quic_msarkar@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1689960276-29266-1-git-send-email-quic_msarkar@quicinc.com> References: <1689960276-29266-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: brEAcvx3wGwZ2EfJv4qfdTElkpH9gVN0 X-Proofpoint-ORIG-GUID: brEAcvx3wGwZ2EfJv4qfdTElkpH9gVN0 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-21_10,2023-07-20_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 phishscore=0 mlxlogscore=765 mlxscore=0 spamscore=0 adultscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307210153 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,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: 1772053286856167027 X-GMAIL-MSGID: 1772053286856167027 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 8c2890b..ed76680 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-state { + perst-pins { + pins = "gpio2"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + clkreq-pins { + pins = "gpio1"; + function = "pcie0_clkreq"; + drive-strength = <2>; + bias-pull-up; + }; + + wake-pins { + pins = "gpio0"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + pcie1_default_state: pcie1-default-state { + perst-pins { + pins = "gpio4"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + clkreq-pins { + pins = "gpio3"; + function = "pcie1_clkreq"; + drive-strength = <2>; + bias-pull-up; + }; + + wake-pins { + 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 {