Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1420540lqo; Sun, 12 May 2024 01:30:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW4vbNeaTwtbopmuCEu4i7YlTOPuWOiooQ08uJAOQGO494EHEzDnSSnnztCqS3bCA7JiI8g5rPAQtnUI7lzNHzRfqw3WmdFxQ4MCeBxdA== X-Google-Smtp-Source: AGHT+IFrZdsdLVhDFN1aX3Q5NKcnDo72NOvEcKgae+vIQw20a4M02xTO2BkAi+WzEXRBctOKdoyb X-Received: by 2002:a50:d744:0:b0:572:7b2b:d990 with SMTP id 4fb4d7f45d1cf-5734d6f4424mr6591396a12.30.1715502649101; Sun, 12 May 2024 01:30:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715502649; cv=pass; d=google.com; s=arc-20160816; b=V/WisYeiaf+nP4fbQvbEuwvn/ig6Wr+c86vMsv19x8KK5tvp3G5c9dnPsmZZ9kIuZA 9RZX+zOgsCErchTwW1Yt8PWtKRXeANXXzPJPVhs/fewthsv3XlCQdtQ4GFFwcEbYv1B0 13w0HT/32OgWmPM91cQoCK9io5GHkxn9aUgIGrcTwmfKip2ZgB+hqWuKPYVssGVWgohY iQzF9BGakRRZVD6lQA1uOoLLhEQZz/Pstx7DiMkSfdPNfPp//5fjp55gCql4h4IPGfck 3F5vWFQemKgufXALygGzRZz1HD6N17Rxtle6AWSY0bQf+uX9GWknLsa8MCSweXgzv9Cm LWsQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=TEs/16lhC+m3BAN1LxCdgLVHGWtig++dE7bji3Bl1yU=; fh=PXgdsY7v0aZd+xd1AVc7cP7H/TPXzLxk/rX7NyV4lx4=; b=mhnwQh0gpeac69KnwTLTwvgJed8MN4Gxeo3jPF0VuyPaEpniaE+Mx2Z759omi2X5Kc jKPYTHQw0M8+B/jrmJoHTxd4R6hSNCdQQr3vwOgJkjt+zPz4waRar/tTvczKfwkvVVyz IIxpevL5miBQhTOgaynEpRjVc5FqE2ebk7FPv6VqqoGGBuhlnnXrTUkH5xGjNb/nWELF boWMNGz7XFP3Lcdmy/WssiHzHQtyIIfptl2GpR6A1JLJNqOBMq+7mUOpWJSJpk2bp/GF 8vhqLfzN8t77wjTeYKaAAPYjOSXxOkYVqcPzR4J0hetfDPvCBqaYTglkAZArg4sDKQeZ uQUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VCfZvcj8; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-176835-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176835-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733beac6d1si3818788a12.36.2024.05.12.01.30.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 01:30:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176835-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VCfZvcj8; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-176835-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176835-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A5E2C1F213E4 for ; Sun, 12 May 2024 08:30:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B0FB38FA6; Sun, 12 May 2024 08:29:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="VCfZvcj8" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C065C20B28; Sun, 12 May 2024 08:29:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715502568; cv=none; b=BT3dHHFSx+fzsCS1G1x6w2OZkjehywSXVpVA1Lx0IyuXySeW6TLfp12MBXUOwbQXvRGObYY/zKiC1HwHtMh7qOCqW4jnhfij1YRwSgfR7BSjnOEvUEBhxCGrEs+801yfYIDRdp/gN5R39IE5ofIpUHEGAtCJBCllu6GOV+D6cpw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715502568; c=relaxed/simple; bh=78fxI55U9NS9poo+NVsaZ3TegXwZDyMhVsG9chL3dyU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dUoW0jvsPNWLgnpFI8qWyS04UUjwnuiMFT49cZOXF35q/haXkmp1G5zuRxfEGI0aN2KYUEi92jNBk6d84I3qFJ+BEjtExQrfwS1Jdu+gmHK9ZLTgmhSItzOdaow66kBak2sgiWZhIwJD84tZGtFJVqWQKu3uX7UWt5DM0EXBqP4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=VCfZvcj8; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qualcomm.com Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44C8RPPL032303; Sun, 12 May 2024 08:29:04 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; s=qcppdkim1; bh=TEs/16l hC+m3BAN1LxCdgLVHGWtig++dE7bji3Bl1yU=; b=VCfZvcj84Eh4JBfj8eBur/R BgCIVOoegL/HizRc4KTCikvleoObS6CKkvCnPClCmKFLvPTI+F8/ak3TY01obgXi dmAZpZb8/RF8iagBkaiRQa49WsJ/DxgNCjZC80VagjkXP8+W7zo0Y1kGTD0q9Hj7 0dkVTuQ6qkXyUbYBAJ2/HyM5z+oBA4+U4qy7tKG337RQ478JNmRyB/umwC2OhVYT 4IoTkF7HLwXQvcLHGeylFgWCo3b6P3VAMJnKl0fo8tCT9ZBf6PDVfQWBZhp0svEm pXWMJVnxHae96nRSa5EfnGhmhp8sIvnN1xG4IvBDCO7LTU2+roYq+BbYch3G1sA= = 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 3y21259gsv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 12 May 2024 08:29:03 +0000 (GMT) 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 44C8Sxox009797; Sun, 12 May 2024 08:29:00 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 3y21rkna3x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 12 May 2024 08:29:00 +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 44C8PgI6005071; Sun, 12 May 2024 08:29:00 GMT Received: from hu-devc-blr-u22-a.qualcomm.com (hu-devipriy-blr.qualcomm.com [10.131.37.37]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 44C8T0qN009817 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 12 May 2024 08:29:00 +0000 Received: by hu-devc-blr-u22-a.qualcomm.com (Postfix, from userid 4059087) id 1FA6E4198E; Sun, 12 May 2024 13:58:58 +0530 (+0530) From: devi priya To: bhelgaas@google.com, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, manivannan.sadhasivam@linaro.org, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Cc: quic_devipriy@quicinc.com Subject: [PATCH V5 5/6] arm64: dts: qcom: ipq9574: Enable PCIe PHYs and controllers Date: Sun, 12 May 2024 13:58:57 +0530 Message-Id: <20240512082858.1806694-6-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240512082858.1806694-1-quic_devipriy@quicinc.com> References: <20240512082858.1806694-1-quic_devipriy@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: rfBmmQ0BCHr85qnnIjOWZb476pwGGbYQ X-Proofpoint-ORIG-GUID: rfBmmQ0BCHr85qnnIjOWZb476pwGGbYQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-12_05,2024-05-10_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 lowpriorityscore=0 mlxlogscore=999 clxscore=1015 bulkscore=0 priorityscore=1501 impostorscore=0 phishscore=0 adultscore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405120063 Enable the PCIe controller and PHY nodes corresponding to RDP 433. Signed-off-by: devi priya --- Changes in V5: - No change 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 1bb8d96c9a82..f4b6d540612c 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-rdp-common.dtsi" / { @@ -15,6 +16,45 @@ / { compatible = "qcom,ipq9574-ap-al02-c7", "qcom,ipq9574"; }; +&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"; @@ -28,6 +68,79 @@ &sdhc_1 { }; &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.34.1