From patchwork Sun Oct 30 07:32:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marijn Suijten X-Patchwork-Id: 12943 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1682282wru; Sun, 30 Oct 2022 00:34:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5GzOj0woQKlbJ3q6Oi/FnU90q59Z++tpzNLg8+BaprZEq6gTDvuI4m4LsXlKbXr2ptrvCx X-Received: by 2002:a17:902:8544:b0:183:baae:cf8d with SMTP id d4-20020a170902854400b00183baaecf8dmr8197529plo.96.1667115260438; Sun, 30 Oct 2022 00:34:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667115260; cv=none; d=google.com; s=arc-20160816; b=bFobCJLia8Z4kXP5lWFC2OyekeZdcnyCAEmswm5Wn+4WT+T5JUkuA2EWl9oNGXXFDS rPJ8K2aXfoGZFrh9QMvUKCmM04bxJ/MWhNV4WFXXpAdgQHG9k/aI/3N0aqNzUrk8P/Ye 8nxyHb1mb4VgxyfOlz0ld9y+uzGuturmjc9QvkONJ7vOhn4+a1U6uAoUhBx4Cgo8p6q/ NtSTBs5Fx13Yhuo5DhYon/jJQQfLKkhCQwORvogNTAk/KbKZi4thPTLxlTJZhdeW/MrF pigjKL+6rXtCqTVnOlgRprlN9A5Dbo7jWvmZDY1VfSlSqWQAXPapdZFJkV7ZTcM0CPaY S2Fw== 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=hweamoXUannlKVqBVboNeFLHGrCxjuofPJNxlXtfLfQ=; b=GDGT6E/MM3yJ2sLMeKqxcF+spiXwIcN9igzuUdNDk0ijHkXerkKXJpMVNJl1YhG4CT H5rZFF8fihMdj64IrMLIFwzzYI+qE5z3stg6DpDtWf8IUVqx/io4VsYJZCgDKjjzypYl sEJhfF7untfeE9dZpNQDZMi6rhQ9/CB4JSfwaHAUSEs0N4f+5eUb82Vbrk6CmxaVfmdN PFnjDL8MHApUFU9oluKOY03UDQnsYIgj3ZDUpe/zwLe9RJ4N/EKCyg07Aacu9MkcvcyX Q2jtiej7ZnkZMQo/UWdTu789g26Kwr7GYz+Gcd3lDM5ZizF+X6oF0WuRjopFMYOu8iz4 U7mw== 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 il3-20020a17090b164300b002008948605esi4962177pjb.13.2022.10.30.00.34.08; Sun, 30 Oct 2022 00:34:20 -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 S230148AbiJ3HdV (ORCPT + 99 others); Sun, 30 Oct 2022 03:33:21 -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 S229948AbiJ3Hcw (ORCPT ); Sun, 30 Oct 2022 03:32:52 -0400 Received: from relay01.th.seeweb.it (relay01.th.seeweb.it [IPv6:2001:4b7a:2000:18::162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DD7E2D9; Sun, 30 Oct 2022 00:32:48 -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 61D1C200BC; Sun, 30 Oct 2022 08:32:46 +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 07/10] arm64: dts: qcom: sm6350-lena: Provide power to SDHCI 2 (SDCard slot) Date: Sun, 30 Oct 2022 08:32:29 +0100 Message-Id: <20221030073232.22726-8-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748097051639568633?= X-GMAIL-MSGID: =?utf-8?q?1748097051639568633?= Without power the SDCard slot / hardware remains dormant. Like many other platforms these regulators are used exclusively by SDHCI, and have their maximum voltage decreased to what downstream sets on the consumer side. Additionally the SDHCI driver supports setting a load, for which the regulator definition is extended much the same. Signed-off-by: Marijn Suijten Reviewed-by: Konrad Dybcio --- .../dts/qcom/sm6350-sony-xperia-lena-pdx213.dts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) 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 1aaa9612b061..5cb76026ef67 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 @@ -219,8 +219,13 @@ pm6150l_l5: ldo5 { pm6150l_l6: ldo6 { regulator-min-microvolt = <1700000>; - regulator-max-microvolt = <3544000>; + regulator-max-microvolt = <2950000>; regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = + ; + }; pm6150l_l7: ldo7 { @@ -237,8 +242,13 @@ pm6150l_l8: ldo8 { pm6150l_l9: ldo9 { regulator-min-microvolt = <2700000>; - regulator-max-microvolt = <3544000>; + regulator-max-microvolt = <2960000>; regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = + ; + }; pm6150l_l10: ldo10 { @@ -300,6 +310,9 @@ sd-cd-pins { &sdhc_2 { status = "okay"; + vmmc-supply = <&pm6150l_l9>; + vqmmc-supply = <&pm6150l_l6>; + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; };