From patchwork Mon May 1 10:20:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 89019 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2600859vqo; Mon, 1 May 2023 03:34:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4u8urjOq/3sdPjoQ+E7VtSJTcmKXLY90Hm5/oskpJMux81rcmqv6uvPF386MV3I4fucgmg X-Received: by 2002:a05:6a20:2302:b0:f2:13cc:2914 with SMTP id n2-20020a056a20230200b000f213cc2914mr12843213pzc.16.1682937271483; Mon, 01 May 2023 03:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682937271; cv=none; d=google.com; s=arc-20160816; b=A7MouWmZLdNp7fLpPhWFYiEdPYnXvzm/J9CjJX9oNNHKmRBIeSgs3DE7ZHdbd0gJSf A/Ay+z+pD8X3/bK8Sk49BXxUh+i9EC3t0/+eXQU014L948xSqLOz9L9mEs8tW75JOsCH +6kCuL08nv6hG2+fFtSj8XyHi93wtKf21p2fhxgLFv2URCe0sEhi+h09/OR9lkz7THXy OVbT+ECFaIZe/5pg9ASUd3pm8WZ/Z5gpzUWUXzkvn1S1OOt/l/MTEPtiKLYDgGuN80mO hMf1n8QXK5tFDWrjQCGUKhi4fzOe9vX9J6bLQEQKsM1LncfmoVZLja67Tc/EslKnx7td 3YyA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=380yTQfyf1kIhmDwtCqc51zaHbJPWsGW9xsWD9WICFk=; b=oRW2YhxOtWOW2PAsujT2A0/S/CHCFE510RGOL4z0q6god4xrawP40V0HcLilq1i1A0 LhwhJvEo/VVm+c9f7yhZE1+wFUmjoXDxyJtwhcCWH5Ey6ZWA5dg/L5LXDt+ds3JK5bgF jwXZTv/6nUjZQ5GVvt3kRK06yZrgivsY7nTxwPZ7Nk+yrU73LFU2URcLtjfPLCOuvG+w 4i0Zm8LyRhtxw8C6AyIo2HjN3iSuy36E+e3SxP+vfjo42QimpKJoOBg4+ILIG1spuR/o S4GjQx4H0QJgQeyVNsU847i0jfmmaVK0Hp7bH96nyN+3OLp9vx/2l+TGrie6WOiqIadU 2isg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="h/y3juOS"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e18-20020a63e012000000b0051b5fc497e9si26880895pgh.739.2023.05.01.03.34.19; Mon, 01 May 2023 03:34:31 -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; dkim=pass header.i=@linaro.org header.s=google header.b="h/y3juOS"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230139AbjEAKVK (ORCPT + 99 others); Mon, 1 May 2023 06:21:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjEAKVH (ORCPT ); Mon, 1 May 2023 06:21:07 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0BF510DB for ; Mon, 1 May 2023 03:20:51 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-63b7588005fso1814966b3a.0 for ; Mon, 01 May 2023 03:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682936451; x=1685528451; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=380yTQfyf1kIhmDwtCqc51zaHbJPWsGW9xsWD9WICFk=; b=h/y3juOSd6/vq5PkD8g1lfgt7gRr2G4qvTvcRjGxmyhskKd3nLwXcPUfMXwf5SJIKS rJYU5eU7EykSblwIzRMnPP85C+O3rP6cnjNNvPl4qAZzVTdkLczyT0AjH4ncHhx2tUGW rN/wPqEtJL1QlVC7RFgWrq7HiSf1EqwcnEdRqHbVKSd7epM5uiWdELxdQrfrUiGqzwP4 6vJ1dV15d0lk34hgUGIRk4WihZ45MJFfYOeUg3l/wARbcmosHv8vv+fSZ1bVIRko+DGQ dUsHoamsdBNuCMzPE/zrFb8Uk34hVsftMB4yAu/zQuGCO9GHMiHJwx4BWwsj19RDlaV2 oqSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682936451; x=1685528451; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=380yTQfyf1kIhmDwtCqc51zaHbJPWsGW9xsWD9WICFk=; b=L8ZL6M/bBLjqjjmIrGjSeI3BsEJpVaob+ZkBXfuJz85YT99nbEWy9DNjzA0C2RtKHc N6ssCPthQYy4B6PfQet6I/fUUd4XOuXDihpGAUw8QVAo4d1r/0Q9KdkRh58wx1YYRSkW sIRli64rh7W2PrCbfm8OEe0RfC6/wGIDLrLFAXtx97rYjDA+Uy9ezcUKgn6goiZ1NpNY aJAoUqnXLbHW7NfXcS/C0sbWL47MQVoSq1IKPVJZYhlGGXfw19JSZSlr0pk6gmlBeaBo OHnx5fpqvmSGNvzJUI4QtCSeuvij3ZJL029v2uFDf/S6FOIedpotOe851ItaRIYIJx+k HFHw== X-Gm-Message-State: AC+VfDxmp1cZ4ApNN+XKYsYqbrWqgc7abIQprm/g9/hxU0iEQfgUcqGO u/o7k6zsPPjZQWBHxm19nGbVNVKP6nZXxqkCQto= X-Received: by 2002:a05:6a00:1916:b0:641:3ca2:1aec with SMTP id y22-20020a056a00191600b006413ca21aecmr11446875pfi.27.1682936450993; Mon, 01 May 2023 03:20:50 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3b:58fa:39f6:37e1:bb9a:a094]) by smtp.gmail.com with ESMTPSA id k16-20020aa788d0000000b00625616f59a1sm19198903pff.73.2023.05.01.03.20.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 03:20:50 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com, bhupesh.sharma@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: qcom: qrb4210-rb2: Add SD pinctrl states & fix CD gpio Date: Mon, 1 May 2023 15:50:34 +0530 Message-Id: <20230501102035.1180701-1-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764687632209458121?= X-GMAIL-MSGID: =?utf-8?q?1764687632209458121?= Add the default and sleep pinctrl states for SDHC1 & 2 controllers on QRB4210 RB2 board. While at it also fix the Card-Detect (CD) gpio for SDHC2 which allows the uSD card to be detected on the board. Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index dc80f0bca767..bff6ba1d689f 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -190,6 +190,10 @@ vreg_l24a_2p96: l24 { }; &sdhc_1 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_state_on>; + pinctrl-1 = <&sdc1_state_off>; + vmmc-supply = <&vreg_l24a_2p96>; vqmmc-supply = <&vreg_l11a_1p8>; no-sdio; @@ -199,7 +203,11 @@ &sdhc_1 { }; &sdhc_2 { - cd-gpios = <&tlmm 88 GPIO_ACTIVE_HIGH>; /* card detect gpio */ + cd-gpios = <&tlmm 88 GPIO_ACTIVE_LOW>; /* card detect gpio */ + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_state_on &sdc2_card_det_n>; + pinctrl-1 = <&sdc2_state_off &sdc2_card_det_n>; + vmmc-supply = <&vreg_l22a_2p96>; vqmmc-supply = <&vreg_l5a_2p96>; no-sdio; @@ -216,6 +224,13 @@ &tlmm { <49 1>, <52 1>, <54 1>, <56 3>, <61 2>, <64 1>, <68 1>, <72 8>, <96 1>; + + sdc2_card_det_n: sd-card-det-n-state { + pins = "gpio88"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; }; &uart4 {