Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2209246rwd; Fri, 19 May 2023 02:27:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4+1qrAdkLJLWjp+1mZqbOWOCRiDhHiNudI/ExOqYnuLF3HDayiXHX8RP2qAQZoRYRHbVcN X-Received: by 2002:a17:90b:164a:b0:253:70b2:1c53 with SMTP id il10-20020a17090b164a00b0025370b21c53mr1607273pjb.9.1684488460992; Fri, 19 May 2023 02:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684488460; cv=none; d=google.com; s=arc-20160816; b=gBpFvoutytcHlR3w63I5gHf/Y0TxNKwwHBlxRO96BHOPCeqaEoNMLUqGputzJi9gHK HL2Fyj9TlsaTm+Q6ob26t3B35AZ1ssNKcFdmuulp8mbTP/az8SBxRgqWO9RSNDGKwjsK HX4gBM72jl9d1jqv1qJou6ZK5nSNDM/hBo6+XNRdTnTytbSyAyjqZ56Ld4ixjrfHRpU6 JhVdWrsrAs7TkmSGR0/V9deBQlrHXgchXaFc1++k6q7bx7zoVdTbcRLOglUZtL2t04uM LWC3a0r+fIwwefCdSG6DPjmqvHwYFy3+f5Ow7SJ9byHN0X4IpN3urtmxQBopIx4pLd1P uU8w== 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=HxtAuTytXz1rC3wkkLh+iRtZvukHgoYeviBPLq5iVJQ=; b=QUEYiOIQbJxXDLOqLetHlXmt89AnuiPQU09c0R/8X9dOpA6DFSFPq85v5BOLLXWJzp HgXqSyWApoLH7VJfB2eV4tcqBtHpZf++yM35D1Ai//JoCkCoLk0qchPppumYaT/2I2Mh YtPNkxrKukRsHfTNvAtquljwhyXOEaxTrUgAtLSZEZcu4BeQHleASIWGD8Q91LSK/IL9 VEkXxBRmpzhXaio4JybTEMmaifPt0kQ5LJ2NGyagKe6yCeeiSvg3Y62lVl2oqZAKezWe 9soDBbY5SMk1dOIlkFDOfuIioFZPVlEJG0LGeR+zF8iPlt3/M8hl+rTNUze45dzGSqiN nhlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=dIwrHBfH; 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 mp12-20020a17090b190c00b0024df18639fasi1369183pjb.154.2023.05.19.02.27.28; Fri, 19 May 2023 02:27:40 -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=dIwrHBfH; 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 S231180AbjESJDp (ORCPT + 99 others); Fri, 19 May 2023 05:03:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230077AbjESJDo (ORCPT ); Fri, 19 May 2023 05:03:44 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A7761735; Fri, 19 May 2023 02:03:22 -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 34J5o0Lv032766; Fri, 19 May 2023 09:03:16 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=HxtAuTytXz1rC3wkkLh+iRtZvukHgoYeviBPLq5iVJQ=; b=dIwrHBfHzDUPKtXEFUPRa/gDdTyjbmoZem1kLcwl5WuuJhmV8Iug6Y0PcWJOkSBp7nO7 gYU9eJltk1OBCXuvSglq9u2rgmh83asfYflCiexRoWXyNgb4Ez3OjPGD3HxpqXO0br67 urUmtRjUz3NML0bB45s20lozznFmcsjlYZTJ12psE7pHTNSpMjAM1YQU/3Lp9lRGpAde N+P1M0b1qrlDnnW73gdqupz39pfe0uFyoUUn4HecwqjH/usbSH0iNPmOgRVSZeG56yP1 fGo7XfjOG2ETbWOZ/s2wDtIilhdIzUvTN9GxiQ0z76Wal2bggQApYbZGYalrOQG5Omuu cQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qnfpw314w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 May 2023 09:03:15 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34J93EEq000474 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 May 2023 09:03:14 GMT Received: from devipriy-linux.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.986.42; Fri, 19 May 2023 02:03:07 -0700 From: Devi Priya To: , , , , , , , , , , , , , , , , CC: , , , , , Subject: [PATCH V4 5/6] arm64: dts: qcom: ipq9574: Enable PCIe PHYs and controllers Date: Fri, 19 May 2023 14:32:18 +0530 Message-ID: <20230519090219.15925-6-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230519090219.15925-1-quic_devipriy@quicinc.com> References: <20230519090219.15925-1-quic_devipriy@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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-ORIG-GUID: xNOBH09VmTnBdz25uzjyoHCTL_PkGY7y X-Proofpoint-GUID: xNOBH09VmTnBdz25uzjyoHCTL_PkGY7y X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-19_05,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 mlxscore=0 suspectscore=0 clxscore=1015 bulkscore=0 adultscore=0 phishscore=0 mlxlogscore=876 impostorscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305190076 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Enable the PCIe controller and PHY nodes corresponding to RDP 433. Signed-off-by: Devi Priya --- Changes in V4: - Added pin definitions for wake and clkreq gpios arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts | 113 ++++++++++++++++++++ 1 file changed, 113 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts b/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts index 1a35fbc42f8c..6042084200b5 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts +++ b/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts @@ -8,6 +8,7 @@ /dts-v1/; +#include #include "ipq9574.dtsi" / { @@ -62,6 +63,45 @@ }; }; +&pcie1_phy { + status = "okay"; +}; + +&pcie1 { + pinctrl-names = "default"; + pinctrl-0 = <&pcie1_default>; + + perst-gpios = <&tlmm 26 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 27 GPIO_ACTIVE_LOW>; + status = "okay"; +}; + +&pcie2_phy { + status = "okay"; +}; + +&pcie2 { + pinctrl-names = "default"; + pinctrl-0 = <&pcie2_default>; + + perst-gpios = <&tlmm 29 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 30 GPIO_ACTIVE_LOW>; + status = "okay"; +}; + +&pcie3_phy { + status = "okay"; +}; + +&pcie3 { + pinctrl-names = "default"; + pinctrl-0 = <&pcie3_default>; + + perst-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 33 GPIO_ACTIVE_LOW>; + status = "okay"; +}; + &sdhc_1 { pinctrl-0 = <&sdc_default_state>; pinctrl-names = "default"; @@ -79,6 +119,79 @@ }; &tlmm { + + pcie1_default: pcie1-default-state { + clkreq-n-pins { + pins = "gpio25"; + function = "pcie1_clk"; + drive-strength = <6>; + bias-pull-up; + }; + + perst-n-pins { + pins = "gpio26"; + function = "gpio"; + drive-strength = <8>; + bias-pull-down; + output-low; + }; + + wake-n-pins { + pins = "gpio27"; + function = "pcie1_wake"; + drive-strength = <6>; + bias-pull-up; + }; + }; + + pcie2_default: pcie2-default-state { + clkreq-n-pins { + pins = "gpio28"; + function = "pcie2_clk"; + drive-strength = <6>; + bias-pull-up; + }; + + perst-n-pins { + pins = "gpio29"; + function = "gpio"; + drive-strength = <8>; + bias-pull-down; + output-low; + }; + + wake-n-pins { + pins = "gpio30"; + function = "pcie2_wake"; + drive-strength = <6>; + bias-pull-up; + }; + }; + + pcie3_default: pcie3-default-state { + clkreq-n-pins { + pins = "gpio31"; + function = "pcie3_clk"; + drive-strength = <6>; + bias-pull-up; + }; + + perst-n-pins { + pins = "gpio32"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + output-low; + }; + + wake-n-pins { + pins = "gpio33"; + function = "pcie3_wake"; + drive-strength = <6>; + bias-pull-up; + }; + }; + sdc_default_state: sdc-default-state { clk-pins { pins = "gpio5"; -- 2.17.1