Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0972CC001DF for ; Mon, 31 Jul 2023 04:28:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B3707868E8; Mon, 31 Jul 2023 06:28:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kwiboo.se header.i=@kwiboo.se header.b="P5x36yGu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0986386900; Mon, 31 Jul 2023 06:28:38 +0200 (CEST) Received: from s.wrqvtbkv.outbound-mail.sendgrid.net (s.wrqvtbkv.outbound-mail.sendgrid.net [149.72.123.24]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AAF96868D1 for ; Mon, 31 Jul 2023 06:28:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bounces+31435339-7456-u-boot=lists.denx.de@em2124.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=from:subject:mime-version:to:cc:content-transfer-encoding: content-type:cc:content-type:from:subject:to; s=s1; bh=k5T35YbM1jD+eL08NNTioOjwmOcfyx+azGv2nPaAEVE=; b=P5x36yGu65/4+iucMjJF6G6UK06jMfyHCW13SLVCRFxQ0S6STup3X1FPk7yFlkpzYGXx Hg5JPk5NjRN8Y1lHsiMXjTUQqiOP+WOAUa9nlkdctzB1G5z3emfD8HRb4sAO3mOL29AztZ pssmTteyt9ByS+HvOgluXET2ZndWJmrV/08Yu4dH5Prk9do4MkNsr0AuPXhdil4WKeyOLi vu8TkvwTSl3GB3GvLgYKcUC+8BgwSD6Wa6upGv3GhSOCoQmQ4vZp4e+Xj1DZZHyHriTA0l 38EJaF7QPHvN22R8hK6NNraT9zsThk7FSiMEba/EZR/2lMt868o+8LO2NlWScv0w== Received: by filterdrecv-d7bbbc8bf-s5hdm with SMTP id filterdrecv-d7bbbc8bf-s5hdm-1-64C73872-2 2023-07-31 04:28:34.117059073 +0000 UTC m=+7015736.053807745 Received: from bionic.localdomain (unknown) by geopod-ismtpd-5 (SG) with ESMTP id RpqPGO2KR2K2IaNtmwXFBw Mon, 31 Jul 2023 04:28:33.784 +0000 (UTC) From: Jonas Karlman Subject: [PATCH v2] rockchip: rk3568-rock-3a: Fix pcie2x1 and pcie3x2 pinctrl override Date: Mon, 31 Jul 2023 04:28:34 +0000 (UTC) Message-ID: <20230731042831.486921-1-jonas@kwiboo.se> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0h+s6J=2FRcrtDlcA9t4?= =?us-ascii?Q?vPtVk5X7x87n3isW7SStSZhMJwrR5RdeH+2VZ4K?= =?us-ascii?Q?iaNTUOknglfTpq9lTR1E2pKJs+5MOYjwptDa3O+?= =?us-ascii?Q?K1UteLwvRq2nMzuZDhOcu5CVxTbjmAvcfmejwQa?= =?us-ascii?Q?3eByDR3WQvALzNKLP8APyVJXK6XCwV8aWx9Tz5?= To: Kever Yang , Akash Gajjar , Simon Glass , Philipp Tomsich , Jonas Karlman Cc: u-boot@lists.denx.de X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The pcie pinctrl override added in the commit a76aa6ffa6cd ("rockchip: rk3568-rock-3a: Enable PCIe and NVMe support") is causing a pinmux issue on linux when using a EFI boot flow. The pcie reset-gpios must however be configured with gpio function, or the device will freeze running pci enum and nothing is connected. Adjust the pinctrl override in u-boot.dtsi to fix this issue. PCIe/NVMe continues to work in both U-Boot and linux after this change. Also revert disable of sdmmc2 and uart1 to fix use of wifi in linux when using a EFI boot flow. Fixes: a76aa6ffa6cd ("rockchip: rk3568-rock-3a: Enable PCIe and NVMe support") Fixes: 073d911ae64a ("rockchip: rk3568-rock-3a: Sync device tree from linux") Signed-off-by: Jonas Karlman --- Changes in v2: - Restore part of pcie3x2 override This may depend on the following series for a clean apply: - rockchip: rk3568: Device Tree updates v2 - rockchip: rk35xx: Fix SPI Flash alias v2 - rockchip: rk3568: Use dwc3-generic driver v5 arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi index a36a329f59c5..b05b7151e6c7 100644 --- a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi +++ b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi @@ -12,12 +12,8 @@ }; }; -&pcie2x1 { - pinctrl-0 = <&pcie20m1_pins &pcie_reset_h>; -}; - &pcie3x2 { - pinctrl-0 = <&pcie30x2m1_pins &pcie3x2_reset_h>; + pinctrl-0 = <&pcie3x2_reset_h>; }; &pinctrl { @@ -53,14 +49,6 @@ }; }; -&sdmmc2 { - status = "disabled"; -}; - -&uart1 { - status = "disabled"; -}; - &uart2 { clock-frequency = <24000000>; bootph-all; -- 2.41.0