Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp677629lqh; Fri, 31 May 2024 12:55:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUKYzcs4G66VUz4u9+lFLsPhZyW5jrIPbxdTEZEDhpsi4t6fhys2Zodj3xDmF1/pYXgFoHK2sm0/zKvdMdpseVpyQBoWn2tH20a+gj2wQ== X-Google-Smtp-Source: AGHT+IGxtPPkZ9hEopnQ7ogH+MqGcdL5v+9nNO59AjHt7H4a1rXB1gtBTLcOczJ2ZerwSS+EGdT7 X-Received: by 2002:a17:902:e883:b0:1f4:64d6:919d with SMTP id d9443c01a7336-1f6370cd8bbmr32362735ad.66.1717185346560; Fri, 31 May 2024 12:55:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717185346; cv=pass; d=google.com; s=arc-20160816; b=ki6J+ScwWCtSdGuK39Qc0aDLLPhdXRWTw5xr4gFloG6U7PglrP7r5deMh9A029qh09 fSDKraAbBzWhXj2JVMH0VQoGCbglrIdW9qJt0SeZamB3Rioj1w/Coq5GpBwfH8hjd/Zu EQFrSdpgPI5u+sxP/X3/WwsaxLUPHtT3OnywuIhM2rwM4om+qiR4oVc4xnU07iGvKmI1 AsXkpsIJw7KFUqS16BYg0o/CyaidNsVRhWk3zENNcmfGPWYBpPcN9XWGbKGdNDCfyY9l 3QNdTV3sUY2NrYfMu4sx0dW8XmaPn00v97hsWKOMw0RZaI1CgKAAwusb1rCpkk2wFbll L0OA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vDm4GFL7/RAcoZja5ASG+bsrJl52LSpMWwgkVjK9dlM=; fh=NPeyQlxHjJ7LR7o2XR9wnVUIt5Cm7aWp43cpT2oWyBQ=; b=IL4gUsdz0NkjQPIEgKTnzrltZrz51SYmn+Id6sZzNHAASjgJuuvVODNxZcmV4pdcvw 2wmPiM7NeLKaKh9cifxZsjY+W8FqFP7XN5r4nHMqjXUfcZ/amiVUEXlUuKBTI6UNrAGb NNKZea1deXRCTaxBjXvA96SeW5gapU+jDf9BUAVXWGrhwDaZQzCM63FRmeAjkfC//q0G ZSUcG3x8YlSV0Y6SLUL+6uHu/aNtXhs7zT7aOYcaU93iSp1iQ3yJztvIV4tg2+4/mqhB 6q6B4fk46rMxoK7J5UmUWFOXLgHMVpEErIRR629nXoVqgXh3Ws/rYq1GiYYJZo/ZWJz1 HY+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EGRRAnyn; 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-197408-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197408-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. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f6323eb090si20978405ad.386.2024.05.31.12.55.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 12:55:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197408-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EGRRAnyn; 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-197408-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197408-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 29B2428830D for ; Fri, 31 May 2024 19:55:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D001B17D354; Fri, 31 May 2024 19:55:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="EGRRAnyn" Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 51A4B79B84 for ; Fri, 31 May 2024 19:55:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717185334; cv=none; b=mFbcMWUeJLAmFJY2HKM0Mh7Nshyx9X5f6EL7x8d1vPZX008O9DWicddF5q8FCWfuJ5VKo7WhEUWzCADRpfd5l7TTQ9EX6d8smqGL2VVlu3pSnBGXheXf61RcL/Y3CXR2qFa0UWC7PsI5t+Nwiw12DhS1GNOuaWHya2GtEj+X35g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717185334; c=relaxed/simple; bh=X+W2TzIrXrsijhv99v8qX9im0q8qFS0iVU1HH5EZ9Uk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=W0HWdAq1l+Bf6vpmENlQZZbHplB/ESRrY+gLg0JxnrO3mAWgIL6MOIQfPZsy0ZSQDYfr4RnGpqFnJ7wGGQs20CXPVhE3DfCgAhwj7DlAWeSiR5rIHEBMPnj5Ftz1nLxqbuWM7Bz1zvJUjnDNklpWRQENJQzXG/HoGilABJVuh8U= 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=EGRRAnyn; arc=none smtp.client-ip=209.85.167.50 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-lf1-f50.google.com with SMTP id 2adb3069b0e04-52b82d57963so2033524e87.2 for ; Fri, 31 May 2024 12:55:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717185330; x=1717790130; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=vDm4GFL7/RAcoZja5ASG+bsrJl52LSpMWwgkVjK9dlM=; b=EGRRAnynOKkNqHNuGaIXlZ2RqwvsBMz4FFULoHaXJYkcAXflVNCvgNRutYEjQyiZxB yDpDVSDZfOw1Fo25oWpvDHQaPaxqw52LxEueF6duovh5esxJ5Qp5lN37waX/vfCVzaoo trIqiKKc9aQ+p0BGAnCNwHnJeeLrdou7YQ8ZfFZdo4rBfehQFsBXp4V4PiAF7WfPaOj3 8YANCjs/KgSUrFb/rQx65oFmNHziHXi3xn4nUam57Cz44KNFBQtpP0U6QA5lzmPWAgTg +3S59BNY/riJhiGrRoWN1bxJBbajcMpZoGykZD6EXp/zMFXceTmyaZxNQ0S7CZXyExBS IM7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717185330; x=1717790130; h=in-reply-to: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=vDm4GFL7/RAcoZja5ASG+bsrJl52LSpMWwgkVjK9dlM=; b=efM4O8mRtgSaXzsJ61hojKjv7+y51YAWCy7apDvCRL0PoircEwrSoXMnjtkTt51N4K 9cHDgu9wMU0q/TpfJJm188zAfFa35k0zzJv3h1auRkZyhi4biVdrn7UpKfxj7fNPDAzQ dEwSHqexKkM60Dcce1kXJAmtJUqtpYif7oCWZNHuR17zf1d4w47ld5QHdyruat5lTWBV hrplvSsKyMuoBlQbZZiRUzRc/Y/r6pomyTuFZKjpYUid/gpRMOgDzRG4XoCQqzDZRGjG jaRHMSzgp1+jcSQuI93DT9i3423uyiMpnu6LZTIyJjv1f7lIWtbpK4gQfJeEj4/Mgzx3 HlDw== X-Forwarded-Encrypted: i=1; AJvYcCVuNJp92Edg4BT1PvhPaTVbtciqRG/rsuAApjAX/Zfjm5Gea5f8C2bF9esGqCszA+A+tjC3U+h07x7lTfUpYf2gxlbtAOaqWANSN8lR X-Gm-Message-State: AOJu0YwVtC7Bkevl/6AyEYnFyS7ERp5n4NEQG371Wshd8hPW4FfjIEL9 pxq0qDDGTw3D6DHCaJHB2j+W5cOuLLpjrnrxug0wwdPGBym8CePacMSEvGVGvRs= X-Received: by 2002:ac2:46f1:0:b0:52b:7c7e:303 with SMTP id 2adb3069b0e04-52b896da828mr1585439e87.49.1717185330369; Fri, 31 May 2024 12:55:30 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52b84d89743sm426201e87.263.2024.05.31.12.55.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 12:55:30 -0700 (PDT) Date: Fri, 31 May 2024 22:55:28 +0300 From: Dmitry Baryshkov To: Abel Vesa Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rajendra Nayak , Sibi Sankar , Johan Hovold , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] arm64: dts: qcom: x1e80100: Make the PCIe 6a PHY support 4 lanes mode Message-ID: References: <20240531-x1e80100-dts-fixes-pcie6a-v1-0-1573ebcae1e8@linaro.org> <20240531-x1e80100-dts-fixes-pcie6a-v1-2-1573ebcae1e8@linaro.org> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240531-x1e80100-dts-fixes-pcie6a-v1-2-1573ebcae1e8@linaro.org> On Fri, May 31, 2024 at 08:00:32PM +0300, Abel Vesa wrote: > So the PCIe 6 can be configured in 4-lane mode or 2-lane mode. For > 4-lane mode, it fetches the lanes provided by PCIe 6b. For 2-lane mode, > PCIe 6a uses 2 lanes and then PCIe 6b uses the other 2 lanes. Configure > it in 4-lane mode and then each board can configure it depending on the > design. Both the QCP and CRD boards, currently upstream, use the 6a for > NVMe in 4-lane mode. Also, mark the controller as 4-lane as well. > > Fixes: 5eb83fc10289 ("arm64: dts: qcom: x1e80100: Add PCIe nodes") > Signed-off-by: Abel Vesa > --- > arch/arm64/boot/dts/qcom/x1e80100.dtsi | 14 +++++++++----- > 1 file changed, 9 insertions(+), 5 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/qcom/x1e80100.dtsi > index fe7ca2a73f9d..17e4c5cda22d 100644 > --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi > +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi > @@ -2838,7 +2838,7 @@ pcie6a: pci@1bf8000 { > dma-coherent; > > linux,pci-domain = <7>; > - num-lanes = <2>; > + num-lanes = <4>; > > interrupts = , > , > @@ -2903,19 +2903,21 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, > }; > > pcie6a_phy: phy@1bfc000 { > - compatible = "qcom,x1e80100-qmp-gen4x2-pcie-phy"; > - reg = <0 0x01bfc000 0 0x2000>; > + compatible = "qcom,x1e80100-qmp-gen4x4-pcie-phy"; > + reg = <0 0x01bfc000 0 0x2000>, > + <0 0x01bfe000 0 0x2000>; > > clocks = <&gcc GCC_PCIE_6A_PHY_AUX_CLK>, > <&gcc GCC_PCIE_6A_CFG_AHB_CLK>, > <&rpmhcc RPMH_CXO_CLK>, > <&gcc GCC_PCIE_6A_PHY_RCHNG_CLK>, > - <&gcc GCC_PCIE_6A_PIPE_CLK>; > + <&gcc GCC_PCIE_6A_PIPEDIV2_CLK>; > clock-names = "aux", > "cfg_ahb", > "ref", > "rchng", > - "pipe"; > + "pipe", > + "pipediv2"; I see 5 clocks and 6 clock-names here. > > resets = <&gcc GCC_PCIE_6A_PHY_BCR>, > <&gcc GCC_PCIE_6A_NOCSR_COM_PHY_BCR>; > @@ -2927,6 +2929,8 @@ pcie6a_phy: phy@1bfc000 { > > power-domains = <&gcc GCC_PCIE_6_PHY_GDSC>; > > + qcom,4ln-config-sel = <&tcsr 0x1a000 0>; > + > #clock-cells = <0>; > clock-output-names = "pcie6a_pipe_clk"; > > > -- > 2.34.1 > -- With best wishes Dmitry