From patchwork Tue May 16 07:59:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 94496 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp255653vqo; Tue, 16 May 2023 01:07:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6HMg4ZJ+3LnNQEOp5Wkop6YjJb4yr9pyN7SyJiVLqL/LfJxxELuxBFGHIqYt+VBlGNY5lZ X-Received: by 2002:a05:6a20:12c9:b0:100:b715:8ab2 with SMTP id v9-20020a056a2012c900b00100b7158ab2mr38479285pzg.46.1684224428003; Tue, 16 May 2023 01:07:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684224427; cv=none; d=google.com; s=arc-20160816; b=rymTCio57YOzRKHTLvbz2UatINahVk3sQPdoqNQNoxWm4STQak4q6wAZdq2GGkQRC9 O1GqQaJMFSl+juMLICpeP2iZz+rnbpIxZS+E4NlnFYw0ffyEpANbV9OujcqXYGUyvj1v ajHk7u3aywRxy3xrVk4pF9DUH/UL65uPLOkxvZZY2uEThl7tLwrLELTITkGJG+jeYIEX RtjH7ueak/qwBln+kRIMaLhs4i8vyyXNQZ8SW9DvfTIz84r3mRdutOWgUqQsaD4dOciR S5XVeUBEwqq4vtHY9wbfoUDO6zWLRQXq5QgxR6yxCsa81/a4LiqUr86THvY9dpHXzI0a i2qA== 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 :dkim-signature; bh=e+CFxVhZB5eU9Nsbv/HdbFkKEux0Lb/FuWQS7JB25g4=; b=NYldl2zI0hn+2l0EuQyY4rRijJVtilD9SsvjNDUxO5xD1sizmyc2JzuCSR6piUOGh+ Lgg+3GPxPICXlZ2ryGPSS+ZdG+m5ah+vfdJ6kPHK2pGmEfXJhPORVtKCDXta24eF/j1c AQVJFygJyYrQ1I/qisH3mPBN+DmoaRogg7EkpJKN+Qvahav39Y34vLzREQAtBqOUQwV9 haBhLoaCtheuNuZZH+UuQzwWJC9+8KPIFcQW4KDsJIazip6KFoGrZlxkWNWwAchu5n0j hxPdQaV6jKWKd4i+2CZaz4JUh+x1gd9curxIcbg+oePqxO3PPDMqPb7JejmSbveJDY26 2fhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PCbqaSNY; 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 p11-20020aa79e8b000000b00646cda8fe3bsi7350289pfq.81.2023.05.16.01.06.55; Tue, 16 May 2023 01:07:07 -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=PCbqaSNY; 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 S231445AbjEPH7X (ORCPT + 99 others); Tue, 16 May 2023 03:59:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231271AbjEPH7V (ORCPT ); Tue, 16 May 2023 03:59:21 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32A6C19A5 for ; Tue, 16 May 2023 00:59:20 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1aaea43def7so95073265ad.2 for ; Tue, 16 May 2023 00:59:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684223959; x=1686815959; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=e+CFxVhZB5eU9Nsbv/HdbFkKEux0Lb/FuWQS7JB25g4=; b=PCbqaSNYjEajsbf0iPXtoZYhteBZX6MyFCOuycYKp+xkoOLwG2YYm3HX094zTO6rwG YDIfKCQozTQGf875JtQgOFtYZF73KYB4Fqj0s7zswxrBGSF+VVAIJNbxULnH/cBsbNfb /XwWd/gioMMgeIQaXDwXepG3+EBuoDBAEGQYc0K1d0B9uAaHqcgusOAP7h1cgwjPCI4z tRlqAVTNuYJDujgGt1zEFzL3xQxcRvR4QufP9IGPTiXEKT0ab5h7VHcJCxxq/al+QJaF hxqlvatPx1QYB3toKPtuHQvR/M7w8PLt32/d35mrVWijuFbf6+cn7Y4SOZkFzDMuG4/N DaAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684223959; x=1686815959; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=e+CFxVhZB5eU9Nsbv/HdbFkKEux0Lb/FuWQS7JB25g4=; b=Qr/jJi1Yn5Kbue2k2XWnr0f27k7+rkfSTOuIauHcYgXOnPx5N6iFVVrZJw+2mDxFiD SlxvpVTMyh/HoXQfcvNfIHOUUQAn/JCjkt+16IiIxfQBGOHUjaLHhJC40GcpaUBRiJAm O7KEL3XGfKyFFPR26OijwhjGeZY/7VEUPnXks/waw2hq/NKdDPr4ZC98reTmFr45/xZB 4EWaPm77LcRzIbvoBvLHxaZO1wwyLA/wgrGjlJvDyExNZmsmldYYRbZ4eAdw2Ler/0vw Y36jluliiH9Wquy8IqvzneED1liU4I0I8tOAokGwtKE9QPeqRBTmm8CautCZVg2pVVGk AW6w== X-Gm-Message-State: AC+VfDwB1M22HITJYCF7tvKa71k8iYUfmW0jyIoGE4xEWLRwg9/iVbcs ilPxqvXMaFGukgMBdV8axE8QXuswxqEU2mV8CXM= X-Received: by 2002:a17:902:c10c:b0:1ae:403f:d838 with SMTP id 12-20020a170902c10c00b001ae403fd838mr460357pli.27.1684223959651; Tue, 16 May 2023 00:59:19 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:6bed:62ca:2e52:e0c5:d0cb]) by smtp.gmail.com with ESMTPSA id cl16-20020a17090af69000b002532d74fb59sm469725pjb.22.2023.05.16.00.59.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 00:59:19 -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, Dmitry Baryshkov Subject: [PATCH v4 1/3] arm64: dts: qcom: qrb4210-rb2: Add SD pinctrl states Date: Tue, 16 May 2023 13:29:06 +0530 Message-Id: <20230516075908.2323372-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230516075908.2323372-1-bhupesh.sharma@linaro.org> References: <20230516075908.2323372-1-bhupesh.sharma@linaro.org> 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,URIBL_BLOCKED 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?1766037313467035295?= X-GMAIL-MSGID: =?utf-8?q?1766037313467035295?= Add the default and sleep pinctrl states for SDHC1 & 2 controllers on QRB4210 RB2 board. Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index dc80f0bca767..504543ad1a1b 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-0 = <&sdc1_state_on>; + pinctrl-1 = <&sdc1_state_off>; + pinctrl-names = "default", "sleep"; + vmmc-supply = <&vreg_l24a_2p96>; vqmmc-supply = <&vreg_l11a_1p8>; no-sdio; @@ -200,6 +204,11 @@ &sdhc_1 { &sdhc_2 { cd-gpios = <&tlmm 88 GPIO_ACTIVE_HIGH>; /* card detect gpio */ + + pinctrl-0 = <&sdc2_state_on &sdc2_card_det_n>; + pinctrl-1 = <&sdc2_state_off &sdc2_card_det_n>; + pinctrl-names = "default", "sleep"; + vmmc-supply = <&vreg_l22a_2p96>; vqmmc-supply = <&vreg_l5a_2p96>; no-sdio; @@ -216,6 +225,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 {