Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2518819lqo; Tue, 14 May 2024 00:40:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2IVWNqkewvbfcJmP8y4HOzZyh91jm/ht3K+06I81VArptRzh4G/zzxxsFSVifJg5AZgkOsK/d8Lt7kkQIdEjsoKVRan24ic/KZBzN0A== X-Google-Smtp-Source: AGHT+IHFNSUK0u5j3kAnm8vXtoKxH1XT9+rwao2he7cpGb3KFj8ps5xthOT6945OxpLE4dOpyi4L X-Received: by 2002:a25:86c8:0:b0:dc7:465d:c06d with SMTP id 3f1490d57ef6-dee4f308ad6mr11230512276.28.1715672411852; Tue, 14 May 2024 00:40:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715672411; cv=pass; d=google.com; s=arc-20160816; b=E13cCQP7z0avwPa3Bcs2ebv1WsnZTDISnOWbril3tb0csvxuqLvKBbLir2ZPYpalPZ YGhbAEF7d49KNH4Nw6O/nQkSnaCyyqsKFXqLBiO5uqGCvOtEFjhihsPuRkaiB7Y9d0R5 eazoEPLwrEbRjwGgsFNHiXFrgPsBoZX1B8btUFvPKJM61Yh+3QBlcssQlFgw6XjHmrpu SrvqT+k19lrjimYqKY2zgcXSoVWOweEkWzfxahQBAI+nWUW48YdvYRnfpwRt4MHmpknP TuApiIwgA4HrYdqMS0O2XIdrIPOZVuAMTgbm+B8vjGQzCnlFwrHwSHF24jt/Zgi84hX0 c7OQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Fesw46FZQhpdD0Hum6AHiEjagvfShSZGibZKbsl5F+w=; fh=gnYlRPOyrwt6Evyr3OpS1eROkkHyGeySfgZ+7vDlqzo=; b=AIWDDs5XUclkp40ewwss+MYQoiRUrBoT+BrU+BKKeKE2saDGfXiP2ZMD93Qx6oz8Up FiRWftANOTw8ZuzkdOGOyRPklWlvIg57fAI59+2v2gjZT+c/XFoXVvMsts1f9uOhPBQt DuAQ9W10yQT6Q1NOHG0JuEaoG9hahf3zNqv+X/r48TOcyX18GcpzlUP+zGNlMfRzX3Sd GUwcL1C8EQnjFoiHmcK03tzkyo/GQhVUNlVWNn8D/cfBXOIUCtbm6EdxnQG163En2UrU JHgR5lmzoN0bE+t6IeUzkp0vqibC4KIubToq/ymWA5OClfvjisr1c+6ntIC0WwdrC/KT IP2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HzsEGhmS; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-178408-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f1d6e14si117172896d6.22.2024.05.14.00.40.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 00:40:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178408-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HzsEGhmS; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-178408-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 83FE11C21757 for ; Tue, 14 May 2024 07:40:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B4BA1DDDB; Tue, 14 May 2024 07:39:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HzsEGhmS" Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 177F314277 for ; Tue, 14 May 2024 07:39:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715672388; cv=none; b=bwGIPv5l+RAfMsGf9kpgKWLgbH0/cSzcrhzPr+Mt1A9b7xK/0g5oD/1LjdLP+3WnXk4fkWb5C3DdYo9HhLcB5N4AQxuHfapkbVfGPAYH9ec+sgHOdeo4ss4tcXD3V59IkFL9cb/69b+WnjFXNx1isdSMNXV2znS9ZJtw7diU5sw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715672388; c=relaxed/simple; bh=BBXqtS3wza4QUm5avAstdSHbXwq4rAP5fYUeIZvK6z8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AprcLY/+lZO3CEQtKD6nl/pV1W1fqNOVJKsSxtd5W3c7/6UgHkRE5fRQeSO2PfA4Xj4q2HISg//ynz4Q8yxaD8M/xK40irgWrveafl85iZDYqfrtLvRWytFoWuOCgZCMWsmicPLdEyPM0pYsPg6ynAOdfok65i1hKnfQppnbP9o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=HzsEGhmS; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a59b81d087aso1306903466b.3 for ; Tue, 14 May 2024 00:39:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715672385; x=1716277185; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=Fesw46FZQhpdD0Hum6AHiEjagvfShSZGibZKbsl5F+w=; b=HzsEGhmSImymZwrXp1ADG/I5YcAIGBoWy9Q4WX7olLT8b/9JftGvURgcxniefCcb/j q+9XShClClJb4oCIZdzrSA1JYMAQD9O8Ht5I1FLxyNisur6hOR1hs0mELwDuGtAbZHqW 8VuThr00dCWrROwaI8Rp2A0yHgtvELrLuroW+M22qoEeHWPbm8HdVhQm0H/rZDjwKrJp k0j1s30mpBu5iWaJbe30vc/DLqJKR31Vo8nd4fEoNfOIdBVQmeyizly+sQSMFM6Basan DYFl7cu6W3jCtLCGQbQd0WqNiAk8UrAh+BLalxgTUj+Lq0i62jylCz4uUkD/DPK+Rs0m Od+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715672385; x=1716277185; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Fesw46FZQhpdD0Hum6AHiEjagvfShSZGibZKbsl5F+w=; b=TLgbnieZv+Q73YMCrlgbqH4wb7mDIJ8E4bnsAoEOtERFDnlzZH5xYawH76jmrs8ZrD k9tNqFudLH4Gc3lU796ZzQXf7lU1C2ZE9j1WlNDukuSlK/BuZCxejKUCJD0UAQ5kNP4Z R/MJap8ovr567Jiikl4kNClhMquzBv8aOiH+ErWph1uyygxZTSGhuHxbKQqOIRR6JE8D +tnfIxySuYDEekSu13DuLOQBLRLUPsi4MqgElIR+Fnt6m/EdZ0osJf0w10DZeH8AdYT3 pEsT922gNZAQg0QBke9ooAOakmuwMG8RqOZccBPZfmDtEJWvet2dnOuv9y0GzAEebdEY xElg== X-Forwarded-Encrypted: i=1; AJvYcCUW/jYkQIZXfXHJD+238zd6XEm6JHKweQmmDGEEf/CRUok0FofETapvKpM42oiKfal+1sgdoNARJPjtg7JShXlHpsg5doES7+rYIini X-Gm-Message-State: AOJu0YyEIha5uUeB98Iqmq6qEIetLm2aX+F5j0MyDFM1pel5rzEJXhSy LzveFS8Gngqbw/dAmuxAgaRE26gJQvTsUBfOmUulIJKoS/asDUVPQoQamYCJug== X-Received: by 2002:a17:907:785a:b0:a59:a033:3e2 with SMTP id a640c23a62f3a-a5a2d676511mr1158264566b.74.1715672385102; Tue, 14 May 2024 00:39:45 -0700 (PDT) Received: from thinkpad ([149.14.240.163]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a17b177fcsm687002966b.202.2024.05.14.00.39.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 00:39:44 -0700 (PDT) Date: Tue, 14 May 2024 09:39:43 +0200 From: Manivannan Sadhasivam To: devi priya Cc: 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, 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 Subject: Re: [PATCH V5 4/6] arm64: dts: qcom: ipq9574: Add PCIe PHYs and controller nodes Message-ID: <20240514073943.GB2463@thinkpad> References: <20240512082858.1806694-1-quic_devipriy@quicinc.com> <20240512082858.1806694-5-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-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240512082858.1806694-5-quic_devipriy@quicinc.com> On Sun, May 12, 2024 at 01:58:56PM +0530, devi priya wrote: > Add PCIe0, PCIe1, PCIe2, PCIe3 (and corresponding PHY) devices > found on IPQ9574 platform. The PCIe0 & PCIe1 are 1-lane Gen3 > host whereas PCIe2 & PCIe3 are 2-lane Gen3 host. > > Signed-off-by: devi priya > --- > Changes in V5: > - Dropped anoc and snoc lane clocks from Phy nodes and enabled them > via interconnect. > - Dropped msi-parent as it is handled via msi IRQ > > arch/arm64/boot/dts/qcom/ipq9574.dtsi | 365 +++++++++++++++++++++++++- > 1 file changed, 361 insertions(+), 4 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi > index 5b3e69379b1f..da6418c9d52b 100644 > --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi > +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi [...] > + pcie1: pci@10000000 { 'pcie@' since this is a PCIe controller. > + compatible = "qcom,pcie-ipq9574"; > + reg = <0x10000000 0xf1d>, > + <0x10000F20 0xa8>, Please use lower case for hex everywhere. > + <0x10001000 0x1000>, > + <0x000F8000 0x4000>, > + <0x10100000 0x1000>; > + reg-names = "dbi", "elbi", "atu", "parf", "config"; > + device_type = "pci"; > + linux,pci-domain = <2>; > + bus-range = <0x00 0xff>; > + num-lanes = <1>; > + #address-cells = <3>; > + #size-cells = <2>; > + > + ranges = <0x01000000 0x0 0x00000000 0x10200000 0x0 0x100000>, /* I/O */ > + <0x02000000 0x0 0x10300000 0x10300000 0x0 0x7d00000>; /* MEM */ > + > + interrupts = ; > + interrupt-names = "msi"; Are you sure that this platform only has single MSI SPI IRQ? > + #interrupt-cells = <1>; > + interrupt-map-mask = <0 0 0 0x7>; > + interrupt-map = <0 0 0 1 &intc 0 0 35 IRQ_TYPE_LEVEL_HIGH>, /* int_a */ > + <0 0 0 2 &intc 0 0 49 IRQ_TYPE_LEVEL_HIGH>, /* int_b */ > + <0 0 0 3 &intc 0 0 84 IRQ_TYPE_LEVEL_HIGH>, /* int_c */ > + <0 0 0 4 &intc 0 0 85 IRQ_TYPE_LEVEL_HIGH>; /* int_d */ > + > + /* clocks and clock-names are used to enable the clock in CBCR */ This comment is redundant. > + clocks = <&gcc GCC_PCIE1_AHB_CLK>, > + <&gcc GCC_PCIE1_AUX_CLK>, > + <&gcc GCC_PCIE1_AXI_M_CLK>, > + <&gcc GCC_PCIE1_AXI_S_CLK>, > + <&gcc GCC_PCIE1_AXI_S_BRIDGE_CLK>, > + <&gcc GCC_PCIE1_RCHNG_CLK>; > + clock-names = "ahb", > + "aux", > + "axi_m", > + "axi_s", > + "axi_bridge", > + "rchng"; > + > + resets = <&gcc GCC_PCIE1_PIPE_ARES>, > + <&gcc GCC_PCIE1_CORE_STICKY_ARES>, > + <&gcc GCC_PCIE1_AXI_S_STICKY_ARES>, > + <&gcc GCC_PCIE1_AXI_S_ARES>, > + <&gcc GCC_PCIE1_AXI_M_STICKY_ARES>, > + <&gcc GCC_PCIE1_AXI_M_ARES>, > + <&gcc GCC_PCIE1_AUX_ARES>, > + <&gcc GCC_PCIE1_AHB_ARES>; > + reset-names = "pipe", > + "sticky", > + "axi_s_sticky", > + "axi_s", > + "axi_m_sticky", > + "axi_m", > + "aux", > + "ahb"; > + > + phys = <&pcie1_phy>; > + phy-names = "pciephy"; > + interconnects = <&gcc MASTER_ANOC_PCIE1 &gcc SLAVE_ANOC_PCIE1>, > + <&gcc MASTER_SNOC_PCIE1 &gcc SLAVE_SNOC_PCIE1>; Is this really the interconnect paths between PCIe-DDR and PCIe-CPU? I doubt... - Mani -- மணிவண்ணன் சதாசிவம்