Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp288931rdb; Mon, 22 Jan 2024 04:26:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IHN8VV+Cd9Y8+NVKmHIqsD00pmmMhcFWyHBC5jYNs7omefV4040M4OIonZAvZjwKkaA0sgM X-Received: by 2002:a05:6a00:23d0:b0:6db:cf30:9129 with SMTP id g16-20020a056a0023d000b006dbcf309129mr1497185pfc.65.1705926398275; Mon, 22 Jan 2024 04:26:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705926398; cv=pass; d=google.com; s=arc-20160816; b=VWPGuajjmpJQ88cJOdLfgszF6ZizBHP+h0Bk2uJ7s7OmM6GkE6+knXNInknOSSd26I TOCjINT9ThloeZCYOxMuE/dTNmylN5/ICV0uHrHhU0OzgOsz/xVC89p7DITJBHY+eKu/ 1UODOqBedugfM4xu1/xdoMdnTCf/nLrdxHwnXRjqWTBU9FjphCSkbfQYcLyfio/jx0IH CvduP6ABX47Uc1nDYiGjealmxpCcTQVWGlZDY8Iny7jJwIAlwOK6/2oDMIAATIcwAQpP rwc7xWE5ud7UX1C9zb/9uiIZ0VxJZkg+uNbxur667wRJcOTPK8mZMMilYdCVl+UMZ5Vy CeGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=iriKmMAANzlvZ24PlSgXLgbtkmk5oSIn6782VLB1mgs=; fh=FZ0Z05hEkCp5h9utbo5KxTmhFrlq1QxLpWRYNKrIq0A=; b=lUaZNE/OKlDHRrvzFfPc1C1sAaP82PdKjcc+CQxbTUF/QjVCKgg2oppCY51jXk3Km9 S8jBW4WI2QyZDvQ7GxbnjQ5+FsDjOaKYYCuKgequFZxaz6fPGBMjgXyVS1brqAe6doC+ Rl5DdOL9a3JZ5OJw2I1waWDWdQJxgLT0feTwuN5+CLvBQHM0hKLMPpyn0wm/mN7lXEMx yG6Lh76h4CHvZEGlP1LZQI3UnjifYYO3Voqsi1ASqvIxcRctRnURN51tZF9GgWYzOR6O eLVXU/wJvnZn+ZYcos48pOPC0O+9k8zfJ2cKOKX63XC0IRx4OrSt4ru8d0Y+CoRiEXow Xzsw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=rQdEXeE6; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-32965-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32965-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h7-20020a056a00230700b006db6efb42a2si10552741pfh.365.2024.01.22.04.26.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 04:26:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32965-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=rQdEXeE6; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-32965-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32965-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 42574B2682C for ; Mon, 22 Jan 2024 11:50:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 181733D545; Mon, 22 Jan 2024 11:48:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="rQdEXeE6" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 B6A9B3D3B6; Mon, 22 Jan 2024 11:48:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705924112; cv=none; b=AIdCycMQrlsM8hjBlleivNd1wLdFx3y2YSu5CTrJInGNnlHmMEnY0Gu5++IBKcoKre9oVsfKSzmLjIB7JES5hD7cjOhUSTTq4smu7m/9fy6t4IaeYeAbkxkTwUtFhIFzU3+SJCJx1aIX3anzi0pRiC1HkmPCJhi6IdXTq7jLS8M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705924112; c=relaxed/simple; bh=nRr2BPtGcBu5pcM6iVkEYQLLgGdpvWXGhuM0c/DPEgs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=pLgHqzzGtq59nJ8/jnnyMGOBieciwP8Dpb/TXZTaCmeXu24EndTGOlQJ7SIRUkG4JizcsGi/8gZ9RxW43sh20Wdt0TYYayF1fp/ULFlzEGw2+MoHAURA+tg5YZUjCCw1KxLQQ41qOD21WIqbiritB07UImk34B4lwtIQW/gI42A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=rQdEXeE6; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1705924108; bh=nRr2BPtGcBu5pcM6iVkEYQLLgGdpvWXGhuM0c/DPEgs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=rQdEXeE6APfjlEqIznt/dRrwf0AmmPXSLMDIE+pr6elKrQhWHhX4/Rr7hFXN623zu zumK2YP9SI3rRcXJbA/mrzV/H7qUzjLoz4oonwVokvoo/Z9G6P131J+KK2rih7oRWL o2ZRqtjLTILNqW4JBlUdDBumWGtT6zL9uHpoOwqfY9kXhwW5iXkp1i/kUIrt/WjM7B qfXuHcpgQ+kUbtxwzJxmZYoTHobyIb68o5tCx9Q9k8O6N6RNqi0HdgfYmNaFJoBupl ys0IlGRgOUODL8YcCrUr8wxihHLLpIrs5b6x4eQLnmhqz3cQXd1n4D8XhbRdVRaov6 ktRhQctjjVs1Q== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id EA8F237810CD; Mon, 22 Jan 2024 11:48:27 +0000 (UTC) Message-ID: <9d3623f8-697b-44ab-a9eb-9d2d305b0e5c@collabora.com> Date: Mon, 22 Jan 2024 12:48:27 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 6/6] arm64: dts: qcom: msm8956-loire: Add SD Card Detect to SDC2 pin states Content-Language: en-US To: Marijn Suijten , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: ~postmarketos/upstreaming@lists.sr.ht, Luca Weiss , Adam Skladowski , Konrad Dybcio , Martin Botka , Jami Kettunen , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240121-msm8976-dt-v2-0-7b186a02dc72@somainline.org> <20240121-msm8976-dt-v2-6-7b186a02dc72@somainline.org> From: AngeloGioacchino Del Regno In-Reply-To: <20240121-msm8976-dt-v2-6-7b186a02dc72@somainline.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 21/01/24 23:33, Marijn Suijten ha scritto: > In addition to the SDC2 pins, set the SD Card Detect pin in a sane state > to be used as an interrupt when an SD Card is slotted in or removed. > > Signed-off-by: Marijn Suijten > --- > arch/arm64/boot/dts/qcom/msm8956-sony-xperia-loire.dtsi | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/msm8956-sony-xperia-loire.dtsi b/arch/arm64/boot/dts/qcom/msm8956-sony-xperia-loire.dtsi > index b0b83edd3627..75412e37334c 100644 > --- a/arch/arm64/boot/dts/qcom/msm8956-sony-xperia-loire.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8956-sony-xperia-loire.dtsi > @@ -264,10 +264,27 @@ &sdhc_1 { > status = "okay"; > }; > > +&sdc2_off_state { > + sd-cd-pins { > + pins = "gpio100"; > + function = "gpio"; > + drive-strength = <2>; > + bias-disable; > + }; Are you sure that you really don't want card detect during system suspend? You could simply add a sdc2-cd-pins out of sdc2_{on,off}_state and add use it for both default and sleep. pinctrl-0 = <&sdc2_on_state>, <&sdc2_card_det_n>; pinctrl-1 = <&sdc2_off_state>; Cheers, Angelo > +}; > + > &sdc2_on_state { > clk-pins { > drive-strength = <10>; > }; > + > + sd-cd-pins { > + pins = "gpio100"; > + function = "gpio"; > + drive-strength = <2>; > + input-enable; > + bias-pull-up; > + }; > }; > > &sdhc_2 { >