Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp586550lqh; Fri, 31 May 2024 10:01:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdiabPaGNmTvzwBz5Rr/Iu0by8rDIX+e/0O54o0tIDmRScx0dyQvIi21Y3jyUEIOHM5Sq5+Of0o0y+UI8Irxt930U0eiIDZXB216Kf1w== X-Google-Smtp-Source: AGHT+IE0HgWLQM4NniBecccuseodDmZ4HCpX8x9ZeI6Ghz+pdhCdgdsOAkWU+iw8Ul7WAyr1E4ya X-Received: by 2002:a50:9e8f:0:b0:57a:242e:806b with SMTP id 4fb4d7f45d1cf-57a3649b99emr1864125a12.18.1717174871083; Fri, 31 May 2024 10:01:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717174871; cv=pass; d=google.com; s=arc-20160816; b=zjdjcNfdeKL7/N5V5/o3xn2vE5KgjzTOqJyYo/8KHAhRNZtV2b5ABDqWdzVjs0KYfa nqzVTOdhc+pfJjHhem/Ew25vjQhybaEpyj2CU2W30u2MSKknP+RS5DvBvwkzr6h0iSC+ vZDLNPa4Im1ux/cMG0tTuC9X685FspKNx4db6VqFVOqEPa0l/CBfwfsUOsdYeaz9qU91 UXM9WPjW+bZSVXvbDOKReO0MOeZOoULX2/x3zwjFgJ+LHLX/um0S1V5Mg4qMpBhaFgT7 ATGuywhwvo/cgOdD5AmyvBy9l3rkFfIvfgqkN8OXGpobYZk6BpRyu6D5N3vdW+CHm093 klbA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=8RvWgfQcQbuDCgGWUKetp1c/1qaJujsfwtgdILldRIk=; fh=fU/s3ov2n9O5br121Pva2kGe9oDGRtjCISV68/LaEz8=; b=lqNyIeJu9s9Px8s1BWr1kf1BcQ14wUpjCgXPYnZ90d0WeLtLnp+nNCyB+BK0VdEbAR PBxeVXbOjf3qu8l3rHGCHffb2vGH9/wqq/qPjKVcZ2sO5gVVuHatJt/kHoqTXx4FBkKM 3cXTio9DbChwaGr+Hana0pJhhXLRP/ZwoFJ/g+CKxySF93f4V5CGx1HoyNm8+rmitMqJ LzyWVoqjM/fEgxfF1ZzZ784iU+YDrvySh9Cjc8hKJ6CNoBRnyD8EZS3J0+LstSiHoNA2 WHG/87FjnQrTrmS4kA7aKspSDIXzXrB1pPXstjq4C8liY1sWG6wUnSqJxsJluUK34ewI 285A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HGQc1jhI; 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-197210-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197210-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31c626a7si1112919a12.307.2024.05.31.10.01.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 10:01:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197210-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HGQc1jhI; 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-197210-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197210-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A0B031F27020 for ; Fri, 31 May 2024 17:01:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8A1D178CEA; Fri, 31 May 2024 17:00:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HGQc1jhI" Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 5F63D171E4D for ; Fri, 31 May 2024 17:00:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717174845; cv=none; b=KkHbDv1xEXita0+7W7qSpVmQXGVw6I8cqjNa7BBbOMZxsmNGmZ1WnseszOkYDrYPTgwLaupUmRHuOZlz5KyP4vxjf3v3mPkV2tZvHBG7bKR/2Hdf5NUV2FuyQGs/bwKVhCo0dgRME7lRlwMoDywo7of+usjgv81NkU+xG/RSrBc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717174845; c=relaxed/simple; bh=1pUM/4LzJCDPYUEd3pPvnIewA7UpkqQbAeUUXYz1Tjc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hUBBsTH3gayrF9fD9pPBKCzfGxN5PUvmetc1DNNfeL37nwgc40NYH5Oio3FNR2DigoEygaSSiSXnRXyhbzStdjTY8j1YAt8Cv+UUnbM3AUHsJ++EvjN/Zo9YfTGP4zMqSBUuw/+VVOhSz5piWtoG41EYOatzKAZFucwRxOafTtM= 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=HGQc1jhI; arc=none smtp.client-ip=209.85.218.54 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-f54.google.com with SMTP id a640c23a62f3a-a635a74e031so298073066b.0 for ; Fri, 31 May 2024 10:00:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717174843; x=1717779643; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=8RvWgfQcQbuDCgGWUKetp1c/1qaJujsfwtgdILldRIk=; b=HGQc1jhIZa45G1Do3u6Mubox6kNJFbD7R2BLfw0X6jclCSKob40l0+fmaa+sQWqyOD X3OyAuM2QnVGzztRrrQtc0PoUhDFVbXKJPxFsl4Vw6jTPbVQM3Cnge6BIR2GXg+efdDQ rlF9y924UsoalRO25HEReRuH6JosyWeqC2/Vmn26XQ5eK6Xrq2Divr40ZPl2GZQXMNi+ LW36KtJR4aDqSCQKW1/Ye7xgEgAwjFKfn3oEDc6wsFKMdG+bTh+8YrdhGKG4DXkoEz0u R84VZJF5KFImLHp/BAnREXNail0nKKTxWB1BTrI9npvglALMsA75lSTCeF7NJTNRxb/A MGMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717174843; x=1717779643; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8RvWgfQcQbuDCgGWUKetp1c/1qaJujsfwtgdILldRIk=; b=KhsO3y1bcAKoOtJGPqFS+5PyQEowkV12u4FpEcuKBdJB3qD64kaiTzRUYD17N3O9+X Y3I1mwgETNIGEgRg5osZhlTlH+fa6NDoNiupEB/NToZ5gSc2VrkRMUj3U3WLStghWA3O bhHlGSFbt8Q7wvVFBToFtIZf3uYb4FRAg7f7+XfjEg/4yLiXB9O+o0Cj/NCovk0AXzJ9 mtYKEZ8ApXCM4Pl9ri+UoGkoV7mzB9iQ7cIOcWW9eao9+qo1DlFLPcgpAdnfA2qcilR/ /pzOKBCotUf36V8ghRJ2GQ6fOOevB8gVE0Wu71uMZzUjnNuw5Q4Ww1OcOBgadw+mcu+1 +0Fg== X-Forwarded-Encrypted: i=1; AJvYcCVjkp9T6mOI/ylgFNbsljYMEJi7ysH3M5mrmEZZNi3O5FRHVdXYFgNH/QaTB1DxmWK/mEnz4ReIGsxd0derz3vEKzQhsBITzCzVZBCt X-Gm-Message-State: AOJu0YxGTvuWDUcV6CsRlTgKVL9DBP5++0qvt5XrYWqrcqaiDXGUkhAU uoVCLtOoCccCEGtLR1RoQwjSd97AmC5VnOXUa/gjvZ0o7ATzQvG6y7aQt5WO2Og= X-Received: by 2002:a17:906:3c06:b0:a5a:1a:b0e6 with SMTP id a640c23a62f3a-a681fc5ce7emr219899766b.9.1717174842576; Fri, 31 May 2024 10:00:42 -0700 (PDT) Received: from [127.0.1.1] ([188.27.161.69]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a67e73f9a22sm105533166b.60.2024.05.31.10.00.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 10:00:42 -0700 (PDT) From: Abel Vesa Date: Fri, 31 May 2024 20:00:32 +0300 Subject: [PATCH 2/2] arm64: dts: qcom: x1e80100: Make the PCIe 6a PHY support 4 lanes mode 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-Transfer-Encoding: 7bit Message-Id: <20240531-x1e80100-dts-fixes-pcie6a-v1-2-1573ebcae1e8@linaro.org> References: <20240531-x1e80100-dts-fixes-pcie6a-v1-0-1573ebcae1e8@linaro.org> In-Reply-To: <20240531-x1e80100-dts-fixes-pcie6a-v1-0-1573ebcae1e8@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rajendra Nayak , Sibi Sankar Cc: Johan Hovold , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2178; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=1pUM/4LzJCDPYUEd3pPvnIewA7UpkqQbAeUUXYz1Tjc=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBmWgI1Bd6Eclj0ezKyGl5ZYD3aiJquCHn6Dl6gM uuosgL7RCKJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZloCNQAKCRAbX0TJAJUV Viq2EADDwrkm5p1u8yij7aGc/LcZuRSWiPorDu7esQ/BXsaJLSmxP1BBF+Nlh9N6I5PSSnitYJA dJmdRstqSUF+anohoOndw4wcDoUIU6heLHGuTbmx8FCGU1NtJNoajiThIQcl81jVEf+qfx621Z0 blDM3qcr1mxaQ5HEmP7cdZmR+dbmBCKITbHe0u5wdIZco1bRXM7PYVz/FMB7Derrx/oBJZt0p0G Qv6FNXwDwQC2UYmnm7rJlWar+1ZdxBn8K8giX4+KMybsEzBskNdPI7nKCmkEsds/zdmRJmBrpWo OUb44CgiicxAo58xTore8URPrxnWPA8Q0fWLXLUauXusDgigoppaOCvfYWja7ocum6+pQe6ANSu SYo8aG8uP8vutoR8WYZotYBL/HOmVTzHUR7/kET1cQcbHlG1WzoZ7Rnc1gXllt5+CQmdU70Mhxw IBkG8ZMpQHZYuVblyxqWdoWxTsz+MMBrZTObIlMWbao54It4q6K7cLe2nAg/+bV7pMZk29fanU8 Zxq9JjKsAPZ7luoGxgKpvepKXuJOPnp1Cp4WC5ar/Cqc1rkbbb0rggqfG1bSBVuDD96nc+v/Klv l+yq0HBZEHBMdFqdYZXlBpPqnogQvJByWtP8zQu3I0tgr8UCaY3DbdTaYna7wji97q/VlJR/9uZ d4ury2UCo6h8Row== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE 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"; 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