Message ID | 20221030073232.22726-4-marijn.suijten@somainline.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1682093wru; Sun, 30 Oct 2022 00:33:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4WyXZ2v/1HATA6pocYnacGIOiuLOoZWBBrGKGRfuT1wY+TbgbrlTZFAhzTMJ4C269inC5y X-Received: by 2002:a17:902:ec8e:b0:186:f4ba:a7fc with SMTP id x14-20020a170902ec8e00b00186f4baa7fcmr7977920plg.55.1667115231120; Sun, 30 Oct 2022 00:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667115231; cv=none; d=google.com; s=arc-20160816; b=p0u5jP6JgNXy0MLHBRA1WBsIVqmAw37dXDdM1Mtr3OMnLeCNjC2qVWaR1Jenso+m28 klQUczjcXs1NsyBZkm4JYu4S7wWGnjsmjvLh8hybTrOOTXOO5EWdGPmOHg5gUGH4yVeB BIzeWhOzlmnLIe3DH4mZTwoWj7+aQ0AZ6+pCThvECAWrcUQrYXQDfVLdl/d7ZnmNZDP7 BU+guVS7ylFPDCYjbR68oopo1iekj529cuFuoIvSSKBDnl+7pXnBLfqkSVZKEEpwhksH pWpulTtXS+MkGIHq71GevXU7V7n5g9log5o6m+WOXjYjQxoBu7sogdiLGJ6zrYisz+v2 m0KA== 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=pblRsOhktlGg7Ts0W13ZFlqEgYMqLk5i/RrCWu6WERc=; b=H4Z5sMDsrkyYkOgDtx4YjnxsJesuxMiTjHwxBbTrVDo302Z61RUBJhK8trDcnfBWj7 +isPa10pvMUV1pOH5iRP3mIcW0IoX9e/xls24EhkauTh9p1aVG1I7UyvbiORW+/oddD1 ZyPsNkC2P6hez2nCd/QRgzdblvFLAvzxYT+qhH+qyAUAqcbA5nBrhLhrshwY//NsrJU6 lMzu5S6YA73hGHBDWw7OgVefLh+X4dEGsUI8SLJc4xpV9iP7Hl3095rd3sda97YicNCO pgEcwN7qBUhYual3L1WEC7SmZNv+LyBz1T5ooJZIz8LrRnbaqiK6WbMt/1qoIhmXEfek fz1A== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v5-20020a170902b7c500b0017340861a6bsi3950346plz.611.2022.10.30.00.33.39; Sun, 30 Oct 2022 00:33:51 -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 S230056AbiJ3HdA (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Sun, 30 Oct 2022 03:33:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229761AbiJ3Hct (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 30 Oct 2022 03:32:49 -0400 Received: from m-r1.th.seeweb.it (m-r1.th.seeweb.it [5.144.164.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67447BF9 for <linux-kernel@vger.kernel.org>; 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 808E21F9F7; Sun, 30 Oct 2022 08:32:43 +0100 (CET) From: Marijn Suijten <marijn.suijten@somainline.org> To: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>, Konrad Dybcio <konrad.dybcio@somainline.org>, Martin Botka <martin.botka@somainline.org>, Jami Kettunen <jami.kettunen@somainline.org>, Marijn Suijten <marijn.suijten@somainline.org>, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Luca Weiss <luca@z3ntu.xyz>, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/10] arm64: dts: qcom: sm6350-lena: Add SD Card Detect to sdc2 on/off pinctrl Date: Sun, 30 Oct 2022 08:32:25 +0100 Message-Id: <20221030073232.22726-4-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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748097020341914987?= X-GMAIL-MSGID: =?utf-8?q?1748097020341914987?= |
Series |
arm64: dts: qcom: sm6350: SD Card fixes, pm6350 keys and touchscreen for PDX213
|
|
Commit Message
Marijn Suijten
Oct. 30, 2022, 7:32 a.m. UTC
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 <marijn.suijten@somainline.org>
---
.../qcom/sm6350-sony-xperia-lena-pdx213.dts | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
Comments
On 30.10.2022 08:32, Marijn Suijten wrote: > 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 <marijn.suijten@somainline.org> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org> Konrad > .../qcom/sm6350-sony-xperia-lena-pdx213.dts | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts b/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts > index 36911b9a5c04..9a96000fc95b 100644 > --- a/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts > +++ b/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts > @@ -30,6 +30,24 @@ framebuffer: framebuffer@a0000000 { > }; > }; > > +&sdc2_off_state { > + sd-cd-pins { > + pins = "gpio94"; > + function = "gpio"; > + drive-strength = <2>; > + bias-disable; > + }; > +}; > + > +&sdc2_on_state { > + sd-cd-pins { > + pins = "gpio94"; > + function = "gpio"; > + drive-strength = <2>; > + bias-pull-up; > + }; > +}; > + > &sdhc_2 { > status = "okay"; >
On 30/10/2022 03:32, Marijn Suijten wrote: > 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 <marijn.suijten@somainline.org> > --- Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
diff --git a/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts b/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts index 36911b9a5c04..9a96000fc95b 100644 --- a/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts +++ b/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts @@ -30,6 +30,24 @@ framebuffer: framebuffer@a0000000 { }; }; +&sdc2_off_state { + sd-cd-pins { + pins = "gpio94"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; +}; + +&sdc2_on_state { + sd-cd-pins { + pins = "gpio94"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; +}; + &sdhc_2 { status = "okay";