Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1768414rwd; Mon, 15 May 2023 02:47:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7GREIO/LfIKNcPYCEzsprk4410ZRpYS0StddILJiKlW4PMPg7vBBUe7hEAU29P7tabeY2v X-Received: by 2002:a05:6a20:8f13:b0:101:2160:ff89 with SMTP id b19-20020a056a208f1300b001012160ff89mr29731825pzk.38.1684144038593; Mon, 15 May 2023 02:47:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684144038; cv=none; d=google.com; s=arc-20160816; b=gdoA802P221G+TmBp/D9yTiTJIBjqw5Ub8Ugq84ElHVc8MSMiIUlUxTb26DiifefQR aykBssCDR72SwsnD20OOM90UMv86PeutpLQ3UQrZGn1+V/+NiZ0tT8zGdJS9PUnlr0H6 3zew1EFKsFSmuuTgDHZVk3c6Z09mUK9zBGx6cKWT1LW2QfABO00dvv4Qf14tQQgTUEuZ H60+vlPuJR/XLzHZVukBzckq7x+TDSOBL3t4+xEGrWlicQC7s7aDyVoSZ4PRBzKeQCPA 9+sotJg6vlTi3Uxx6DmfjFtaQDS5yJBQwsalPmwtoYDmyRCOEfY1b8iUIx4sNplaf/sf YhJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OvUxW3ggzDtwxpFxX6jlf1Ef9PaJvdrL+2RTDmBaS5U=; b=KelWfeHWKzS5dybw4GTDVeCQcS+sHY5lgiNGLGunGGeEk8U1IaVaZAAIo9el98v9Sc 7l7ahcTcnEexdOuGUyCO5dEn3OGhD5vY/v/jtZL0ixIJl3RrKX7N2o/SoYNI+c1fi81H Cw4BCpMaaEYpLoHIQSlp7Fi7MP/dyhsJhIz8pbh7nRnlcpxcyhFaAoje60q/Zb01zS2P QczObOSTAailKNuqE1WWnLuEJPKhl0y2KjJkdbYgXLzQ7ZLaBXd0Nu/g76D9xa5JyqxC sJ+fCxOeyoixB30MUONN9hwRnHF1MgMdhs9ZgCJGfeTzfefHNr6LJ+3gnJPCDqfp+mus Ckig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=RB51rJNr; 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 s65-20020a637744000000b0053090c5d094si8205732pgc.648.2023.05.15.02.47.06; Mon, 15 May 2023 02:47:18 -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=RB51rJNr; 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 S239252AbjEOJmH (ORCPT + 99 others); Mon, 15 May 2023 05:42:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240546AbjEOJlj (ORCPT ); Mon, 15 May 2023 05:41:39 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79B0F19BE; Mon, 15 May 2023 02:38:38 -0700 (PDT) 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 34F8sbTB032080; Mon, 15 May 2023 09:37:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=OvUxW3ggzDtwxpFxX6jlf1Ef9PaJvdrL+2RTDmBaS5U=; b=RB51rJNrjkfKGY6NGgQ6vEfF0ASSDmLTIAVEhC6nAInUTZYUxWU2iOR7/Zfx+Q1TRs2K CZYL3K3lUEuzPGsIyKaOm42RFH1yZreykHrn4fwEJi2s9GRAY0as7lH/uSLrIkqObRkG d5qL4nLeYuTABghhpGiNXridiE9F6NMrNcEN5WcswWgWCdWCKCCPeP9bNoVkb2hN49Ru 80kMzrKaeWftYFELOsk4I4C+vl4P8QB6JrzCrBLHZePIAM1X7+CI2yEjdVY7H4RX8K9V 4DXSye+6WIHOQ5XxYYFk+e2wqpXwuSzz1om8qtiVrc4swoDzH2JhUqMSy63UXNyxGiEv QQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qj1gxub9a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 15 May 2023 09:37:41 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34F9beH5031101 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 15 May 2023 09:37:40 GMT Received: from [10.50.3.91] (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; Mon, 15 May 2023 02:37:33 -0700 Message-ID: <61296c69-c8c1-5aca-f471-cc0286b5bff3@quicinc.com> Date: Mon, 15 May 2023 15:07:30 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH V3 5/6] arm64: dts: qcom: ipq9574: Enable PCIe PHYs and controllers Content-Language: en-US To: Dmitry Baryshkov CC: , , , , , , , , , , , , , , , , , , , , , References: <20230421124938.21974-1-quic_devipriy@quicinc.com> <20230421124938.21974-6-quic_devipriy@quicinc.com> <6c962760-d81c-af52-bce2-49090f66f4ee@quicinc.com> From: Devi Priya In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-GUID: OtFBF-18Cck4b6FFI-aHYB_OjzOxAYO0 X-Proofpoint-ORIG-GUID: OtFBF-18Cck4b6FFI-aHYB_OjzOxAYO0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-15_06,2023-05-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 phishscore=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 spamscore=0 clxscore=1015 mlxlogscore=914 priorityscore=1501 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305150082 X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 5/8/2023 5:09 PM, Dmitry Baryshkov wrote: > On 08/05/2023 13:55, Devi Priya wrote: >> >> >> On 4/22/2023 5:43 AM, Dmitry Baryshkov wrote: >>> On Fri, 21 Apr 2023 at 15:51, Devi Priya >>> wrote: >>>> >>>> Enable the PCIe controller and PHY nodes corresponding to >>>> RDP 433. >>>> >>>> Signed-off-by: Devi Priya >>>> --- >>>>   Changes in V3: >>>>          - No change >>>> >>>>   arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts | 62 >>>> +++++++++++++++++++++ >>>>   1 file changed, 62 insertions(+) >>>> >>>> diff --git a/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts >>>> b/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts >>>> index 7be578017bf7..3ae38cf327ea 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" >>>> >>>>   / { >>>> @@ -43,6 +44,42 @@ >>>>          }; >>>>   }; >>>> >>>> +&pcie1_phy { >>>> +       status = "okay"; >>>> +}; >>>> + >>>> +&pcie1 { >>>> +       pinctrl-names = "default"; >>>> +       pinctrl-0 = <&pcie_1_pin>; >>>> + >>>> +       perst-gpios = <&tlmm 26 GPIO_ACTIVE_LOW>; >>> >>> Usually qcom PCIe hosts also define wake-gpios. >> In IPQ9574, we do not have hot plug support and host always starts the >> enumeration for the device. Hence no wake pin is required. > > None of the qcom PCIe hosts support hotplug, if I remember correctly. > This is not a reason not to describe the hardware. Okay, will add the pin definitions for wake and clkreq in the next spin. > >>> >>>> +       status = "okay"; >>>> +}; >>>> + >>>> +&pcie2_phy { >>>> +       status = "okay"; >>>> +}; >>>> + >>>> +&pcie2 { >>>> +       pinctrl-names = "default"; >>>> +       pinctrl-0 = <&pcie_2_pin>; >>>> + >>>> +       perst-gpios = <&tlmm 29 GPIO_ACTIVE_LOW>; >>>> +       status = "okay"; >>>> +}; >>>> + >>>> +&pcie3_phy { >>>> +       status = "okay"; >>>> +}; >>>> + >>>> +&pcie3 { >>>> +       pinctrl-names = "default"; >>>> +       pinctrl-0 = <&pcie_3_pin>; >>>> + >>>> +       perst-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>; >>>> +       status = "okay"; >>>> +}; >>>> + >>>>   &sdhc_1 { >>>>          pinctrl-0 = <&sdc_default_state>; >>>>          pinctrl-names = "default"; >>>> @@ -60,6 +97,31 @@ >>>>   }; >>>> >>>>   &tlmm { >>>> + >>>> +       pcie_1_pin: pcie-1-state { >>>> +               pins = "gpio26"; >>>> +               function = "gpio"; >>>> +               drive-strength = <8>; >>>> +               bias-pull-down; >>>> +               output-low; >>> >>> No clkreq and no wake gpios? >> We do not use any PCIe low power states and link is always in L0. > > Again. We = software. Please describe the hardware here. Got it. > >> >> Thanks, >> Devi Priya >>> >>>> +       }; >>>> + >>>> +       pcie_2_pin: pcie-2-state { >>>> +               pins = "gpio29"; >>>> +               function = "gpio"; >>>> +               drive-strength = <8>; >>>> +               bias-pull-down; >>>> +               output-low; >>>> +       }; >>>> + >>>> +       pcie_3_pin: pcie-3-state { >>>> +               pins = "gpio32"; >>>> +               function = "gpio"; >>>> +               drive-strength = <8>; >>>> +               bias-pull-up; >>>> +               output-low; >>>> +       }; >>>> + >>>>          sdc_default_state: sdc-default-state { >>>>                  clk-pins { >>>>                          pins = "gpio5"; >>>> -- >>>> 2.17.1 >>>> >>> >>> > Thanks, Devi Priya