Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp973rdb; Sun, 21 Jan 2024 14:34:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgIHeoKQYg1AswOOwXd3QNUFyDc/ceHdNs7VqKgIvHLUb3pfHQy1L6qSXB2xix1dqYObng X-Received: by 2002:a2e:9112:0:b0:2cc:769e:723d with SMTP id m18-20020a2e9112000000b002cc769e723dmr1306246ljg.87.1705876440183; Sun, 21 Jan 2024 14:34:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705876440; cv=pass; d=google.com; s=arc-20160816; b=sIFDhcemEEohWCX8t+kKoI0tTAjBBnhtoWecjhC0/v45n4XAmLUm5u20uFP27YEwKM nznIGakPrpxqb5M6eWwf+kagm8dFt6wZiBdz191PEPSxgkW45OBUDiYVIWVLkLKXBwou s60SDGkPqusOPd66mWHRJVZfKW9cMsJ/sjbafllpWRf3oa1iUhOKuxCL5rqKSopBEIIm 2Yd+R95W1brhnMykZcRmXi78P82584Qx/PziCr6b2TDwGEF3kjfJ2CLANNUwM5gvnmws Ab5C8oHHGYnjB+VR5cFWk3dpUVlpOAefH/AlQ/nzCVbZRb/YM8UcpfJZiCx2PWwXMFqJ lbog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from; bh=K7AMLWW+CEwxuL8dLr8lPHHnd1kJjcxtJjD2z+tkrlU=; fh=cIXbSO4AX1Qnl5qlb1ihZ3NJfL1FzL7RHuzbkbWyu6k=; b=ObML57fbqesGeFVi/rCDsobKS7UACjoCTXegHrnDyNHssS31YWrZJuBHu9CbaShHVO GE8hX4RwsDEHm0a2nzZ2SIn9TgEWCHGqnIDtSm4twkIGw8nqk8K5Ydwjqy9v18qCXKyG p8JU1tp8uy141dviV3Kd/IVrPyJaLFxPAh4uinZfpytr0RgI3pCzbDTA3C493uaGtcoC +m16JV+EJppawfFgc5ehFtQbZZty9fVWjewlPAmbPeU3GOir20wwu51ZUaiZXswF4ikD 96zU8uEMDCbhgZRIvbumMsUDeKp3xmvCdQbZIVDwZUT95tnssofzABuM3iaE2WY+E6H8 J9pQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-32211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32211-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h25-20020a0564020e9900b0055c433940a8si303965eda.76.2024.01.21.14.34.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 14:34:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-32211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32211-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id E1F3F1F219E6 for ; Sun, 21 Jan 2024 22:33:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DC3B38FAE; Sun, 21 Jan 2024 22:33:46 +0000 (UTC) Received: from relay02.th.seeweb.it (relay02.th.seeweb.it [5.144.164.163]) (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 9BCCE38392 for ; Sun, 21 Jan 2024 22:33:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.144.164.163 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705876426; cv=none; b=purzPw8PAdtL1TlSe/B1sn/ltidMW6kZnKWI/7bky6Gu+HjecMoyiOsL3vqH0uJE/TYnydxiUPmfPe7//fLiTOxFF+t9ZDgR6Ju/8UeZ/n4X3eTPSlJ10uSol8/bbpGWBTyhW4ohbxKwXC92zKTcfy/l4fDcH/YK3PWZcx5hmT8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705876426; c=relaxed/simple; bh=Ka0suA2f6Mht4+t9XWWJHrO4gwspsyTwEIQwdjMFPoc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=m5ROh4ec+oxRymrZ1qku5+kgPhwiUcje/Hy+hqTvt+SiRBKkz+Da7RlDy/BTOHtgf2JgvKEhcWnglGE+gH7PpDgK3FFU12uE9tlihYStbVJXs1rNcvsjCEO4s7d4BNssH49vv4hJklbE0MqShVTJPKg5yolrjnCQCN7esiRViIQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org; spf=pass smtp.mailfrom=somainline.org; arc=none smtp.client-ip=5.144.164.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=somainline.org Received: from Marijn-Arch-PC.localdomain (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 7436720385; Sun, 21 Jan 2024 23:33:42 +0100 (CET) From: Marijn Suijten Date: Sun, 21 Jan 2024 23:33:41 +0100 Subject: [PATCH v2 4/6] arm64: dts: qcom: msm8976: Declare and use SDC1 pins 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240121-msm8976-dt-v2-4-7b186a02dc72@somainline.org> References: <20240121-msm8976-dt-v2-0-7b186a02dc72@somainline.org> In-Reply-To: <20240121-msm8976-dt-v2-0-7b186a02dc72@somainline.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , 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, Marijn Suijten X-Mailer: b4 0.12.4 Add the pinctrl states for SDC1 and use them on sdhc_1. Signed-off-by: Marijn Suijten --- arch/arm64/boot/dts/qcom/msm8976.dtsi | 55 +++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8976.dtsi b/arch/arm64/boot/dts/qcom/msm8976.dtsi index d2bb1ada361a..1d06f9b8a0f1 100644 --- a/arch/arm64/boot/dts/qcom/msm8976.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8976.dtsi @@ -669,6 +669,56 @@ tlmm: pinctrl@1000000 { interrupt-controller; #interrupt-cells = <2>; + sdc1_off_state: sdc1-off-state { + clk-pins { + pins = "sdc1_clk"; + drive-strength = <2>; + bias-disable; + }; + + cmd-pins { + pins = "sdc1_cmd"; + drive-strength = <2>; + bias-pull-up; + }; + + data-pins { + pins = "sdc1_data"; + drive-strength = <2>; + bias-pull-up; + }; + + rclk-pins { + pins = "sdc1_rclk"; + bias-pull-down; + }; + }; + + sdc1_on_state: sdc1-on-state { + clk-pins { + pins = "sdc1_clk"; + drive-strength = <16>; + bias-disable; + }; + + cmd-pins { + pins = "sdc1_cmd"; + drive-strength = <10>; + bias-pull-up; + }; + + data-pins { + pins = "sdc1_data"; + drive-strength = <10>; + bias-pull-up; + }; + + rclk-pins { + pins = "sdc1_rclk"; + bias-pull-down; + }; + }; + spi1_default: spi0-default-state { spi-pins { pins = "gpio0", "gpio1", "gpio3"; @@ -840,6 +890,11 @@ sdhc_1: mmc@7824900 { <&gcc GCC_SDCC1_APPS_CLK>, <&rpmcc RPM_SMD_XO_CLK_SRC>; clock-names = "iface", "core", "xo"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on_state>; + pinctrl-1 = <&sdc1_off_state>; + status = "disabled"; }; -- 2.43.0