From patchwork Thu Oct 24 13:06:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13848948 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (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 50ECA1D63FD for ; Thu, 24 Oct 2024 13:07:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729775224; cv=none; b=PrZZB8YTomaXyKeVrWNJDyvIayjnleWSrQQevLTVjOmJjN8hclUebHkNXdYvjQV9COyB5TQD20J2dqOjdSJya1Y8mGxM8842nGkkjPhWfhx8gnZpNOFXGjrx8UNpJ/zwjE08uF2jVTuwwEKhVpNHoA5YgLLBoQwVtk+g7c8aKzE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729775224; c=relaxed/simple; bh=BBDjABK+NGvwu0A5Wp0Occ1V3XhledEZehxNROX48ho=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qj+W9JeepxB37sdGtpx1I3QrMANCmNkTsb/Ox7khzhU7vlxiT2Swe3P8YOaKHIMzALCteHCcPSHuw/UbdwL93wCZpXl7EoK0xITOVmnLoCr7Yp5Q8Qx5bQUoJBIZ6TRMkavq4YPPkYoUvQYPLfjgM53xU3Yy2ZMjN9owdCCbeV4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=G06owoBc; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="G06owoBc" Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 0AC181F9B2; Thu, 24 Oct 2024 15:06:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1729775219; bh=081XwwT3SpMBjNjgf6iNtj/s3WBFhspA1TJEtsraTTY=; h=From:To:Subject; b=G06owoBc4B57W43v3eIlBbGmIsD5pHkC4J5ScyvVQx3JaohBWEAahWOPJy5dMsKaY ejh0ciq7dzNuNnStK/JvmPn5mTA+c/oLPLtUIcWDYkDPUVQ6W6UCENv7YRcAf0wgWP uRTgaP8wlLZDBXqAkRZdzMCl+FMmSrxb59b6oFP5kvBwV6fYN9kqNmQhjOj+bBffU3 53ZVBM2ydbGhSd2GYWIJlQzKOiEv+JjvNPoTgD/L8Sn9S7zXXo/Sg71zB6Ol7Mnj+0 KovtEa/fRJG5ULSYC/q4DoAFYKMEn9m3RSTaJgZPT3xwagFb8mh38rDrylgYSYJYmt QgGxSBt4UtodA== From: Francesco Dolcini To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Francesco Dolcini , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH v1 1/2] arm64: dts: freescale: imx8mm-verdin: Fix SD regulator startup delay Date: Thu, 24 Oct 2024 15:06:50 +0200 Message-Id: <20241024130651.49718-2-francesco@dolcini.it> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241024130651.49718-1-francesco@dolcini.it> References: <20241024130651.49718-1-francesco@dolcini.it> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Francesco Dolcini The power switch used to power the SD card interface might have more than 2ms turn-on time, increase the startup delay to 20ms to prevent failures. Fixes: 6a57f224f734 ("arm64: dts: freescale: add initial support for verdin imx8m mini") Cc: Signed-off-by: Francesco Dolcini --- arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi index c20c2da17524..01042c1e9e7d 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi @@ -162,7 +162,7 @@ reg_usdhc2_vmmc: regulator-usdhc2 { regulator-max-microvolt = <3300000>; regulator-min-microvolt = <3300000>; regulator-name = "+V3.3_SD"; - startup-delay-us = <2000>; + startup-delay-us = <20000>; }; reserved-memory { From patchwork Thu Oct 24 13:06:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13848949 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (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 E678A1DD0D1 for ; Thu, 24 Oct 2024 13:07:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729775225; cv=none; b=fYlVSLmPbnYX9It1x1NqN+yGEVHQ38Ah63oGJgi13f3WjT+Dd1wjjHhzs96lZEk1+3u82qvpS4JynCUk5rMBFV+dgP7ii/632D1jUwNCvBy+iC8nkiZe7o108051YBTYBy+qwbH6Tm5NCAMVCt1Fmgd9aPIITjgV266AmSgsSmU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729775225; c=relaxed/simple; bh=R3pA8ojsMDNT1XdCtiG0vsOjX/BIQQ3XMMeNIDGpxkQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=m7y9JjChBII/QT76WFYz/cJlFvDnRaDgYUw8xb4GWtr+OBRBvxaBnn6nN+Kkm59YTzdRh6JFIDi8Jl/Ijq5qpbDK3jYvDy9gOMopBALAvnmEeUCY+7gzhHe9cMGH2LNDxSqk/7TxR/8YKcGWwkhmcEfTjQGKvxmrVXuQu3f9qaE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=geEXMPWH; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="geEXMPWH" Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 9F08C1F9BA; Thu, 24 Oct 2024 15:06:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1729775220; bh=OaWYCbKne0jIgmMCGe5IUHjDjae7PV5dOPwFEy5t4e8=; h=From:To:Subject; b=geEXMPWHAE7ALD9fcu+awGzVuukhe+61VmA8Fn/O/hZZEfrNyK6HRkVwg9sP7bHxz woLrzvxLyL1R9nVlcF1EjLb5VU71l5OcW4pZfZg9irJJaTCBR9ut3XRaUPOo8AYG5+ NY1NrfZwkTu7MGRg+R9ZUxXKSwSKT5FvIiKudUfOpxyLHO4VfztblIT5pNOTIkF8kr nIkscfqJLUcZVDLoiVy+WTkmF1o/ru7WN/TXWxNXiF6dV9pWYE5YrGy6bVMFZkjGBF Dx2CvbTkwi3ZaFT1iMSz53LGmOf3R9QgATPomoBfr+wgburCOgLBuka+lSst8vkHt4 w+ymp5oZKEsxg== From: Francesco Dolcini To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Francesco Dolcini , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH v1 2/2] arm64: dts: freescale: imx8mp-verdin: Fix SD regulator startup delay Date: Thu, 24 Oct 2024 15:06:51 +0200 Message-Id: <20241024130651.49718-3-francesco@dolcini.it> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241024130651.49718-1-francesco@dolcini.it> References: <20241024130651.49718-1-francesco@dolcini.it> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Francesco Dolcini The power switch used to power the SD card interface might have more than 2ms turn-on time, increase the startup delay to 20ms to prevent failures. Fixes: a39ed23bdf6e ("arm64: dts: freescale: add initial support for verdin imx8m plus") Cc: Signed-off-by: Francesco Dolcini --- arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi index e9518b7c7aa8..b8c24fe228fa 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi @@ -175,7 +175,7 @@ reg_usdhc2_vmmc: regulator-usdhc2 { regulator-max-microvolt = <3300000>; regulator-min-microvolt = <3300000>; regulator-name = "+V3.3_SD"; - startup-delay-us = <2000>; + startup-delay-us = <20000>; }; reserved-memory {