Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2112504rdb; Tue, 3 Oct 2023 10:30:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFVy+7PGhY5mhJBjsKmPe8i31fThu9viRAiNFu0ap1osCFpK5RYtmH4phaKzL7WiZvlMTkW X-Received: by 2002:a05:6870:582:b0:1dc:723d:b8d0 with SMTP id m2-20020a056870058200b001dc723db8d0mr290550oap.27.1696354247086; Tue, 03 Oct 2023 10:30:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696354247; cv=none; d=google.com; s=arc-20160816; b=lTwAf6j/peFnjxIb5pVQol1E5Jq0Ux/GA9wEV08yUMWt0t+6yMQqa5wAwszAvu3a39 02mQE7OhDPx6HgLLCcuuMjbhEHj9cTOZOChoBjsLGxO7E2C//1gPhf+7SB9b1aa67XNz 21MSuI6JH7ofxDapMS1SYtZi/QAUvn9an8gc5vdVJIGMqxGU//rfQ7E232Tw88qLmF3R issw1V3AhtO+QUo1c4DTnnZ1eQvuZ/Bpl8G9obtfX83+atLerbY8nIUzNns1LAPON37O JBm2RZ1lat0tvkd37rxSgTRT9ElUwLK26IPEIM5bZbNfnmOVdvQEi2BFXAHv8/sjvFxt Jl7w== 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=jgeKjkDTDlV1euYjkhGRGv0noKADub9qxWJVNSkF6LE=; fh=znLhdaUsx9KBqXwOV8uz1+UvibUpKO1vvbUQQQc/D28=; b=g2PP/+5rtrfqgtQs2oU/8SQwFX2ROkGBMAtIbvVxazRSoQM0Urrs5AsMRiTsOYwIXt F/tobCBYsWSN479efgZ5/iHc9CWfk8eyKviA5V6Be0AA+KR+yFb13AEMvBAfnbRSGeb5 DF40q+ZTiqfTPPgxwD2Pmfj5oDK5oHMA6FIjnbBFCJFZ6HsrnC3Ik9S0XUIysAqcfb8H uL26cr+mtfLkAtpu5aCbGwp/7/fJUyddTrT3I3M1mwzrGA6DifspZVgwhbqPoZlwEns9 52qSJ79P0ZElrehF13eMxJrBtYmdD3Go5m3tya9L1rb2xSPvw5zd8tDCfiTjwSwOlebN zG+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=PWUdW3Ye; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id p30-20020a63951e000000b00578e29ae274si1825449pgd.521.2023.10.03.10.30.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 10:30:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=PWUdW3Ye; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 8D7C8802F56B; Tue, 3 Oct 2023 10:30:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231445AbjJCRad (ORCPT + 99 others); Tue, 3 Oct 2023 13:30:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240712AbjJCRa1 (ORCPT ); Tue, 3 Oct 2023 13:30:27 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9323AB7; Tue, 3 Oct 2023 10:30:24 -0700 (PDT) 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 393H72aO017586; Tue, 3 Oct 2023 17:29:59 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=jgeKjkDTDlV1euYjkhGRGv0noKADub9qxWJVNSkF6LE=; b=PWUdW3Yeeiv8PiZRCpayjO/HF9ZQk3pLo6QZTFLfVuabcT9dla8soq/pTnELMRa7lUJW pQv3/sjAg64fIKfj155R+7QjaLIg1bNM7iemZQVm9lcKxbRXXHKNDDJIzl/PvY7/tuO8 UoXujhOphkyrVh1aVGphQAQgv4zaIihxml/+3eqx95tvH25Jyv/WcXNxxG2IhJl5jPVU aKtuMx4NqeYUt5QnbFsYwpiLOHCvQ2kCPBVdvPxjmzGbv5T54hjDlvw5K3Sseeg7oqTm RZOGgtuLUS2ZZRTpICcLGPoxopvYOSzNiiIhWZ4+ADDdAIVI7x1Lpj7BwvqY/SfjLIaa WQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tg1v3b10m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 03 Oct 2023 17:29:59 +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 393HTwOo003057 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 3 Oct 2023 17:29:58 GMT Received: from [10.50.44.150] (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.1118.36; Tue, 3 Oct 2023 10:29:51 -0700 Message-ID: Date: Tue, 3 Oct 2023 22:59:47 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 5/6] arm64: dts: qcom: ipq5018: Add PCIe related nodes Content-Language: en-US To: Dmitry Baryshkov CC: , , , , , , , , , , , , , , , , , , , , References: <20231003120846.28626-1-quic_nsekar@quicinc.com> <20231003120846.28626-6-quic_nsekar@quicinc.com> From: Nitheesh Sekar In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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: ujHLPWB4OACxx4f6zdep-vdRGxssbWVR X-Proofpoint-ORIG-GUID: ujHLPWB4OACxx4f6zdep-vdRGxssbWVR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-03_15,2023-10-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 mlxscore=0 mlxlogscore=922 suspectscore=0 bulkscore=0 clxscore=1011 spamscore=0 impostorscore=0 priorityscore=1501 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310030133 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 03 Oct 2023 10:30:43 -0700 (PDT) On 10/3/2023 8:53 PM, Dmitry Baryshkov wrote: > On Tue, 3 Oct 2023 at 15:10, Nitheesh Sekar wrote: >> Add phy and controller nodes for PCIe_x2 and PCIe_x1. >> PCIe_x2 is 2-lane Gen2 and PCIe_x1 is 1-lane Gen2. >> >> Signed-off-by: Nitheesh Sekar >> --- >> arch/arm64/boot/dts/qcom/ipq5018.dtsi | 186 +++++++++++++++++++++++++- >> 1 file changed, 184 insertions(+), 2 deletions(-) >> >> diff --git a/arch/arm64/boot/dts/qcom/ipq5018.dtsi b/arch/arm64/boot/dts/qcom/ipq5018.dtsi >> index 38ffdc3cbdcd..0818fdd1e693 100644 >> --- a/arch/arm64/boot/dts/qcom/ipq5018.dtsi >> +++ b/arch/arm64/boot/dts/qcom/ipq5018.dtsi >> @@ -8,6 +8,7 @@ >> #include >> #include >> #include >> +#include >> >> / { >> interrupt-parent = <&intc>; >> @@ -94,6 +95,38 @@ >> #size-cells = <1>; >> ranges = <0 0 0 0xffffffff>; >> >> + pcie_x1phy: phy@7e000{ >> + compatible = "qcom,ipq5018-uniphy-pcie-gen2x1"; >> + reg = <0x0007e000 0x800>; >> + #phy-cells = <0>; >> + #clock-cells = <0>; >> + clocks = <&gcc GCC_PCIE1_PIPE_CLK>; >> + clock-names = "pipe_clk"; >> + clock-output-names = "pcie1_pipe_clk"; >> + assigned-clocks = <&gcc GCC_PCIE1_PIPE_CLK>; >> + assigned-clock-rates = <125000000>; >> + resets = <&gcc GCC_PCIE1_PHY_BCR>, >> + <&gcc GCC_PCIE1PHY_PHY_BCR>; >> + reset-names = "phy", "phy_phy"; >> + status = "disabled"; >> + }; >> + >> + pcie_x2phy: phy@86000{ >> + compatible = "qcom,ipq5018-uniphy-pcie-gen2x2"; >> + reg = <0x00086000 0x800>; >> + #phy-cells = <0>; >> + #clock-cells = <0>; >> + clocks = <&gcc GCC_PCIE0_PIPE_CLK>; >> + clock-names = "pipe_clk"; >> + clock-output-names = "pcie0_pipe_clk"; >> + assigned-clocks = <&gcc GCC_PCIE0_PIPE_CLK>; >> + assigned-clock-rates = <125000000>; > Can this go into the PHY driver? Sure. Will check and update. > >> + resets = <&gcc GCC_PCIE0_PHY_BCR>, >> + <&gcc GCC_PCIE0PHY_PHY_BCR>; >> + reset-names = "phy", "phy_phy"; >> + status = "disabled"; >> + }; >> + >> tlmm: pinctrl@1000000 { >> compatible = "qcom,ipq5018-tlmm"; >> reg = <0x01000000 0x300000>; >> @@ -117,8 +150,8 @@ >> reg = <0x01800000 0x80000>; >> clocks = <&xo_board_clk>, >> <&sleep_clk>, >> - <0>, >> - <0>, >> + <&pcie_x2phy>, >> + <&pcie_x1phy>, >> <0>, >> <0>, >> <0>, >> @@ -246,6 +279,155 @@ >> status = "disabled"; >> }; >> }; >> + >> + pcie_x1: pci@80000000 { >> + compatible = "qcom,pcie-ipq5018"; >> + reg = <0x80000000 0xf1d > Each address/size tuple should be a separate <> entry. Sure. will update it. > >> + 0x80000F20 0xa8 > lowercase Sure. Will update. > >> + 0x80001000 0x1000 >> + 0x78000 0x3000 > Would you notice why this line stands away from the rest of entries here? Sure. Will pad it Zeros. Thanks, Nitheesh