Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2081142lqt; Mon, 22 Apr 2024 00:12:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFChJj5V8Bo1PIW+8Lq0tVFSVk1ljR/NgrCMPbwqPDxjlpEuCeRf+PgV5gpdaf1zwxS8VB+WULgOEzfaxYfeCuwhy5yrZhnZWFTjbZtQ== X-Google-Smtp-Source: AGHT+IGdk7OWH7zGLu6ubG+/L4M4jGzQhdFOH6OfZXuCoKDdVUcXBg41zkEm7wjf6hPdzbCI6OpU X-Received: by 2002:a17:90b:4a0b:b0:2ae:2618:f7f8 with SMTP id kk11-20020a17090b4a0b00b002ae2618f7f8mr724259pjb.44.1713769975087; Mon, 22 Apr 2024 00:12:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713769975; cv=pass; d=google.com; s=arc-20160816; b=LDq6hpdUJri2rAZ+By4oE9np4zh/EPb5MjumHpEJpS/knKdhqTdmCe9CfVk5gEEqHV SHsU5l3L/5Gvdt1e0o5Bov9VrbbaePVxqNI7m8w3fQNhVSvZ3P/JeeRPp0FAEOuMwmh8 P+nMk8SDgdR2B8XMRiwVFo6dVztnOKsWDAA2q2pfFTwEs1QaW0U+Qi1FqQTN55OkDalc pzxVtrHE3UDygNBLcnKShd5rpZdyAyFP5PeloARcxLC9qwkw7kBMhj4YsUaWZ/aA7exg jATzmeUhyHn74O7yw1BoKLYXhgM5n+lFvZdJDWAK1nCdhQW/Xxk2FvpEu1uL8OQtk951 tMhg== 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=srhD1f3QgnLQ0Obmx96JcKyYrS05l+ud2rJYIQaibGI=; fh=HRhXKNpxAp0Nkmtz9yAZcXopwNNqk+AWVL22tQz8VvQ=; b=XQ7VqaSPInKpVfAiTLNwmKURGP7xK+bw88YqZ7aCwFobMy3qnCRe0RHAMQ4K3X/CQh Q2SgqUJff9mpqPstl4Tbap2uejwUWUW3W8X8P1JXEgvhgMKnMoHuaO+wk0IXg8WWyMso VlmnqqZjaaPsGDic95hETk/YJHhfSpHs9Tr4M4cADFtMx9MOGcrtPScvscIoZKz/Ql4q HVZmTwQTgOe0yWhW8AVGre2pqYPiDUEKmYTmzHISYc2OoIHL/2NjymoLvVHHawxt/hvB hxxTNoz/HLi1HldwD4HBU7C9G4H7RWr/YdphEtaljCAnozt8iLxZ5U1tGfp+AVvtmUhl zUgw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Kmk7u3Cl; 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-152836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152836-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s11-20020a17090aba0b00b002a2da57aa5bsi7274128pjr.44.2024.04.22.00.12.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 00:12:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Kmk7u3Cl; 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-152836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152836-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3E10828207F for ; Mon, 22 Apr 2024 07:12:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B235487B3; Mon, 22 Apr 2024 07:11:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Kmk7u3Cl" Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) (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 DF41F4B5A6 for ; Mon, 22 Apr 2024 07:11:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713769874; cv=none; b=thttI4Rx3ZiLgJsvzOC5Uc1tyfh11opCn9rfq6pL5Q/poKJ2puv7/icJLoLngKGboYceWiIZ4oQyGFJSYaNQqiZrwozgamTXTFyQ254+tRBK9bZK4bgsiPMYckUTw5bSuClAu5/8EcDxNRt35cNWOJ/GQT7dl8A3tc5g5hCtvxc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713769874; c=relaxed/simple; bh=qsL9k/zxg1aShoZ3afvsL1pBaxYHnpQV83bKqr0tqms=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=l2qf5BmpSLA1cn20zs5lfaEqxMLzhXGzSaJzCl9yEviaDXtjRsFq15FVnFrqBQKV4xTPJMAf8Zko6vvgvopx+SQgBeHLaVj7elpHs/64VFchyJV3XhLM6xV8TX327b6u/kb9m+Qc04z04CZMYLv9rQugk5IGzk2MgMpQ3ZZQwRE= 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=Kmk7u3Cl; arc=none smtp.client-ip=209.85.216.46 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-pj1-f46.google.com with SMTP id 98e67ed59e1d1-2ac9b225a91so1732196a91.2 for ; Mon, 22 Apr 2024 00:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713769872; x=1714374672; 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=srhD1f3QgnLQ0Obmx96JcKyYrS05l+ud2rJYIQaibGI=; b=Kmk7u3ClY/5rq4TKnx3GBwnarqfnDjg+buG8W2cpfSMMVrcMW0SzvMc8ZKlBHfzebH yGCnhbifQG3x0DX8OS394LN6cnsE9H4fK7OYk/LWv+XSMa9sEXEdWb10/HvmajZfh++i slNq6h72oNv4vqVYaHhI36B043A5+5UDzb9BCwiURX11S/qa/7LRzFdgKvUMQE/23vJL txwje7LSv/a0qr/1NGlrse/yZSnJKYtzHbV8CRx4YOdcgSFpp14O1CceWb53QaPazIMz AFu0TkyCjY/wbIxGzC4uvMfL+lmPykmu9PLfMhCZ+Uz2siHSeRtJbaKlzjLmBO0uUUpZ ChyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713769872; x=1714374672; 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=srhD1f3QgnLQ0Obmx96JcKyYrS05l+ud2rJYIQaibGI=; b=AmY26nj97FgB/utqnl7f2J6MNNwOj7/EBn3NFM83b/AJOLhMkyYVwIbsWqJCZXY6IB iQIIBG9E4eJTWic7r8g3CBELbGbz4QOMAzTN5t83+brSpiKGsvSUiUYDTrqM3zKtlBE8 abqFBaDNrOuLSdn+z0AED4wjbg6jB7FZcnsKucgOJFaxgv7OwbND0sQGZvMyp6KorFq8 6Qp32dqVjH0VhGdy+gNjIp3SXae/UbKJ9sWNfSdRRjGO1NDlH1M0qGuOoV9P3GCx3imO UlTXfZDh4kBCSpQXtcRj+NxY3NFaooaCAFih5QiZ3umi0ALBotUd21BMcrkYO0pb++Yf xqWg== X-Forwarded-Encrypted: i=1; AJvYcCVUKGE3xIPKMidW/UX/G/U2bfTI0NxurhLasvt1sJGsp8U+XsaQPIuv3FwT+MbPzhzT6YGMKXBOzq08t37aqGMzYFGwAhKAEGFRQSbR X-Gm-Message-State: AOJu0YxHjAiQfPf4QweQkAVP4eUZSndY2gUy/TIwmhwNO+CJMdMalLbT So+Vdw91bLX8l1D/EXt1PiZSju7+RCUy0sLA8QLmyYU+XDklaqO3bsPdGrSUIA== X-Received: by 2002:a17:90a:de02:b0:2a5:275c:ed with SMTP id m2-20020a17090ade0200b002a5275c00edmr8331950pjv.23.1713769871982; Mon, 22 Apr 2024 00:11:11 -0700 (PDT) Received: from thinkpad ([120.60.70.118]) by smtp.gmail.com with ESMTPSA id fu4-20020a17090ad18400b002acfe00c742sm3431669pjb.21.2024.04.22.00.11.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 00:11:11 -0700 (PDT) Date: Mon, 22 Apr 2024 12:40:54 +0530 From: Manivannan Sadhasivam To: mr.nuke.me@gmail.com Cc: Bjorn Andersson , Konrad Dybcio , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Kishon Vijay Abraham I , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-clk@vger.kernel.org Subject: Re: [PATCH v3 7/7] arm64: dts: qcom: ipq9574: add PCIe2 nodes Message-ID: <20240422071054.GA9522@thinkpad> References: <20240415182052.374494-1-mr.nuke.me@gmail.com> <20240415182052.374494-8-mr.nuke.me@gmail.com> <20240417073412.GD3894@thinkpad> 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: On Thu, Apr 18, 2024 at 10:33:23AM -0500, mr.nuke.me@gmail.com wrote: > > > On 4/17/24 02:34, Manivannan Sadhasivam wrote: > > On Mon, Apr 15, 2024 at 01:20:52PM -0500, Alexandru Gagniuc wrote: > > > On ipq9574, there are 4 PCIe controllers. Describe the pcie2 node, and > > > its PHY in devicetree. > > > > > > Only pcie2 is described, because only hardware using that controller > > > was available for testing. > > > > > > > You should describe all the instances in DT. Since the unused ones will be > > 'disabled', it won't affect anyone. > > My concern with untested but "disabled" descriptions is that someone may > think it's supported, try to enable it on their board, and run into issues. > Theoretically, we could describe pcie3, as it uses the same gen3x2 phy. > Okay. > The pcie0 and pcie1 use a gen3x1 phy, which I do not support in this series. > I would have to leave the "phys" and "phy-names" for these nodes, leading to > an incomplete description > Fine then. Please describe at least pcie3. Also add a TODO above the first pcie node mentioning that someone need to populate others too. - Mani > Given this info, do you still wish that I add all other pcie nodes? > > > > Signed-off-by: Alexandru Gagniuc > > > --- > > > arch/arm64/boot/dts/qcom/ipq9574.dtsi | 93 ++++++++++++++++++++++++++- > > > 1 file changed, 92 insertions(+), 1 deletion(-) > > > > > > diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi > > > index 7f2e5cbf3bbb..f075e2715300 100644 > > > --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi > > > +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi > > > @@ -300,7 +300,7 @@ gcc: clock-controller@1800000 { > > > <0>, > > > <0>, > > > <0>, > > > - <0>, > > > + <&pcie2_phy>, > > > <0>, > > > <0>; > > > #clock-cells = <1>; > > > @@ -745,6 +745,97 @@ frame@b128000 { > > > status = "disabled"; > > > }; > > > }; > > > + > > > + pcie2_phy: phy@8c000 { > > > + compatible = "qcom,ipq9574-qmp-gen3x2-pcie-phy"; > > > + reg = <0x0008c000 0x14f4>; > > > + > > > + clocks = <&gcc GCC_PCIE2_AUX_CLK>, > > > + <&gcc GCC_PCIE2_AHB_CLK>, > > > + <&gcc GCC_PCIE2_PIPE_CLK>, > > > + <&gcc GCC_ANOC_PCIE2_2LANE_M_CLK>, > > > + <&gcc GCC_SNOC_PCIE2_2LANE_S_CLK>; > > > + clock-names = "aux", > > > + "cfg_ahb", > > > + "pipe", > > > + "anoc", > > > + "snoc"; > > > + > > > + clock-output-names = "pcie_phy2_pipe_clk"; > > > + #clock-cells = <0>; > > > + #phy-cells = <0>; > > > + > > > + resets = <&gcc GCC_PCIE2_PHY_BCR>, > > > + <&gcc GCC_PCIE2PHY_PHY_BCR>; > > > + reset-names = "phy", > > > + "common"; > > > + status = "disabled"; > > > + }; > > > + > > > + pcie2: pcie@20000000 { > > > + compatible = "qcom,pcie-ipq9574"; > > > + reg = <0x20000000 0xf1d>, > > > + <0x20000f20 0xa8>, > > > + <0x20001000 0x1000>, > > > + <0x00088000 0x4000>, > > > + <0x20100000 0x1000>; > > > + reg-names = "dbi", "elbi", "atu", "parf", "config"; > > > + > > > + ranges = <0x81000000 0x0 0x20200000 0x20200000 0x0 0x00100000>, /* I/O */ > > > > Please use below range: > > > > <0x01000000 0x0 0x00000000 0x20200000 0x0 0x00100000> > > <0x02000000 0x0 0x20300000 0x20300000 0x0 0x07d00000> > > > Of course, thank you. > > > > + <0x82000000 0x0 0x20300000 0x20300000 0x0 0x07d00000>; /* MEM */ > > > + > > > + device_type = "pci"; > > > + linux,pci-domain = <3>; > > > + bus-range = <0x00 0xff>; > > > + num-lanes = <2>; > > > + max-link-speed = <3>; > > > + #address-cells = <3>; > > > + #size-cells = <2>; > > > + > > > + phys = <&pcie2_phy>; > > > + phy-names = "pciephy"; > > > + > > > + interrupts = ; > > > + interrupt-names = "msi"; > > > + > > > + #interrupt-cells = <1>; > > > + interrupt-map-mask = <0 0 0 0x7>; > > > + interrupt-map = <0 0 0 1 &intc 0 0 164 > > > + IRQ_TYPE_LEVEL_HIGH>, /* int_a */ > > > + <0 0 0 2 &intc 0 0 165 > > > + IRQ_TYPE_LEVEL_HIGH>, /* int_b */ > > > + <0 0 0 3 &intc 0 0 186 > > > + IRQ_TYPE_LEVEL_HIGH>, /* int_c */ > > > + <0 0 0 4 &intc 0 0 187 > > > + IRQ_TYPE_LEVEL_HIGH>; /* int_d */ > > > > Use a single line for each INTX entry even if it exceeds 80 column width. > > Yes. Will do. > > > - Mani > > -- மணிவண்ணன் சதாசிவம்