Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8118548rwb; Tue, 13 Dec 2022 02:23:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf4KVNIfOe3QwDBxPWCMPNoZbL+uU1hYjheqrPpXiH9TW90NexRmt4eiwuwls1HaZHzw67tl X-Received: by 2002:a17:906:fcd8:b0:7c0:b79c:7d5f with SMTP id qx24-20020a170906fcd800b007c0b79c7d5fmr20950867ejb.68.1670927019612; Tue, 13 Dec 2022 02:23:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670927019; cv=none; d=google.com; s=arc-20160816; b=noApRVxsq/ZUJudeeOBbt6/VzzSYRerz4cRUqX3PAd7ooanLGPoBUWiQj0y/ogaRyR 4syzfieUk5FotX9oFbdc+N/FP26I4g8GhKZydoCzAa9o5jb2/pNBtIIt152viRbBE0v/ CcGdt+mOn6JrpLAzSEYA95G+W/qacX/Lip72wV+qOKsI64VmN7CCxvKMea+7lojyqD+9 NlXbFzYKLjd8dJ/z3jJ3lLr3pSpdAcsCB7A3zBLOF3pLMLl+VLGeOct+R94JwLF3kN2S 0EBnFBHnVSmI6lwORh/WM4EjeNCUsz4dTexTkLxThr/dv3RzIqMORnf6Be40pTK9hmB1 EUoQ== 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=sKicjOtyNXUd+QKtpwYCqd7avhGkebka6aje7UC2ukE=; b=J70mI9exQdA/gaaOZUpruTTwlyY5lnkmDrJ7oYeJaQrX+1u8IrOvK9W/Pmb2R6SBFS UMWHweUGV+rW3cBUy1LkjG+1ITosGSEfaYMp8OqFSuOVXLxmdKgOIwME5o6HJ/DIKwZM sDj1cgBdiyWcqpMuhYaUPflNTQfsk3tsCMjC/oIk58Eo1JDmZ1JOHq6V7m8OyTTF/9mw LLQiRmZBaBq8UMzb1EBXTG+8qDxS9ih0IaRl6PRY+2CoB6Cy8CgCjk1//dti8XNU/4xE W6tCn5S/Ulhu7BnB1SFMSBWEQYnc072veR1CLT+QZDeTS6GuOnbwN16AvDS6Xle4ie3b f8rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ffyrZr5Q; 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 hc31-20020a170907169f00b007bc5528a4d7si9509426ejc.47.2022.12.13.02.23.21; Tue, 13 Dec 2022 02:23:39 -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=ffyrZr5Q; 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 S233688AbiLMKAH (ORCPT + 73 others); Tue, 13 Dec 2022 05:00:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235103AbiLMKAA (ORCPT ); Tue, 13 Dec 2022 05:00:00 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EBB01BE92; Tue, 13 Dec 2022 01:59:57 -0800 (PST) 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 2BD9bSNO012508; Tue, 13 Dec 2022 09:59:52 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=sKicjOtyNXUd+QKtpwYCqd7avhGkebka6aje7UC2ukE=; b=ffyrZr5QyHMDLx2vfP4QEfFY9R1Xl326gJWgyXra1e2yQgCE0MKOHXo1PDyQPnxoLgpi S+Z6enkBoqIsYJMswXQc4MnUdnllSbHvWbYFroN6yoLpgO3HcBlLGb5UBfEhcfBq+vUF BnGuQQOoS6NWSunoX/fYyCexbTcLGT07Jr98swgzRi0sssUVrDEiB3M1HVjjY0BzZ2OY HPY7t0BMS4LoAv5EVVuu6S9R+da8IFiKRIA77/P575ipyTiQ5KbPScejBVB3zDvb/GN+ n7/y/PcG1Hnqbhg6XxYhpNiTehZ85C/HI+tOroigJeYVABRd5U74CznIs1HB+cBa9HXp IA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3mek41gjp7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Dec 2022 09:59:52 +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 2BD9xpJY021833 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Dec 2022 09:59:51 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; Tue, 13 Dec 2022 01:59:47 -0800 From: Shazad Hussain To: , CC: , Shazad Hussain , "Andy Gross" , Konrad Dybcio , "Rob Herring" , Krzysztof Kozlowski , , , Subject: [PATCH v5] arm64: dts: qcom: sa8540p-ride: enable pcie2a node Date: Tue, 13 Dec 2022 15:29:21 +0530 Message-ID: <20221213095922.11649-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: nasanex01b.na.qualcomm.com (10.46.141.250) 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-GUID: MhHq7AQ50rBXjMOjofWWOqKDoPLmbHsb X-Proofpoint-ORIG-GUID: MhHq7AQ50rBXjMOjofWWOqKDoPLmbHsb 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-13_03,2022-12-12_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 phishscore=0 spamscore=0 bulkscore=0 mlxlogscore=999 suspectscore=0 adultscore=0 impostorscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2212130089 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. Moved tlmm node at the end as it tends to become rahter long. Link: https://lore.kernel.org/lkml/Y49k1k8ayI9%2FrK+R@hovoldconsulting.com/ Signed-off-by: Shazad Hussain Reviewed-by: Brian Masney --- Changes since v4: - Drop Reported-by robot (Krzysztof) - Allign commit message and link for moving tlmm at the end (Johan) Changes since v3: - Fix syntax error and add Reported-by (Kernel test robot) Changes since v2: - Discard below patch as v3 is merged in qcom tree [v4] arm64: dts: qcom: sa8540p-ride: enable PCIe support https://lore.kernel.org/all/20221206161916.315640-1-bmasney@redhat.com/ - Move tlmm PINCTRL to the end and add R-b (Brian) Changes since v1: - Fix ranges property indentation (Konrad) arch/arm64/boot/dts/qcom/sa8540p-ride.dts | 96 +++++++++++++++++------ 1 file changed, 71 insertions(+), 25 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts index 6c547f1b13dc..d70859803fbd 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>, @@ -186,31 +207,6 @@ &remoteproc_nsp1 { status = "okay"; }; -&tlmm { - pcie3a_default: pcie3a-default-state { - perst-pins { - pins = "gpio151"; - function = "gpio"; - drive-strength = <2>; - bias-pull-down; - }; - - clkreq-pins { - pins = "gpio150"; - function = "pcie3a_clkreq"; - drive-strength = <2>; - bias-pull-up; - }; - - wake-pins { - pins = "gpio56"; - function = "gpio"; - drive-strength = <2>; - bias-pull-up; - }; - }; -}; - &ufs_mem_hc { reset-gpios = <&tlmm 228 GPIO_ACTIVE_LOW>; @@ -268,3 +264,53 @@ &usb_2_qmpphy0 { &xo_board_clk { clock-frequency = <38400000>; }; + +/* 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"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + clkreq-pins { + pins = "gpio150"; + function = "pcie3a_clkreq"; + drive-strength = <2>; + bias-pull-up; + }; + + wake-pins { + pins = "gpio56"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; -- 2.38.0