Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6626363rwb; Mon, 12 Dec 2022 04:34:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf4PVjjbywLg9SxfW6MIn2e2rOrfX6CGZYrLtWsuqZ1u/BDOjzWUNpIRYXcsiifos5e3ahym X-Received: by 2002:a17:906:274b:b0:7c1:7183:2d32 with SMTP id a11-20020a170906274b00b007c171832d32mr3352831ejd.56.1670848464224; Mon, 12 Dec 2022 04:34:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670848464; cv=none; d=google.com; s=arc-20160816; b=eJAEjKZx4y+4+iA/KMs/jZhRUfZscKHBE1ytWJ7AVRBUQV27LxIGbYL3dZxrP+aQZ6 hGA30YWCWuRliwvnAEh17XLykBsbx3IGvMY9DjR5kndgkcubt+gwwW9vPCgj5QXQkJKF hoAjxQ48E0dZFBzTm4MzCgNdAPw6LAj+euLoyOJACYCtTNS7kY/5ehKrW+s+F8IAdsgl oaCtbRCcj27s+0gVk911bi5xhcNAYgrTw+/5/9Kd/olSH00Oh4I4dFfKuv2yW5Bh3w9h PlL+zkhVlpPREOyC2HbLsSixAs5EwuCrGrgJQflBTsuvVEbDjDOkv0YpLcvB587+Jfqk rZrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3XkvgNx5sTLY+I2azRwSZJ5pkzu7ohIy979ecHKzVSk=; b=jFR46M3yCOQS4z9Nvaqfs/YXzdXD9zYpvKY506Wv9R02s7ZWCXBDM4us4ccUCsTzEJ Fvbnj//goKlOdduJIneFcrlZsuf1M9eBFqaQUl7g9dlkkQJbA0SKcCLIH7QDLgPzL1Lw UYzRMKC4L/nzTBfSaBhQayIZNZDtKZx+W6xGuy5U9uA31RjOVrYhr4oN+6YK9afeUhLW C0bJH3roIGHDdJjKaQmDRPZjL02BfWisgrrc9lUnaT2LIgiJqwXsvl8CWbLZiGdOo+jJ aVStpmOYNFTX3K5On5IkUokyKSGm5csT1LwK/kBSEOSZ1ecLE30igsMJyzcOv4lfk3LH F32w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fbak5wwS; 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 di21-20020a170906731500b007c0ab08889fsi6560686ejc.242.2022.12.12.04.34.06; Mon, 12 Dec 2022 04:34:24 -0800 (PST) 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=fbak5wwS; 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 S232110AbiLLMWI (ORCPT + 75 others); Mon, 12 Dec 2022 07:22:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232023AbiLLMWE (ORCPT ); Mon, 12 Dec 2022 07:22:04 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C0B210FF8; Mon, 12 Dec 2022 04:22:03 -0800 (PST) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BC6mGOd001381; Mon, 12 Dec 2022 12:21:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=3XkvgNx5sTLY+I2azRwSZJ5pkzu7ohIy979ecHKzVSk=; b=fbak5wwS7xQ3auEB1el4uRct9K9nJ33BMoLBOgmRyioPjjVD51tig8VytJC25craPwCQ Uyhay+19+mIDz8Uw1R5yqjRg6QSNNTYUmR3+LbD8/pOb7ar0Ch9NmK4JUGdgi+i49KQt OfQ1If49h1bEPrBASKnGkPSg89yLWW4cuSFAPTq84zIM4W0vlZ19fhxm+9FThB7grdWe IMhMAupRk3K69ing+/yWKfaKroGOKOhXt8Vk9SuIR6f8CKujAlmkh9o/FY7ad0w8QZy5 cT/v19fx8Q/l8Kv4sm0OO8LV8g0xy5khJUsn/5yKWDeQqtd0gaNcm0y76EG4eijW0VBk UQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3mch30m565-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Dec 2022 12:21:58 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 2BCCLvEd017647 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Dec 2022 12:21:57 GMT Received: from shazhuss-linux.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 12 Dec 2022 04:21:53 -0800 From: Shazad Hussain To: , CC: , Shazad Hussain , "Andy Gross" , Konrad Dybcio , "Rob Herring" , Krzysztof Kozlowski , , , Subject: [PATCH v2] arm64: dts: qcom: sa8540p-ride: enable pcie2a node Date: Mon, 12 Dec 2022 17:50:59 +0530 Message-ID: <20221212122058.597-1-quic_shazhuss@quicinc.com> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: td3KUA4tTdibcTH039d7S_m1ZXgYf2If X-Proofpoint-GUID: td3KUA4tTdibcTH039d7S_m1ZXgYf2If X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-12_02,2022-12-12_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 adultscore=0 phishscore=0 spamscore=0 clxscore=1015 mlxlogscore=999 priorityscore=1501 mlxscore=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2212120114 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS 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 Add the pcie2a, pcie2a_phy, and respective tlmm nodes that are needed to get pcie 2a controller enabled on Qdrive3. This patch enables 4GB 64bit memory space for PCIE_2A to have BAR allocations of 64bit pref mem needed on this Qdrive3 platform with dual SoCs for root port and switch NT-EP. Hence this ranges property is overridden in sa8540p-ride.dts only. Signed-off-by: Shazad Hussain --- Changes since v1: - Fix ranges property indentation (Konrad) This patch depends on below patch series for vreg_l11a. [v4] arm64: dts: qcom: sa8540p-ride: enable PCIe support https://lore.kernel.org/all/20221206161916.315640-1-bmasney@redhat.com/ arch/arm64/boot/dts/qcom/sa8540p-ride.dts | 44 +++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts index bb4afd3a9632..7ce104fea4f8 100644 --- a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts @@ -146,6 +146,27 @@ vreg_l8g: ldo8 { }; }; +&pcie2a { + ranges = <0x01000000 0x0 0x3c200000 0x0 0x3c200000 0x0 0x100000>, + <0x02000000 0x0 0x3c300000 0x0 0x3c300000 0x0 0x1d00000>, + <0x03000000 0x5 0x00000000 0x5 0x00000000 0x1 0x00000000>; + + perst-gpios = <&tlmm 143 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 145 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&pcie2a_default>; + + status = "okay"; +}; + +&pcie2a_phy { + vdda-phy-supply = <&vreg_l11a>; + vdda-pll-supply = <&vreg_l3a>; + + status = "okay"; +}; + &pcie3a { ranges = <0x01000000 0x0 0x40200000 0x0 0x40200000 0x0 0x100000>, <0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x20000000>, @@ -247,6 +268,29 @@ &xo_board_clk { /* PINCTRL */ &tlmm { + pcie2a_default: pcie2a-default-state { + perst-pins { + pins = "gpio143"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + clkreq-pins { + pins = "gpio142"; + function = "pcie2a_clkreq"; + drive-strength = <2>; + bias-pull-up; + }; + + wake-pins { + pins = "gpio145"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + }; + pcie3a_default: pcie3a-default-state { perst-pins { pins = "gpio151"; -- 2.38.0