Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp941427lqj; Mon, 3 Jun 2024 05:54:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVNdYM7C4eTh4cFZodtflgTe7NSJpPOeIYu2GqHP1PGyGWDnUp7+BjN/huS/v5exvQaDl1j2xGAxQ0W3+ZZwexY7QzLfoZ96cDHEZpVEg== X-Google-Smtp-Source: AGHT+IFnoRhiq2WKn6wd4nkYSfTKlJ69KUSRk4es3OwCoUY19dPDSzdejwX+Vh9WmKpACZ2PUMp8 X-Received: by 2002:a17:90a:a414:b0:2c1:b7f7:364b with SMTP id 98e67ed59e1d1-2c1dc568f62mr7923603a91.9.1717419276381; Mon, 03 Jun 2024 05:54:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717419276; cv=pass; d=google.com; s=arc-20160816; b=qDhhXtQFXJx0nIO3LNwD7QWNAGNIxGgQY08vhqNEveYR0vHYt6KUWaLUUtSVgikIwa 9T7RTGNBck4kr+sf5TXTNuFYMRqWFVXJ2EDjvmG0zGQ5mul1XlMogJCZc3J5QDFnZVft 4I7gL9xdPjq/bDp8Uaa1yIy2Qiu3i3JFy0mTFDQp8wGFu8KkCWmqTSfljW4FVDEwfiH+ NGDE/qLwHKM6VEa41azgDZXONs+aKtnHlbDXamQt1W1rHJiDGP0tokg7Gyidl04F2mEY QualxNpMYNv4+N9TyZtEKf09uVInkon1rSxIYOmCRA26brkcvMFg0hjbVw2Ux8FCtLhg odFQ== 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=/gjBGm3MjnxnALD3IulhKdzdMcr0RCopeK34mloauHc=; fh=ECZjqzDY7fKCKkcKw2Ly25fHQMKhznC5WN19Y9kXr8M=; b=Ni3cLnV7JjUo2JnYYVPUJdvXmdITrIFe51csXxuh7NXv/qZ7nBapOWqqTXulVj+g2k iCy3ot6+alLF/rJLZzY4u51/CMQYyJ+p3v+NKR1OsFnxhP+sqDI5NrpdDRrkFTypzTaW 4RVnFwoXI8FTAXvn/zKdeMSxJfaN3wi4fAEecmfuMipfYzZPD2wnHB97HNmsANdOq3Jk TwJUbOcRZZSfGpe300Pz0kEGTNclJPipv071WFlbMHEU3Q489o9ilogmcMA72F7iEsLA ldgmpB7VSJOEQCRaMvEpyWl9Eiq7XAnZdgx4LXOcBfsPOh7L60nMvJaHqxKnVKs5+rqY w9Nw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CIUDWMUB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199138-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199138-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1c283e9adsi6585879a91.159.2024.06.03.05.54.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 05:54:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199138-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=@kernel.org header.s=k20201202 header.b=CIUDWMUB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199138-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199138-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 3D4D6289507 for ; Mon, 3 Jun 2024 12:53:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0FA0212C814; Mon, 3 Jun 2024 12:52:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CIUDWMUB" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A55012D742; Mon, 3 Jun 2024 12:52:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717419169; cv=none; b=BVTowF2xmPO3d1Qxfe1Zyxj/3TFQ+tHR3Av1l4PItyVPRLii9uPBfV+dV+mMYeuqXi/I/9DPyJv8++MyVKnVXhEqWI7ovxgIZt64iFMXAHtlHG1MpAXEBT9WU2P7SnhFvk5Yw+X0HWHzYOs1jenlP0pQhBtrShudeFu4bEvWpcA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717419169; c=relaxed/simple; bh=ywpaA1EH3oNy9EEn3g4JabojjmcP8mrY7cp3FkFdaz8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gN1hG+izQEqpxYZM9o0dd5iE1GjZKMjAWwJOtoVhFT+t8qh/7rjO4zCDM5gFfBVHR7ZCzbani3Tql8JHYmTr9eXS1kdI3Imeg45v6PtBYdHPGsrR6xQ44GXnl+RXHPRrxS4kztGnX5OBNH0NPopbxmp4EMitBMVO9vgSNvVzSoo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CIUDWMUB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACCE6C2BD10; Mon, 3 Jun 2024 12:52:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717419168; bh=ywpaA1EH3oNy9EEn3g4JabojjmcP8mrY7cp3FkFdaz8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CIUDWMUBnfcAJ28QxhZIYAQWijx7MXKlOCQwvau55PtvY0v3JysjrqkHToHEsLJOz Zy+TrfIrXPDbkkk8TM10LoSvA/JdL33yKUFPj1ESFYLxPy3up44tzsZKrmUY5DF4Dt t+QmmCredUCOVuiN5ZC/38n70eVsL+dpmQevX8ceeKNUCjnoiFf1K6QoQ7oU27monU ZuH+RNyX8T8QWQwHXE8dN5x+wOtfgfTauzGuQn4O2tNW4LogD+rNza2/ebroDf4yLW LUCVP4k+bY3fm3Jj6LlYMsjekANUYWpHNSlUwV+RS7YG4ci3FN9cHGXe34z8kURd3l VM7M9e66Clklg== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sE7B8-000000000po-12ID; Mon, 03 Jun 2024 14:52:46 +0200 Date: Mon, 3 Jun 2024 14:52:46 +0200 From: Johan Hovold To: Abel Vesa Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rajendra Nayak , Sibi Sankar , 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 s/So the PCIe 6/The PCIe 6a controller and PHY/ > 4-lane mode, it fetches the lanes provided by PCIe 6b. For 2-lane mode, s/fetches/uses/ > 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 s/use the/use PCIe 6a/ > 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 > @@ -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>; This one should not be removed as was already pointed out. > + <&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"; As I just mentioned in my reply on the PHY patch, this does not seem to work on the CRD were the link still come up as 2-lane (also with the clocks fixed): qcom-pcie 1bf8000.pci: PCIe Gen.4 x2 link up So something appears to be wrong here or in the PHY changes. Johan