From patchwork Wed Nov 9 14:26:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 17602 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp364675wru; Wed, 9 Nov 2022 06:28:58 -0800 (PST) X-Google-Smtp-Source: AMsMyM4K7Lr7E/iwjIcKE6Y2CJoFVDJl4WoK4zMRmWG3jD/QQmkmdzOCoGRG6ngN3HQs7Iqs4IM6 X-Received: by 2002:a17:907:3fa7:b0:7ad:e0cf:417d with SMTP id hr39-20020a1709073fa700b007ade0cf417dmr44309855ejc.577.1668004138139; Wed, 09 Nov 2022 06:28:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668004138; cv=none; d=google.com; s=arc-20160816; b=H8+7FF837jCk5StAzNy7dNESevqecy50d0Q4YXrTBK/sub/0fJcqqh3LzXJhQyZn3E Woa6Q+cxzo0NsBGn8iVTroEdKPNtDwDqjZIQk4C1UA7pgP615hPDX3jcaQ2y7vHkwYo7 fd3JA1EG/wAcrqK8kC9E158pS32WONVDal+LfmAZw5nwmhsu0PPBBeFFn9nYm3ju/nXt ou5BqVMpg1v6IKBxWq5wdaR7tam4pAEzH0BIysvGzJKMiB8zqgYMCwiRNnxG19HH5LNU HM8i1RgHLoLZXk49R+neHyoAETpbdhQpDrjHnkdCLRqiZ9fnbNCS0i4dNUIa1uoRH8OS fQOQ== 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=sVFLp+q4rqPPv5pDBxdXoy+mEvkQOdHCoCkRlHx+cFM=; b=cTbCHhtj0OTDfZ7FMnkaitOI6SrAJ+xxlzlCTyANNq5EExyMJLgol+DzC3j/lZpRsq E5c/+kCtzVwqqgydD2kgnqjCOYwy4MgLpB/r7ki4sKU8DqRwP22yM1lfuyKIRKa1YvBd 5NzGP/Ut5GUbQvTX2Jz/cN2Y7j7rJrlLvZu+Fnn3DZrKY+EYXt4cXbm0q5RZptlVrlUv QWTz/tYsMisaf0rafUUyx01bsJd1HLontCDAnt3F8/OLkGO0stIdWK8IJX01vel30aLe +7fC5lT5F7f1LtklLAzruNIJD8+cGRYsQoPjZz9vMRwYyODqlAJxtCWu/MCKvSLzNXNc v91A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hQXvkdke; 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 b20-20020a056402279400b0045b265a1712si18449937ede.595.2022.11.09.06.28.34; Wed, 09 Nov 2022 06:28:58 -0800 (PST) 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=hQXvkdke; 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 S231386AbiKIO1Y (ORCPT + 99 others); Wed, 9 Nov 2022 09:27:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231598AbiKIO06 (ORCPT ); Wed, 9 Nov 2022 09:26:58 -0500 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECA5413F85 for ; Wed, 9 Nov 2022 06:26:39 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id c25so26012445ljr.8 for ; Wed, 09 Nov 2022 06:26:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=sVFLp+q4rqPPv5pDBxdXoy+mEvkQOdHCoCkRlHx+cFM=; b=hQXvkdkeQ8u8kPUKFMCQApvuYe9GpGtkWjHCtda1yfJxJ7ZnyIzkzL4evgRQSijRFH AH7L+eKgUWqVxBq50aYzZVEcpENiexoYxYdLbt3eUPwiamVSuFrN7fzBuuXUv68t+UR2 ESObtMbfkS+lMmDhhWgNHOQopKN1jr8cAULe+MaA57sW/Dgma7ZmyE1VRq3fXt24/6zR kkHYjWONQRsNxLhxam8MmEo8ICtm9pTkPtevmoYgpw5ox9NXn6UB5z7Ep2GeiZ9AoTHz PbK7Lwlf6g5M9JWDfg1Jk6Q9J9oNjycGU9RHEr00GOCrShYN6eOHQ76vbvCE88AjOtIr oT9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=sVFLp+q4rqPPv5pDBxdXoy+mEvkQOdHCoCkRlHx+cFM=; b=VElfomwmPLsuT/hq4qR7SYMMbvMpm6MULuiqRKCY0ua7+JFvUNo+pt6cRdbQpwAiQ9 9I2LjZx6PKmuR3uCudqGEQQJV8e5kuoBai8IJ2rCksrVJhBFb9qo+E2qlkuwVsfLlANU uZqNIE8/yGinWwP95JHv/HevCE177qe9AP5/+99OGtjwyGB/1cds6Rl/nObAwras2OcG 3tb7T2mLYAGHT7o3hvd4EczjMJ4HZsBIGR3ilj3IDmrOMQzKCMEXPYEtWloljJCy/rTM LrqxzaErojO2YhAhZMgq5b+Ds5eYwMNoKtYgNP697/dNHtLHuV/6xvALFj3A3RjPOLwx +Mig== X-Gm-Message-State: ACrzQf2U4sj2tSx48Bjzt+SDZuuMz18FnJC8E5CVMa3qJGKrUVHoqjP6 WsP2Amx9HXPWlxfGIGw0aCTVBw== X-Received: by 2002:a2e:5054:0:b0:277:389e:8877 with SMTP id v20-20020a2e5054000000b00277389e8877mr21556714ljd.165.1668003999539; Wed, 09 Nov 2022 06:26:39 -0800 (PST) Received: from localhost.localdomain ([194.29.137.22]) by smtp.gmail.com with ESMTPSA id q18-20020a056512211200b004a2ae643b99sm2241008lfr.170.2022.11.09.06.26.37 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 09 Nov 2022 06:26:39 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: patches@linaro.org, Konrad Dybcio , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: qcom: sm6375-pdx225: Enable SD card slot Date: Wed, 9 Nov 2022 15:26:23 +0100 Message-Id: <20221109142623.53052-4-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20221109142623.53052-1-konrad.dybcio@linaro.org> References: <20221109142623.53052-1-konrad.dybcio@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 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?1749029107119372150?= X-GMAIL-MSGID: =?utf-8?q?1749029107119372150?= Set SDHCI VMMC/VQMMC to <=2v96 and allow load setting by the SDHCI driver, as required by this use case. Configure the SD Card Detect pin, enable the SDHCI2 controller and assign it the aforementioned regulators. Signed-off-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski --- .../qcom/sm6375-sony-xperia-murray-pdx225.dts | 34 +++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts b/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts index 33083f18755b..c4181476f3b8 100644 --- a/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts +++ b/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts @@ -153,7 +153,8 @@ pm6125_l4: l4 { pm6125_l5: l5 { regulator-min-microvolt = <1650000>; - regulator-max-microvolt = <3050000>; + regulator-max-microvolt = <2960000>; + regulator-allow-set-load; }; pm6125_l6: l6 { @@ -235,7 +236,8 @@ pm6125_l21: l21 { pm6125_l22: l22 { regulator-min-microvolt = <2704000>; - regulator-max-microvolt = <3544000>; + regulator-max-microvolt = <2960000>; + regulator-allow-set-load; }; pm6125_l23: l23 { @@ -302,6 +304,34 @@ &qupv3_id_1 { status = "okay"; }; +&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"; + + vmmc-supply = <&pm6125_l22>; + vqmmc-supply = <&pm6125_l5>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + + &tlmm { gpio-reserved-ranges = <13 4>;