From patchwork Mon Jul 22 09:54:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 814241 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 8DBB216C846; Mon, 22 Jul 2024 09:55:20 +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=1721642120; cv=none; b=MN0htUQlyC3M7waVsDjDhCtHRMrnwpx0O2fsPX/r98dSHVIBFHJv2BLh3z4T2e7JERwqDwXSrVQFjytxISlwXRzsXaTNKHTlHO7BqxkZFSAwpP6ALsTvpfDFa3Kgqr4wNw+XjcwUH2/FVNqZnwkEk9DvM+/QG/Up0MxoMqtDvVo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721642120; c=relaxed/simple; bh=R1YDhQPevrJAfMVJRTnc1q+dNK0ScEuhS/1S2gK4RBM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PRJj2B/s/CyKNIX2vZG7MH7MdItpS9BB34duG8MnBFQ79NpLUUfehz6A1c60JUfMtdDP8POHqmpRyNxi1ZaXxCT/gzfuJYkyzsitSDEO7fEehu2StjcWBJ7FNA7Pl9vNdm7h3gE/kpO1Z5mPir9zpsjQLHMqa7sOJ9VvJBxPHoY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dw/zsZSJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dw/zsZSJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42D92C4AF0E; Mon, 22 Jul 2024 09:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721642120; bh=R1YDhQPevrJAfMVJRTnc1q+dNK0ScEuhS/1S2gK4RBM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dw/zsZSJ7mW10iEDyOP9sHVc+T/4/mpEHR96hPkVSy7A1j8WSIxHAKcw5H+Hv3W+k CTmD8FsS9N6s9d2ZbscdEx74wqEAH8oCDFC+q5EQYa8Kyp1vekQjjQDvP3RkuSBq6W izNwf065RN+25lZc+OOnNC0/0gQH5wkXESKzokSVkQX4HAvLcK25HWeziwFBbhPOIX LfrHq0JR36SEJoV3q5L2EgGZAhFAYqcQBSpscioESfkYRti0YxC9V3XAXW0xWb8dkB fi0CCwoNgY7x7zTej4rq2qBY4bnN8vhY03J/Dn5Kx7+LS2f/q+FrknpnDbLjdRs8oa F1dUhnUT3h3Xw== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sVplH-0000000079K-0EnN; Mon, 22 Jul 2024 11:55:19 +0200 From: Johan Hovold To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sibi Sankar , Abel Vesa , Rajendra Nayak , Xilin Wu , Srinivas Kandagatla , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , stable@vger.kernel.org Subject: [PATCH 01/12] arm64: dts: qcom: x1e80100-qcp: fix PCIe4 PHY supply Date: Mon, 22 Jul 2024 11:54:48 +0200 Message-ID: <20240722095459.27437-2-johan+linaro@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240722095459.27437-1-johan+linaro@kernel.org> References: <20240722095459.27437-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The PCIe4 PHY is powered by vreg_l3i (not vreg_l3j) on the CRD so assume the same applies to the QCP. Fixes: f9a9c11471da ("arm64: dts: qcom: x1e80100-qcp: Enable more support") Cc: stable@vger.kernel.org # 6.9 Signed-off-by: Johan Hovold --- arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts index e7758f172d0d..212ed20b3369 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts @@ -576,7 +576,7 @@ &pcie4 { }; &pcie4_phy { - vdda-phy-supply = <&vreg_l3j_0p8>; + vdda-phy-supply = <&vreg_l3i_0p8>; vdda-pll-supply = <&vreg_l3e_1p2>; status = "okay"; From patchwork Mon Jul 22 09:54:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 813812 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 8DC3E16C84A; Mon, 22 Jul 2024 09:55:20 +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=1721642120; cv=none; b=rwHblV2NBjkby+od/aOHZvUJrsXZi8jER6PWE/td+AZ56lnOQLqiwAWXmhFUMK0Bg1OxfXiRcvzGDEY1xhFWGWfgkmgShBx5hkiyhdD+jE7Df6xQxoiaT+9GMCp1ODruSPk02dHgFInfuP3CqKNf7+Jb56xRb/K0ovaiu56tbgw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721642120; c=relaxed/simple; bh=jWLnYM2jfTmwijyJy6MijsD/KmzgNL2miAnBtjS1YHA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DnrO0Mhay8i/GG56qNfHVKhMoKS8Rhj0QwkrQ1r2v8EjzIy5CFguehmFbfZARIWxRVHXYNc9OlYHFNdNIrEuCCrlB6d6zbE/zVyqovQ4FeEnQupgh9aIKr0S74XNHc6TtSGEX3cmQ8KP5YVmRhLolvk4XeZirx8R+8yBtZvSrQk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rM83Hcf0; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rM83Hcf0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 452F5C4AF10; Mon, 22 Jul 2024 09:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721642120; bh=jWLnYM2jfTmwijyJy6MijsD/KmzgNL2miAnBtjS1YHA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rM83Hcf02/77W+aO0gumPYF/SfntKNUpt/3bOH0+R+JmuCgnN0i5JWhYOzgnqy384 Sx0bp+wVxg+enpx9pqGFHb0abJT7NuyDk2fYs6wnnEWEOzqiUTMfwaksnJ3v7zYQE7 PT3rGn02Pyvks2K0TeYTzMiHY6X8v4nnLxYB7vetekm/5Egx557sb+at7CJXadOW0y VZ4SOs0lrrM6/IURQJjf0bAxMUO0huWJd0j1HjheqAI9A69vL7EJkV49uC6vSXeC47 R1UV6ISAtzFgZcsWWFE2iiOP7FmsMEzMUtybTWxKKPOZdK5eRG+sUxo3nYp5WiqpOX 9YtrARNLz2Y1A== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sVplH-0000000079M-0ewj; Mon, 22 Jul 2024 11:55:19 +0200 From: Johan Hovold To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sibi Sankar , Abel Vesa , Rajendra Nayak , Xilin Wu , Srinivas Kandagatla , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 02/12] arm64: dts: qcom: x1e80100-qcp: fix up PCIe6a pinctrl node Date: Mon, 22 Jul 2024 11:54:49 +0200 Message-ID: <20240722095459.27437-3-johan+linaro@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240722095459.27437-1-johan+linaro@kernel.org> References: <20240722095459.27437-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The PCIe6a pinctrl node appears to have been copied from the sc8280xp CRD dts, which has the NVMe on pcie2a and uses some funny indentation. Fix up the node name to match the x1e80100 use and label and use only tabs for indentation. Signed-off-by: Johan Hovold Reviewed-by: Konrad Dybcio Reviewed-by: Abel Vesa --- arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts index 212ed20b3369..86735f07fbb5 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts @@ -665,7 +665,7 @@ nvme_reg_en: nvme-reg-en-state { bias-disable; }; - pcie6a_default: pcie2a-default-state { + pcie6a_default: pcie6a-default-state { clkreq-n-pins { pins = "gpio153"; function = "pcie6a_clk"; @@ -681,11 +681,11 @@ perst-n-pins { }; wake-n-pins { - pins = "gpio154"; - function = "gpio"; - drive-strength = <2>; - bias-pull-up; - }; + pins = "gpio154"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; }; }; From patchwork Mon Jul 22 09:54:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 813810 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 D883616EBEA; Mon, 22 Jul 2024 09:55:20 +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=1721642120; cv=none; b=MqVpv3lBEE94H/NOcpx6TEgIUMXhH1fmmX0qxyXA0dI5b8dQCmtAZReKLt4nuZnsH9hFgmuDPDyLLT86DIZB6BuxYSIFECHDxFptUZ6Rm3/RCKT0B+b936GXQOc+7jR+/rInB55ouUu48VNg2DAVlZvhCB51VDdIwmXQ9rlgw+I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721642120; c=relaxed/simple; bh=LHD2wmUiMEnvEGP802hKWAFX2vkyza4ijkwiT7L5ajU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EQakQCB7ppe8Gt5JXWX13oiOgqmTnqHHH+g36HhQrNdabdudTysTdx5/lqM17Bk5tN0xf/P48wf54WLi+ZTYbL6NIuAk2zGbXgRV6dym0ehL8lz0h7yGoLNxSy1lBLwXvw1dRpyhZtMq9lUXwo8F+PYfHGmxYi7b1BdKYT7mmIw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QLHk5xnT; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QLHk5xnT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40337C4AF0D; Mon, 22 Jul 2024 09:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721642120; bh=LHD2wmUiMEnvEGP802hKWAFX2vkyza4ijkwiT7L5ajU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QLHk5xnT2AYjEHR5IzT7QXE0LxzHiM725TKCarge6CppxMxX4cDI4mdsCDsMwmHWf Hq6VQbOtEZjB9sNefmvp4pSJ3BU2wD/SQa56GkqtUZOXLY7/NraVFg7O5SshG/WcKU lbWw+ZfSl7qZWqR8Ycx1hXemthT9giNEy0Nb9FlfwmR7ujiKXjX1fa723cHgHLZ3SJ Zrt8niL9mzC61H11kWwWJfNQnPUQDG0DzurftIG1C/Ex+g1DvixPwH4mfn3MnoDk4X R28irgSrplB9Pl898VvetVFF2xlLL3KAEbugm4KMjkxNV6jjG3CM+mY6dvrU1EzoXj oaT3iYLoCNosQ== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sVplH-0000000079O-157e; Mon, 22 Jul 2024 11:55:19 +0200 From: Johan Hovold To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sibi Sankar , Abel Vesa , Rajendra Nayak , Xilin Wu , Srinivas Kandagatla , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 03/12] arm64: dts: qcom: x1e80100-qcp: disable PCIe6a perst pull down Date: Mon, 22 Jul 2024 11:54:50 +0200 Message-ID: <20240722095459.27437-4-johan+linaro@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240722095459.27437-1-johan+linaro@kernel.org> References: <20240722095459.27437-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Disable the PCIe6a perst pull-down resistor to save some power. Signed-off-by: Johan Hovold Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts index 86735f07fbb5..998e5ea2f52e 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts @@ -677,7 +677,7 @@ perst-n-pins { pins = "gpio152"; function = "gpio"; drive-strength = <2>; - bias-pull-down; + bias-disable; }; wake-n-pins { From patchwork Mon Jul 22 09:54:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 814242 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 8DC9016CD05; Mon, 22 Jul 2024 09:55:20 +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=1721642120; cv=none; b=ci+liZ+Rmq5dR61gXlV8Ed0KpieqSSMs4ahy+H1dxtiSfgrMBi0mghPXcchumXh+bjW5XpEAjRJw/DvvwOTf/hFCbWgBI/7BU9DGBbDdM+0apqIpcexkNLMW4ACbet363R+iK6OlK8C+9bs4Vt2Smlzo4f2zKXVpReFHPf/WsDE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721642120; c=relaxed/simple; bh=kURi3B16b7OSCk1RbWqrEEd9NL4wjEV60mNcObI8r6U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iLeKwxrQDjls9HFstL8sXf62sLQqcdAA5tItGm0sYFF4g5qzrggXVTqknjy2IywacokzaKcHAuUC0eeZX4J57762f2oKVjp4fwd7/o/3LFMElEGmbzJSVcYzfiFNiByMqZn1Esa5tcLwjdUGaBJYmpb2XbC2FtXiGsE26ZIb7pQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Q/fLyT6I; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Q/fLyT6I" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A7E0C4AF0A; Mon, 22 Jul 2024 09:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721642120; bh=kURi3B16b7OSCk1RbWqrEEd9NL4wjEV60mNcObI8r6U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q/fLyT6ISZptq+BgwdPddZmMuKhuijqMrxMz2WCXpkTiLeL201POXMFhsCJd8D0Qo /eT+vQfUv6XNBGYHz7yLY1+m0gN5cs0Lv7vFgZBNSFZago7dpalLdRCogO7BBU87oG ost8GNPmXggLjRuK7TbTEpIxxo/4OvziqAeA3hFnQWzhsX4Zr8qaYirmgolTN7IekK h3M+Ts/ZUCIUjEfWFOvE+9yEL4TbMCHuGDw0tWoHt1jZ7K2HHEBES7sEBS7iZKRkMi klz/xQVa64cUN1rjQbX4SuveqKkst9lR1084hCt8//7I6RwAjyzwNrlg6e1pebWxc5 nCK7iYvnzl5/w== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sVplH-0000000079Q-1VSG; Mon, 22 Jul 2024 11:55:19 +0200 From: Johan Hovold To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sibi Sankar , Abel Vesa , Rajendra Nayak , Xilin Wu , Srinivas Kandagatla , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , stable@vger.kernel.org Subject: [PATCH 04/12] arm64: dts: qcom: x1e80100-qcp: fix missing PCIe4 gpios Date: Mon, 22 Jul 2024 11:54:51 +0200 Message-ID: <20240722095459.27437-5-johan+linaro@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240722095459.27437-1-johan+linaro@kernel.org> References: <20240722095459.27437-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add the missing PCIe4 perst, wake and clkreq GPIOs and pin config. Fixes: f9a9c11471da ("arm64: dts: qcom: x1e80100-qcp: Enable more support") Cc: stable@vger.kernel.org # 6.9 Signed-off-by: Johan Hovold --- arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts index 998e5ea2f52e..786285af9f33 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts @@ -572,6 +572,12 @@ &mdss_dp3_phy { }; &pcie4 { + perst-gpios = <&tlmm 146 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 148 GPIO_ACTIVE_LOW>; + + pinctrl-0 = <&pcie4_default>; + pinctrl-names = "default"; + status = "okay"; }; @@ -665,6 +671,29 @@ nvme_reg_en: nvme-reg-en-state { bias-disable; }; + pcie4_default: pcie4-default-state { + clkreq-n-pins { + pins = "gpio147"; + function = "pcie4_clk"; + drive-strength = <2>; + bias-pull-up; + }; + + perst-n-pins { + pins = "gpio146"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + wake-n-pins { + pins = "gpio148"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + }; + pcie6a_default: pcie6a-default-state { clkreq-n-pins { pins = "gpio153"; From patchwork Mon Jul 22 09:54:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 813811 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 8DBED16C849; Mon, 22 Jul 2024 09:55:20 +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=1721642120; cv=none; b=F0gGcMZP14x0lFU+AssRevQEr1Ant1amZMd5yysVmO15Eju5pP03AnttJN02TI/V24WBPI3pN43n/l/0LqI+49NuZfSqgWX24R4QTzHKn3zdW7vMmygbNKgnDOvjxJeHKqzJiG75oOayFGN3L8KCndmq+/zwwx2yfuJZnOFBf1o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721642120; c=relaxed/simple; bh=XfNPKoKwFqulsmLTeDJmLTnpyfRhin3h/BnbahlTTDE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XA63MKcrk+sPAI2/k5C1yoNQWjIPgpk+3Q6zNqgY7S5Ke87sA1XrBanv5MFAMzBVTbmfCRZu63OqFERzigg/0VGG1E28HU672Pk4dAIiqk4ZJFtk4EAIHvqZ1c5g8dvkV1dqquPB6rmsRY5lYabvcDoX3DWVZDXRsVXEWMd8ppo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RDYGRkQM; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RDYGRkQM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31F0CC116B1; Mon, 22 Jul 2024 09:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721642120; bh=XfNPKoKwFqulsmLTeDJmLTnpyfRhin3h/BnbahlTTDE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RDYGRkQMV3gIUh3NNFaxT3iNOcys+oinCjjE8NqK/XJyFXI+IpD6eSowLfeMwl0yg v8TO/pvGZfO0s+RQWnqU42THkEWNgVH3dXOEdFkiEaZwZVtDPTJvnRkXBab6PiFhKJ YW8HdiGJVCI/wQP116mwwyx6KhD5ap5x2Tgmi4rcCBZt9gsa4s7Tzx77/Qu86mS/k6 O2cPmwWhlz6/L9P7R3cHYqT1SodX8G7lN8tcR5OKJpqfUw/32cl/mDAaV5vAOLhK6K fWNTlpMloBYQy6S3dwlA2h4zLsnBulHBMRvKlyVWKnWFj1tAIcGJM6J/X/MPxzXWwn z+3qDrCHbipxQ== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sVplH-0000000079S-1vbq; Mon, 22 Jul 2024 11:55:19 +0200 From: Johan Hovold To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sibi Sankar , Abel Vesa , Rajendra Nayak , Xilin Wu , Srinivas Kandagatla , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 05/12] arm64: dts: qcom: x1e80100-vivobook-s15: fix PCIe4 PHY supply Date: Mon, 22 Jul 2024 11:54:52 +0200 Message-ID: <20240722095459.27437-6-johan+linaro@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240722095459.27437-1-johan+linaro@kernel.org> References: <20240722095459.27437-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The PCIe4 PHY is powered by vreg_l3i (not vreg_l3j) on the CRD reference design so assume the same applies to the Asus Vivobook S15. Fixes: d0e2f8f62dff ("arm64: dts: qcom: Add device tree for ASUS Vivobook S 15") Signed-off-by: Johan Hovold --- arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts index 7fb980fcb307..f7337251349b 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts @@ -278,6 +278,13 @@ regulators-6 { vdd-l3-supply = <&vreg_s1f_0p7>; vdd-s1-supply = <&vph_pwr>; vdd-s2-supply = <&vph_pwr>; + + vreg_l3i_0p8: ldo3 { + regulator-name = "vreg_l3i_0p8"; + regulator-min-microvolt = <880000>; + regulator-max-microvolt = <920000>; + regulator-initial-mode = ; + }; }; regulators-7 { @@ -427,7 +434,7 @@ &pcie4 { }; &pcie4_phy { - vdda-phy-supply = <&vreg_l3j_0p8>; + vdda-phy-supply = <&vreg_l3i_0p8>; vdda-pll-supply = <&vreg_l3e_1p2>; status = "okay"; From patchwork Mon Jul 22 09:54:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 814239 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 D894016EBEE; Mon, 22 Jul 2024 09:55:20 +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=1721642120; cv=none; b=uKi4+eqYZiS+iYz1YQxXyVkYaQ51TZQiUFwiJTPIwqJN5uJzgLfnIfH+TTQjU9d3jMTg2uXf6rezPK9LSsQFT5uWmM7hp/vJ33GU7fXKCcGX8e1B5Ab6ojGl9ZSsCPwXbDBYRIzlSnMS817kNMjdpdjEfdEwxdtWxgm26vqDRD0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721642120; c=relaxed/simple; bh=Gdi2MzUD4rKIILpLzZ1Bj03AKvu5EcXUJhFyHFv90fY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UoPZdbT6nDrSmBUjfDCRrIK6fv9pUpKJvtvxBuTtHBMWVpswxSQbNWwNJblXmYbbn8af9t4d5Uk3hoS+lSyugVu1iseHoD9bRdiJB5ejunPSSPIbbpEsONr7SKFnfB5E+D0sMjk7Qy40qKiQw2zwHkrt270KsZbVaNFQENj/mKo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=p0Zi63Z9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="p0Zi63Z9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70F79C4AF68; Mon, 22 Jul 2024 09:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721642120; bh=Gdi2MzUD4rKIILpLzZ1Bj03AKvu5EcXUJhFyHFv90fY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p0Zi63Z9ZpoXO6trjqEMdhSwdz4IOX6vuMtqeE62eeZ9JOeM8uWrF+uvY9bnERl4r 8lylgDp97YLaOtyd/uaSEfAISfxnwd3pG09SxV9NotSDgcUFM08mPvF35cK3N0rrMK 7jC1a6S4/tPQBm75QWi0mI6iT1BkJlkrEe1IRKLIzDodrh0tMp+59sSy/RjSKTRmYe f17UEOvzCccWQcJhyjdWK/Q+15YHX+3Q92K10OfUYZZ8gSkEpol6hUayUxVQTw2S9N B/e9mWXMcetbEwAdnRFd95wkEbrPuIwMGhhrVDR3HAX0Dn05Sb8+AOTLr5/RdsDISr fGK4LAwpakoSw== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sVplH-0000000079U-2Llc; Mon, 22 Jul 2024 11:55:19 +0200 From: Johan Hovold To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sibi Sankar , Abel Vesa , Rajendra Nayak , Xilin Wu , Srinivas Kandagatla , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 06/12] arm64: dts: qcom: x1e80100-vivobook-s15: fix up PCIe6a pinctrl node Date: Mon, 22 Jul 2024 11:54:53 +0200 Message-ID: <20240722095459.27437-7-johan+linaro@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240722095459.27437-1-johan+linaro@kernel.org> References: <20240722095459.27437-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The PCIe6a pinctrl node appears to have been copied from the sc8280xp CRD dts (via the x1e80100 CRD dts), which has the NVMe on pcie2a. Fix up the node name to match the x1e80100 use and label. Signed-off-by: Johan Hovold --- arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts index f7337251349b..ff51dd98351c 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts @@ -524,7 +524,7 @@ nvme_reg_en: nvme-reg-en-state { bias-disable; }; - pcie6a_default: pcie2a-default-state { + pcie6a_default: pcie6a-default-state { clkreq-n-pins { pins = "gpio153"; function = "pcie6a_clk"; From patchwork Mon Jul 22 09:54:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 813809 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 D8F7A16EBF2; Mon, 22 Jul 2024 09:55:20 +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=1721642120; cv=none; b=JUxGCIO+KnZU1GChuUQruUmHRbaVuyBSOoXIi4o1ezDggDH+cUWbP3IW4r+Hba4yPLsNCMeRP84ISrpwzAh9QXwYhnqdGu8yVPk4oi4BnD5JbKtQQbybuvHN8k/9YNsCQ6XuZwqgiJrn15FuajiGZIPqun9740Ki5FG55L5AhSs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721642120; c=relaxed/simple; bh=ikgyp8pmvlfMUClhFBZWrBkM+wgPyISauwYP7aiip94=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oGKM8mCN1h0g8nGVXEZGyWREZJLb32DcvCTNZRc/CoKx9ctlrgNyqQx+9qGO/m5URPwAnbnRAInyBkVYqMIte3HJxVL/2fsSHk2TVdv882HEbelMrx/+gBTtBxiZ4oyC2Pvt93LXmMPs5OAgsmRdTWV58YKVj2ToIdPtfVJd+ng= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=d+iLYUU/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="d+iLYUU/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BFDBC4DDE1; Mon, 22 Jul 2024 09:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721642120; bh=ikgyp8pmvlfMUClhFBZWrBkM+wgPyISauwYP7aiip94=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d+iLYUU/36LVPkvB0SD4+cHduzizASmGmI6Sp4RH7udC7EBXSepLyNV6M50gVmgot fnl+khKVFfyijr9rBanrojlmRQQJ2AjrJBrzgjheat/AtcxiF4vhGAW9+egv1gpGBU /mXkOJ3bcMSA7Eo8JQWxJ9lX8GvKZdXA9WEYA1YzKsoZjVzKxzkr3unScfEyvhIFYv sKP3GwNEh+B+OYlRndBUy8pEk5lJ0BdxXVpqWUNowvoaNMR6VwKVFFFrpkUn55mWEU liXf9XU7GgiDv9KXkI4kZn5veeiMQtHgjEqQEB5K+Kr1+DHICxW1NOgMNGhekAi9sb G2s2BV2p93ZWw== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sVplH-0000000079a-2irj; Mon, 22 Jul 2024 11:55:19 +0200 From: Johan Hovold To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sibi Sankar , Abel Vesa , Rajendra Nayak , Xilin Wu , Srinivas Kandagatla , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 07/12] arm64: dts: qcom: x1e80100-vivobook-s15: disable PCIe6a perst pull down Date: Mon, 22 Jul 2024 11:54:54 +0200 Message-ID: <20240722095459.27437-8-johan+linaro@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240722095459.27437-1-johan+linaro@kernel.org> References: <20240722095459.27437-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Disable the PCIe6a perst pull-down resistor to save some power. Signed-off-by: Johan Hovold --- arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts index ff51dd98351c..1eb0abcbf650 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts @@ -536,7 +536,7 @@ perst-n-pins { pins = "gpio152"; function = "gpio"; drive-strength = <2>; - bias-pull-down; + bias-disable; }; wake-n-pins { From patchwork Mon Jul 22 09:54:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 814240 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 D728816EBE8; Mon, 22 Jul 2024 09:55:20 +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=1721642120; cv=none; b=efD3qSr3X8ttKUwBc1Mkri5sTvbITf7dGjRx7n2ih60+uMereon1xvJYv+fo6UcFf0jXpcm90jL33jqXOW00rPRJaBfducNl4LQx7mwq7YkBmvBvlUqmIi3DamC4mJ2Ne4XeLASQzOAaMbg7Ef+mwA2HoICWH5opfASHTWw3sWc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721642120; c=relaxed/simple; bh=keFz8P8QGXAZ3tDXLpAqg74yLy8RutIEZLcgfXCjQxY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MqCJyyStgDhJZskjqyisMBARyweO2mcyNizGtPhrQpQyAuSA2eYpGlpXd+BaVG2NCK1g7Ewpb97wsFEI5RYKZpso1xAnQ6kwGJea5KajF1HfzpnnM6+JLDfblF5Z3Wag8VnCKw0rbE2q31LQby3/PvlfVv6hxBqQHg4vkn8u7eE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Xd4QrsRr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Xd4QrsRr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70FAFC4DDE0; Mon, 22 Jul 2024 09:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721642120; bh=keFz8P8QGXAZ3tDXLpAqg74yLy8RutIEZLcgfXCjQxY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xd4QrsRr62Gj6luiQ2JzEBFibIlF6Kr7+ze4qK5IHLWUTJ4Q2KuegHJnR3jO5ZfO8 c1cZ0118kPB+SURk+R7O6MfddDmzkIpz4himltrepfCjB+q7Mm2wDOKlM+l4rI+x8a FbRhByMivhFMtmHWjHC7nxi5rNV8Xv5iojZ/D7WYvyZebHw5RuBMnw5m/L5DTlEYlQ +ufB4k8FRDt+U1BY429n/vpYys3ybGdIyzX5F88Y8K1oeYr/9VA1DQbKS1zEOOlbBf KvAc6azruRwSqg2WQaJAElwciTk7F9jhUdggrFpJ4NqXo2N4nkgb/JgCtKymV7WIVq gPqBZORAWw2+g== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sVplH-0000000079c-36JV; Mon, 22 Jul 2024 11:55:19 +0200 From: Johan Hovold To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sibi Sankar , Abel Vesa , Rajendra Nayak , Xilin Wu , Srinivas Kandagatla , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 08/12] arm64: dts: qcom: x1e80100-vivobook-s15: fix missing PCIe4 gpios Date: Mon, 22 Jul 2024 11:54:55 +0200 Message-ID: <20240722095459.27437-9-johan+linaro@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240722095459.27437-1-johan+linaro@kernel.org> References: <20240722095459.27437-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add the missing PCIe4 perst, wake and clkreq GPIOs and pin config. Fixes: d0e2f8f62dff ("arm64: dts: qcom: Add device tree for ASUS Vivobook S 15") Signed-off-by: Johan Hovold --- .../dts/qcom/x1e80100-asus-vivobook-s15.dts | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts index 1eb0abcbf650..9caa14dda585 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts @@ -430,6 +430,12 @@ &mdss_dp3_phy { }; &pcie4 { + perst-gpios = <&tlmm 146 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 148 GPIO_ACTIVE_LOW>; + + pinctrl-0 = <&pcie4_default>; + pinctrl-names = "default"; + status = "okay"; }; @@ -524,6 +530,29 @@ nvme_reg_en: nvme-reg-en-state { bias-disable; }; + pcie4_default: pcie4-default-state { + clkreq-n-pins { + pins = "gpio147"; + function = "pcie4_clk"; + drive-strength = <2>; + bias-pull-up; + }; + + perst-n-pins { + pins = "gpio146"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + wake-n-pins { + pins = "gpio148"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + }; + pcie6a_default: pcie6a-default-state { clkreq-n-pins { pins = "gpio153"; From patchwork Mon Jul 22 09:54:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 813808 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 EAB5716EC02; Mon, 22 Jul 2024 09:55:20 +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=1721642121; cv=none; b=u5wW10SzFT1aOnTnj9hfkh5VNPhIYKgPK1/tcls2b65oU3uO9yn3LFHUJ3ca5Cb6FZQkW3d3FwGJSCklRBKSpfBVRSkjjHfwv+9dZCuRs2oZ099h8iVy3Xou3BxG15Yvrkd67T5xkUC9VWmz+eOjVdcgudaWt01dsQExUR4riHI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721642121; c=relaxed/simple; bh=0KVtuwSKKTm46nCfkrLIFBxo5vlLrbZ/OXa6EScXleM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=li2Sdos+OMDtXB8cqbvxC9TIfpoE3qOK9uDeitDePyKTgAMdyMXHjA1WaUPMB7uTSn3CV0dqtMUFDBAEP1zaHSMYPV2Jg9hhWR2pqEMcToKTHx1REsrSdnkVNvxq1Ak2Z1BvjE33ZLmPiK8xsRdq2MtQuRwu8Wr8hrbqEdNiFtY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DCTLosKD; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DCTLosKD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BA87C4AF61; Mon, 22 Jul 2024 09:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721642120; bh=0KVtuwSKKTm46nCfkrLIFBxo5vlLrbZ/OXa6EScXleM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DCTLosKDhedDq3l5sIQywsN46x36+rrWod1vnGQs8sCOSncNewGj3mV8OH4JadVkf KBkougVhiSGOcQnrcmeUhG7VPOhZktLnhI8qMGUggwmLc7CyeSJDNzMvEKCVdNSWVr uoCqFdOt8wxPKLsfLOL66wNr979TTL2hfq7WVXo9QqhQwuecIU3MJR8zC6738w3bp/ 58Svdu3ctrKY6SubzMGZUbQdMvM+FRPWY8+IDT437XINxxWbSvE8A/Xyd8kdEIoavV jNFeFz2X4wjCb/6G0k85BA6g2wwOPO7xpfX+U2Fm+uKW81dI7RvOAjxmO0wn/7P1HI p8Wqlewq3HjXQ== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sVplH-0000000079g-3VeK; Mon, 22 Jul 2024 11:55:19 +0200 From: Johan Hovold To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sibi Sankar , Abel Vesa , Rajendra Nayak , Xilin Wu , Srinivas Kandagatla , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 09/12] arm64: dts: qcom: x1e80100-yoga-slim7x: fix PCIe4 PHY supply Date: Mon, 22 Jul 2024 11:54:56 +0200 Message-ID: <20240722095459.27437-10-johan+linaro@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240722095459.27437-1-johan+linaro@kernel.org> References: <20240722095459.27437-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The PCIe4 PHY is powered by vreg_l3i (not vreg_l3j) on the CRD reference design so assume the same applies to the Lenovo Yoga Slim 7x. Fixes: 45247fe17db2 ("arm64: dts: qcom: x1e80100: add Lenovo Thinkpad Yoga slim 7x devicetree") Signed-off-by: Johan Hovold Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts index fbff558f5b07..0aeead5658ec 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts @@ -629,7 +629,7 @@ &pcie4 { }; &pcie4_phy { - vdda-phy-supply = <&vreg_l3j_0p8>; + vdda-phy-supply = <&vreg_l3i_0p8>; vdda-pll-supply = <&vreg_l3e_1p2>; status = "okay"; From patchwork Mon Jul 22 09:54:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 814238 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 0145516EC18; Mon, 22 Jul 2024 09:55:20 +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=1721642121; cv=none; b=J02Md9NRtcFxyzjm5N3h2IEfbpWdOlV4OK8F+g4sZ3/PFqRFuHI/TAEEekdmLwJZFIItJRNyVg1H/67Oudo7dQswb5flYmXo3gqbvsUW5I3x1fYM0zW+YH/e71WO1HVjyljRIxOg//7Uaju+1tkGPM1Nn0gpwAxmfViCViRpfJ8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721642121; c=relaxed/simple; bh=ifl09MZWOBznlmJMqcf8Xqj34pV8iepPaLINN97wyYM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cyxBTzLM1DAqtNnU/KqdzKQdZLASqwvVoEHx5lXj0/gCQzIdymm1U5NVroFx1ad3QAeQfrRSGA69dj30A/+7xWJpgTUU9ZIOzX/6uOb46OjxAZ1wH16lgaxjhI0rKpFrLN+d18wAqsbT4LXC3FxGBdWW51xgkYwEHIz/TxbpaPc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Bi8M30qk; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Bi8M30qk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA656C4DDF8; Mon, 22 Jul 2024 09:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721642120; bh=ifl09MZWOBznlmJMqcf8Xqj34pV8iepPaLINN97wyYM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Bi8M30qkFeVpfvxqpB5v1IWECfhjhFjYliMfku1/yUUEGCX4gN/uqjJiMtuoY+B4N eLDwz0tKO/NsXNngiXM1oBOWQgcorlgYEhV+3gq0QzaoYIuYVPRW5DaAZUK9GDndDO R8IRbjQkkzR4Y4Hjp3xjXvuCfhj3hnoAhjZOQSvSSHqnr/ZeODDsFABFlPcS1Mqq9q yeREc2rjx0Q5iB1t76dSJsA7UlyumUxekYfgalPh4awNjxoN4rb1T7vx+FeYhMfKQm 7JT1WjKRNMi0X7X6ppb7VVapS28CyPEwpaEhSZzzuVXoUvFFfrVAN398aAEKlwG3Av VmT20uc4jX8og== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sVplH-0000000079i-3tvN; Mon, 22 Jul 2024 11:55:19 +0200 From: Johan Hovold To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sibi Sankar , Abel Vesa , Rajendra Nayak , Xilin Wu , Srinivas Kandagatla , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 10/12] arm64: dts: qcom: x1e80100-yoga-slim7x: fix up PCIe6a pinctrl node Date: Mon, 22 Jul 2024 11:54:57 +0200 Message-ID: <20240722095459.27437-11-johan+linaro@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240722095459.27437-1-johan+linaro@kernel.org> References: <20240722095459.27437-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The PCIe6a pinctrl node appears to have been copied from the sc8280xp CRD dts (via the x1e80100 CRD dts), which has the NVMe on pcie2a and uses some funny indentation. Fix up the node name to match the x1e80100 use and label and use only tabs for indentation. Signed-off-by: Johan Hovold --- .../boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts index 0aeead5658ec..dde2957e6dc7 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts @@ -782,7 +782,7 @@ nvme_reg_en: nvme-reg-en-state { bias-disable; }; - pcie6a_default: pcie2a-default-state { + pcie6a_default: pcie6a-default-state { clkreq-n-pins { pins = "gpio153"; function = "pcie6a_clk"; @@ -798,11 +798,11 @@ perst-n-pins { }; wake-n-pins { - pins = "gpio154"; - function = "gpio"; - drive-strength = <2>; - bias-pull-up; - }; + pins = "gpio154"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; }; tpad_default: tpad-default-state { From patchwork Mon Jul 22 09:54:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 813807 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 3D56116F0E1; Mon, 22 Jul 2024 09:55:20 +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=1721642121; cv=none; b=aBvx3sAccRivrn4bCr1p9CoObWCDgymhQNS97wywWV1aFKNuPk8ztQaMWTWAxWcyChFznYmmuT7Cg5/UMr5++3kgBaLkpd6Y2bStl0+87B6bDPI8m9Q6XByPg5i2eCewCsMMOn2yLbkhVF7W5ttzqvkw0zOB2bOXWNk0N75VR28= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721642121; c=relaxed/simple; bh=tnTqghub0gpnpeLE6omoEXVHAcZJhvQATaNQQ++Wxyc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uCXmy61wGvkn+NfqpSHJsd2pR+z9d+0rejQsgTEgtydLtU82GOdnQr8gJ1cK4v/w4WJaYTa3+TZochGw8DQGDlpOBhJRsg99OUqLAter0VSjKJdZjpe0KhDInfI+tTL5p3uOaA/R/XDWc2Jhd14UZ4ny03EEKgM6DerSeqvjNPk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MSYreWkq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MSYreWkq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA633C4DDF7; Mon, 22 Jul 2024 09:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721642120; bh=tnTqghub0gpnpeLE6omoEXVHAcZJhvQATaNQQ++Wxyc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MSYreWkqKqKtdB9TfzwIV5dzQ2Id9S0HrVJzzix1Si3o0x9lcTD6LRKR6p/xaGQrd qlQMdlLp8PPDpcobtK4JYTTBRKXLFoy+ZOGTUNRg1xMNdg7E9K09jRuMFIX/9hju+v nHvZ37DarDfEnDNjYZuEEqsMfL0nA4KkcV6md3ZTe8qNdtzlyYODJpiwkeSYPAK4rs l1yBZ7+8vDJ3jlG68U9HScvLg/HgyTMx38BH6VpD3kKVqSkVz9jI30e0FQSxt7Jslf +iqluh9G2EsaBFJE5IX4SDsTXHn5/rGY2fYS3q0SUx+vLGxvt9HbKa1mYLGZELp64p GUgK8RSqJT+BA== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sVplI-0000000079l-07yI; Mon, 22 Jul 2024 11:55:20 +0200 From: Johan Hovold To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sibi Sankar , Abel Vesa , Rajendra Nayak , Xilin Wu , Srinivas Kandagatla , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 11/12] arm64: dts: qcom: x1e80100-yoga-slim7x: disable PCIe6a perst pull down Date: Mon, 22 Jul 2024 11:54:58 +0200 Message-ID: <20240722095459.27437-12-johan+linaro@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240722095459.27437-1-johan+linaro@kernel.org> References: <20240722095459.27437-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Disable the PCIe6a perst pull-down resistor to save some power. Signed-off-by: Johan Hovold Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts index dde2957e6dc7..f7534623ff77 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts @@ -794,7 +794,7 @@ perst-n-pins { pins = "gpio152"; function = "gpio"; drive-strength = <2>; - bias-pull-down; + bias-disable; }; wake-n-pins { From patchwork Mon Jul 22 09:54:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 814237 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 EE13316EC14; Mon, 22 Jul 2024 09:55:20 +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=1721642121; cv=none; b=QDwdZRfHWwlfd2VEBBSIZkPCrvk2qSRDOH4ivET1htD+cJoIlASxPd69XxFDIIcoxzRrLS2dM9vSxBP8E4OE8Q/kRz/Hx/2K/W+plUgfcnIBE0LKcJHly6yVBhSvhYqcliQ7CzALhmW0OSln41P6y1mZWA+ufRFQQsjnmIpGF6k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721642121; c=relaxed/simple; bh=jhL3VV4aeIqa6TdzXTS81c3wbQGgcq03fSMsUUA/984=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rH+OhjgECyPg8uAmlayDi13KdnhHdLikeM5E0QLD3MakwpwLEgP0ArYMtA+4/tnn5pzzUuLOd2F+JIJwooxnBfcL8tRMfKS8SBYhxjV43hkDy4B9UWOtMHAziFAH/WXOp5ml+mIOD82EiOyzENvXJSLXp1tV2AEMio3IfTP6au8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=G0GOzn+6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="G0GOzn+6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C676FC4AF0A; Mon, 22 Jul 2024 09:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721642120; bh=jhL3VV4aeIqa6TdzXTS81c3wbQGgcq03fSMsUUA/984=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G0GOzn+6uBg+S++lTx5A7gscmvKf8ae20uQtNPETyLYodjN3rVBgvFSimv/Erl7uV nDLN7/kbtrwDKpg3scrwIV6UmCkFxZrWmrMOSxYOA72VelGEieDvi/qGjr67CQq8MF TeKPTR13EF9DpJll+WPbEmD+d+bkNJoXtEDzEpRI1Fa1AP+HQuYvb+I73KtwqSFILJ Uf11ZaRwKme5hVMJWa1zGnkxy1k0tmEzWjRZZ8sHlufmARLeXADhkFVDYbL0NshbMT 9AA0iBSLhAcHE1dAPbuAeCy2u31oAZMBxFhTWxxYKqqLVrokUaZOL+nTYo5QNpONd2 r3YfLR/08X77g== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sVplI-0000000079o-0V5J; Mon, 22 Jul 2024 11:55:20 +0200 From: Johan Hovold To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sibi Sankar , Abel Vesa , Rajendra Nayak , Xilin Wu , Srinivas Kandagatla , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 12/12] arm64: dts: qcom: x1e80100-yoga-slim7x: fix missing PCIe4 gpios Date: Mon, 22 Jul 2024 11:54:59 +0200 Message-ID: <20240722095459.27437-13-johan+linaro@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240722095459.27437-1-johan+linaro@kernel.org> References: <20240722095459.27437-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add the missing PCIe4 perst, wake and clkreq GPIOs and pin config. Fixes: 45247fe17db2 ("arm64: dts: qcom: x1e80100: add Lenovo Thinkpad Yoga slim 7x devicetree") Signed-off-by: Johan Hovold --- .../dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts index f7534623ff77..79fbc5444312 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts @@ -625,6 +625,12 @@ &mdss_dp3_phy { }; &pcie4 { + perst-gpios = <&tlmm 146 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 148 GPIO_ACTIVE_LOW>; + + pinctrl-0 = <&pcie4_default>; + pinctrl-names = "default"; + status = "okay"; }; @@ -782,6 +788,29 @@ nvme_reg_en: nvme-reg-en-state { bias-disable; }; + pcie4_default: pcie4-default-state { + clkreq-n-pins { + pins = "gpio147"; + function = "pcie4_clk"; + drive-strength = <2>; + bias-pull-up; + }; + + perst-n-pins { + pins = "gpio146"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + wake-n-pins { + pins = "gpio148"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + }; + pcie6a_default: pcie6a-default-state { clkreq-n-pins { pins = "gpio153";