Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp1450466rwj; Sun, 30 Oct 2022 00:34:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6aOBLBDQI1s51AvfZCxRXsA9AXZlxs5BWwhx+ee+ycRMNDNr0W5FRf0Bjs5sqxGhglzJ1y X-Received: by 2002:a63:1d5a:0:b0:46e:d157:39ef with SMTP id d26-20020a631d5a000000b0046ed15739efmr7257673pgm.231.1667115274098; Sun, 30 Oct 2022 00:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667115274; cv=none; d=google.com; s=arc-20160816; b=IuzPcrQlZARc0/n3jiYTUJ1VvzoMh4QJMcPwtyTkVGyPMzoldbubJg5Oq2LwqKvErT wtLIeUHKe58dQxL1LpqPTiDQHRWbvfsjOPb7No6vh4Ogrywzx20fQWilSZJiu3peO/bs 61tcoU/fS/fFhqClRQd8q09bHOd7ywKaI85SDK5mNcZtYRJSOnvYevFjzTQepl3I9FTO /qeZqONqczYDOQkAllo+qco89kw6PhCKuAUnoCKC9UVUwnKNJpPOYJ2CIxJFSr3mIlHo qSXko3fb0TtA1kroarP8i/r1N7IecIN8flZ0ZPKAp+U08evKo79YYLJWxKLdB9IuUqvy RTDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=XyWyMV9wM4Rd/eROK4ngOxgG5QUA2BIRJkTGmff/3zA=; b=oEqjlisLgpjbCX+91oivOanPrNAWT5UPsa7RiKMLXIj8sogK0j6RceCGEgOAlRM90z pGR0H8XxJYeRbqxtZw7Uyo/Wzb4Kf4gUBEJU9F2MxM2rm0mqnkcU0if98L98465uZEMx dD54Xg6kLyoKMwfg03VLg2EP//KTVBkaBqvbPdM2fz7z7W2Fev0mwFOiPwmVdSVQrUbi I007bwGC3xgvCfeG2kOwplTE9HniIA+SHF1jczIdlnIXfpFVYBG8T/Bu9tFJdpeJxHlc Z1ipH66kiL2QsWX5lsoXnUBNKj6By18po57CBn/axzpxW/ek03WJ61Ccola+ybAQ76kh 2ydQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w19-20020a170902a71300b00176a1183050si4106665plq.80.2022.10.30.00.34.23; Sun, 30 Oct 2022 00:34:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229967AbiJ3HdF (ORCPT + 99 others); Sun, 30 Oct 2022 03:33:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229833AbiJ3Hct (ORCPT ); Sun, 30 Oct 2022 03:32:49 -0400 Received: from m-r1.th.seeweb.it (m-r1.th.seeweb.it [IPv6:2001:4b7a:2000:18::170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 767D5C55 for ; Sun, 30 Oct 2022 00:32:45 -0700 (PDT) Received: from localhost.localdomain (94-209-172-39.cable.dynamic.v4.ziggo.nl [94.209.172.39]) (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 CBDC41F969; Sun, 30 Oct 2022 08:32:42 +0100 (CET) From: Marijn Suijten To: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Marijn Suijten , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Luca Weiss , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/10] arm64: dts: qcom: sm6350: Add pinctrl for SDHCI 2 Date: Sun, 30 Oct 2022 08:32:24 +0100 Message-Id: <20221030073232.22726-3-marijn.suijten@somainline.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221030073232.22726-1-marijn.suijten@somainline.org> References: <20221030073232.22726-1-marijn.suijten@somainline.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the generic pin functions specifically for sdc2. Signed-off-by: Marijn Suijten --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 44 ++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index a3ae765d9781..b98b881ebe7e 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -1074,6 +1074,10 @@ sdhc_2: mmc@8804000 { <&gem_noc MASTER_AMPSS_M0 0 &config_noc SLAVE_SDCC_2 0>; interconnect-names = "sdhc-ddr", "cpu-sdhc"; + pinctrl-0 = <&sdc2_on_state>; + pinctrl-1 = <&sdc2_off_state>; + pinctrl-names = "default", "sleep"; + qcom,dll-config = <0x0007642c>; qcom,ddr-config = <0x80040868>; power-domains = <&rpmhpd SM6350_CX>; @@ -1316,6 +1320,46 @@ tlmm: pinctrl@f100000 { #interrupt-cells = <2>; gpio-ranges = <&tlmm 0 0 157>; + sdc2_off_state: sdc2-off-state { + clk-pins { + pins = "sdc2_clk"; + drive-strength = <2>; + bias-disable; + }; + + cmd-pins { + pins = "sdc2_cmd"; + drive-strength = <2>; + bias-pull-up; + }; + + data-pins { + pins = "sdc2_data"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + sdc2_on_state: sdc2-on-state { + clk-pins { + pins = "sdc2_clk"; + drive-strength = <16>; + bias-disable; + }; + + cmd-pins { + pins = "sdc2_cmd"; + drive-strength = <10>; + bias-pull-up; + }; + + data-pins { + pins = "sdc2_data"; + drive-strength = <10>; + bias-pull-up; + }; + }; + qup_uart9_default: qup-uart9-default-state { pins = "gpio25", "gpio26"; function = "qup13_f2"; -- 2.38.1