Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp838077lqt; Tue, 19 Mar 2024 05:41:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzfs7N2mlB8imgCYoaub5WwAp9s74tj8CzMyCfgIEC0ebXuCKs4BxjfXTeOnIycDClOxtwmWKn0kUaaCdM2qjEgQdSpFRL9b7dQguZlQ== X-Google-Smtp-Source: AGHT+IHxFWDgxsSsxucxn92hSBTSiJP8h7XAW/Y+ZTJGwRK6Yn5mTr0vvi6FG/xO4XBJtnlxwrBX X-Received: by 2002:a17:903:2309:b0:1e0:20c3:7c53 with SMTP id d9-20020a170903230900b001e020c37c53mr8156921plh.37.1710852090234; Tue, 19 Mar 2024 05:41:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710852090; cv=pass; d=google.com; s=arc-20160816; b=czYithtk50k2km9aNORNEqvuiA8UkpMDwjhzh4Rb8ioSHNplJvsxl/oXr3yol0ewjx CSYG+dGDjDFuUdfBZcQW3RAic8QdYrXf/tKAsjR6Av6USkEnojERps2qfCXKeSqUKgIJ v9nKhSrlK4b9mvfvLlNEhIGSh5f3bqTBSgcmtlndfK6H0/j8+eKV9KNhalpYAyBVQixV DxkPyvb/ko3zcgG8OThvzLkp/GttfA8eehGYfZOMJtHpy4hG4uPwuY251yrT0djphmRY QhUabWnrrzSCJF0unHjo5UQd+xQ2pf6w9zZO4+t78kmI3vpfC2W6G3VhG5BqQ7rjaWDY 0Npw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0qZGsVKIae4qmkuLNwqJ6ZjQTeE2rCbR5WVNuV1x93g=; fh=CMREjH1Q0zJOtyAu83+ds9mnSUcYhhqpOQ4DhXHCWEc=; b=pg4GeJaWZ3TKEqXQERsD4tFe0LWgB/qDOJcN3WiIxIRs5N2sDsdRsZY/C7kqr5O2/e LOg0VkCwxwLFOMnYryB7a9Jwp7eTXtMwZWg84X7eCqOCPkSzRPSuuaX+LVsxDsG/QxFS qEsT4rG53WJYtsu4g2ENUIEXHH1yTyVGM/c2zWZ60H/YD2L9TgBL7NLa0Z+ta+AEGxit dewagt97T0NxJZs2OdFOo7oYlUO0H7zGfDr1EvIU80rbj1I9z4PzdlVJAvF3HzyMTyTF pwJTHYZw6r5V4b4zH/u+zi5q1DdnfhzQoHUaMM2cdH1W6IO/bfPTZnvWJkUi3h2Bx/3Y 3eiw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=YS75RVrQ; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-107527-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107527-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e18-20020a170903241200b001dcfadadcfcsi8032509plo.592.2024.03.19.05.41.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 05:41:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107527-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=YS75RVrQ; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-107527-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107527-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it 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 E4B9C28425E for ; Tue, 19 Mar 2024 12:41:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00EBC7FBB0; Tue, 19 Mar 2024 12:41:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="YS75RVrQ" 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 7D1525A4C7; Tue, 19 Mar 2024 12:41:09 +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=1710852073; cv=none; b=b+WfVWvEbaexoSyU4MMPYfEp3dwHWPrNLlN7+3eJswpMMwA2I0g6eZXSoT77jCU+7Gz7lT38MYyVB+ogrOj9DBl8E4UIbFh6YcdObhgXlGmXtq8RcuJrPtVXYXYXZOC9MUzf/zy2U1bcDMCNZUnsnDg1NlkMwVroITIQcmtLjnc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710852073; c=relaxed/simple; bh=GrOBN+jSBZcF9nUlKAzK4ebUgJNLCytGla0/AzR1dkg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QQk/e76j0mcWacPxweT27Q9a1fe9ylPFm2dSS52cJqFVytlKbJn/nY5fywIlh75g7KsgRpjS9h7OUPKxIHqjzELnBwgL5q3yXRUDw13nIWdeRviXG4RWwcXyU61FvaqupLchoZf481MSjFg+6zPllhS+oheuFafQsM2Y4eek+5k= 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=YS75RVrQ; 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 Received: from francesco-nb (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 19DAF1FE22; Tue, 19 Mar 2024 13:41:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1710852061; bh=0qZGsVKIae4qmkuLNwqJ6ZjQTeE2rCbR5WVNuV1x93g=; h=From:To:Subject; b=YS75RVrQSWd1FtU2qy5WyArZ4+QuY0XtFTlKvhf1dLNjMGtsaww8yVxEo+PRa040G 30sFZixixFqk3QoE/55h8U6vR+i2Uq5u+YYGcKppYc/2fcglE3j/iwDl3nOypaaPrq pV9EBagJh39FaKs60QzKVBfStu/fHzSTYtBmjHGqlsNYehJgrlPioHfIBllGiVixFV BQSG7jKPYzc0d0KbxNWA/qjaHsE2DTt3qqCnTIIRJKw8Akw0VVdoHtTOrKXvMwMads OLjC6Va7+pap1eGCsBRC3jyv05TGx8RQTLue3vsV0FT3BoPLRA7ZbYuhmvpR8owL/V T9UOmuOoLY8sg== Date: Tue, 19 Mar 2024 13:40:56 +0100 From: Francesco Dolcini To: Nishanth Menon Cc: Francesco Dolcini , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Francesco Dolcini , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?iso-8859-1?Q?Jo=E3o_Paulo_Silva_Gon=E7alves?= Subject: Re: [PATCH v1] arm64: dts: ti: verdin-am62: use SD1 CD as GPIO Message-ID: <20240319124056.GA13970@francesco-nb> References: <20240312144956.40211-1-francesco@dolcini.it> <20240319120717.e2p65ricusxuz3wm@subatomic> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240319120717.e2p65ricusxuz3wm@subatomic> Hello Nishanth, On Tue, Mar 19, 2024 at 07:07:17AM -0500, Nishanth Menon wrote: > On 15:49-20240312, Francesco Dolcini wrote: > > From: Francesco Dolcini > > > > TI SDHCI IP has a hardware debounce timer of 1 second as described in > > commit 7ca0f166f5b2 ("mmc: sdhci_am654: Add workaround for card detect > > debounce timer"), because of this the boot time increases of up to 1 > > second. > > > > Workaround the issue the same way that is done on > > arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts, using the SD1 CD as > > GPIO. > > > > Suggested-by: Nishanth Menon > > Reported-by: Jo?o Paulo Silva Gon?alves > > Closes: https://lore.kernel.org/all/0e81af80de3d55e72f79af83fa5db87f5c9938f8.camel@toradex.com/ > > Signed-off-by: Francesco Dolcini > > --- > > arch/arm64/boot/dts/ti/k3-am62-verdin.dtsi | 12 ++++++++++-- > > 1 file changed, 10 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm64/boot/dts/ti/k3-am62-verdin.dtsi b/arch/arm64/boot/dts/ti/k3-am62-verdin.dtsi > > index e8d8857ad51f..a9bf2c17f95a 100644 > > --- a/arch/arm64/boot/dts/ti/k3-am62-verdin.dtsi > > +++ b/arch/arm64/boot/dts/ti/k3-am62-verdin.dtsi > > @@ -1441,8 +1447,10 @@ &sdhci0 { > > /* Verdin SD_1 */ > > &sdhci1 { > > pinctrl-names = "default"; > > - pinctrl-0 = <&pinctrl_sdhci1>; > > + pinctrl-0 = <&pinctrl_sdhci1>, <&pinctrl_sd1_cd_gpio>; > > + cd-gpios = <&main_gpio1 48 GPIO_ACTIVE_LOW>; > > disable-wp; > > + ti,fails-without-test-cd; > > vmmc-supply = <®_sdhc1_vmmc>; > > vqmmc-supply = <®_sdhc1_vqmmc>; > > status = "disabled"; > > Minor style comment based on recently added https://docs.kernel.org/devicetree/bindings/dts-coding-style.html#order-of-properties-in-device-node > > ti,fails-without-test-cd comes after vqmmc-supply and above status. Whoops, you are right, of course, thanks. I'll send a v2 once the merge window closes and rc1 is out. Francesco