Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2457843rwd; Fri, 26 May 2023 06:56:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7dQ7khF71nZoaaB1GWPbZvaWz7IOaluSCln/+a4dzwoeuDfQJuLo7uItB/agf4BtRQ4fVY X-Received: by 2002:a17:90a:70ce:b0:254:ce9e:53 with SMTP id a14-20020a17090a70ce00b00254ce9e0053mr2708710pjm.23.1685109380703; Fri, 26 May 2023 06:56:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685109380; cv=none; d=google.com; s=arc-20160816; b=auS+WhX0pBIEODK68r0Np3eF6tmTXwBgPyU7rAKAHlom78iR+rEQTnCuagYCAUySvx IMNs4Z0Rm4mt8I0nBGe2EbaehQcKyitsijYGhuy5au+OdjzD1BW0jkWIb3YIbxYvNf+R 4oXM9k98hPM82rOkR7SZ3DoNN6WPKgFEh8mlroNh9DB4+Jw3uCCU+4CemNmR7lHInd+F l78vSuxstd1ZhlDThjDBjuhCOcswUjo0zig+vcbiW9lT28iKjOctALZlBCUb1zvxqqBi ZTkvfzbTUO2kV+ZxDyVbrDDnz3QWDQ+wqtWrU3BhGdBf/lA+xKAMG8jvKSCUV8KQWKUS 9pKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=kRNhz/1ssZp7GmMjGCU/2aCWcpCSy7S5uy3uYHdmw7Y=; b=PPe7trINqRKLqhEO6+xe9q3+1hb0nXWpxw1bsOU0H4A8CTaeMH7T9WSLxtdCOmSVbQ jURMIfb0UTCX/H5IM93qZR44eZ9Kabw9rMu2O7HPH3Vfa4LEGq/QVhfGPHbrXMsH6zW7 06Ppx5L2SzWVErLBsPwmpNAjHh2t0jRCYkHj5k7yGqF3Vrt5DgYvm8LqnlpABRJlkX+s aC5yWMdGmi/dclVMNVCdDnG/95vMtIcoQ6wLqEfjKoz0Y5PC6O8q7H5U452oRh3w0ENt awpv6QRMsnBTe2sg8Pn7jmupkCcno90vmXPxePMPFRzMKH5Q6/Gh/ktzzHG3yi4WptWB sVXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UK2zb07T; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m10-20020a17090a7f8a00b002531c43fc41si4065269pjl.178.2023.05.26.06.56.06; Fri, 26 May 2023 06:56: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; dkim=pass header.i=@linaro.org header.s=google header.b=UK2zb07T; 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 S243624AbjEZNiJ (ORCPT + 99 others); Fri, 26 May 2023 09:38:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243756AbjEZNiH (ORCPT ); Fri, 26 May 2023 09:38:07 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAA09D8 for ; Fri, 26 May 2023 06:38:04 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3f603ff9c02so5484815e9.2 for ; Fri, 26 May 2023 06:38:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685108283; x=1687700283; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=kRNhz/1ssZp7GmMjGCU/2aCWcpCSy7S5uy3uYHdmw7Y=; b=UK2zb07TRRz408dzHN0N/0vYmIJfV431IB7X8ANOYPkRHJPIfACk52Z+ortc1DPIGR ym3FHdPARthYj9fHb1Y77DWDBlDDxcN6mz8VnzkIC83BfLSOozkYbj6WeZWqN84w5zhB 48eJuVq+F92uKNK/YsObvKq0i/YjH6oNpyqSFUqJOYhaJC+bb8iExFUzUgidocdy+UQ7 v+fwn+FgrB1OTSQpbGwM5C0/mHtFV4UHHIgIasF4MVW0cfxPC89wAdiYN3fUfwQ4kTEF DjUMj8J6g4qvUnl762VOKsF3aEmswJ4TZUDK1gGmpRlkYSNOvnChdVdAh3HR0Oix55pz EQHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685108283; x=1687700283; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kRNhz/1ssZp7GmMjGCU/2aCWcpCSy7S5uy3uYHdmw7Y=; b=PCKaDzyP+cVpmgdrq5nKo332uqOA0wtI4zcbQ44ZlC/Lfok+rEuIX3SzY835P5H+j9 xgYsGZZx/Mw80C27finwGkjv4v6JX9mw4ALOgWh729lhiRguz1UOVVzszo75cqpmPtNe M0Vce3cC+APx330x/8ltVAPBxA4zuR6GDdo+0wkcxatni/vqJLP22gXMpkUcCdAyAZHe M1/eWmH6AZCKvTlzhDF9e4tVnJ3f6YDt2PEfZUBpwEh3WPAxne7q4UuUf6v+YJmkGZTC 0Yptm+H5P7xCqCFO4oP+yvBfh5j8aBsj0z1CzZhtW2JcLIjYJSlzHl8zagc+/tza/XCE yoxw== X-Gm-Message-State: AC+VfDxQvH558qlcbSAtn5T3uFEk3w8rdoL97JBzsd41LJQxUw/HZgRG gV/UxWa9dV4yf8Yi2igVVSrLmw== X-Received: by 2002:a7b:c412:0:b0:3f5:fa8e:aaa3 with SMTP id k18-20020a7bc412000000b003f5fa8eaaa3mr1595377wmi.28.1685108283226; Fri, 26 May 2023 06:38:03 -0700 (PDT) Received: from [192.168.0.162] (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id n11-20020a05600c294b00b003f6129d2e30sm8900220wmd.1.2023.05.26.06.38.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 May 2023 06:38:02 -0700 (PDT) Message-ID: Date: Fri, 26 May 2023 14:38:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 3/8] arm64: dts: qcom: msm8916: Fix regulator constraints Content-Language: en-US To: Stephan Gerhold , Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , Srinivas Kandagatla , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht References: <20230510-msm8916-regulators-v1-0-54d4960a05fc@gerhold.net> <20230510-msm8916-regulators-v1-3-54d4960a05fc@gerhold.net> From: Bryan O'Donoghue In-Reply-To: <20230510-msm8916-regulators-v1-3-54d4960a05fc@gerhold.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 17/05/2023 19:48, Stephan Gerhold wrote: > The regulator constraints for most MSM8916 devices (except DB410c) were > originally taken from Qualcomm's msm-3.10 vendor device tree (for lack > of better documentation). Unfortunately it turns out that Qualcomm's > voltages are slightly off as well and do not match the voltage > constraints applied by the RPM firmware. > > This means that we sometimes request a specific voltage but the RPM > firmware actually applies a much lower or higher voltage. This is > particularly critical for pm8916_l11 which is used as SD card VMMC > regulator: The SD card can choose a voltage from the current range of > 1.8 - 2.95V. If it chooses to run at 1.8V we pretend that this is fine > but the RPM firmware will still silently end up configuring 2.95V. > This can be easily reproduced with a multimeter or by checking the > SPMI hardware registers of the regulator. > > Fix this by making the voltages match the actual "specified range" in > the PM8916 Device Specification which is enforced by the RPM firmware. > > Signed-off-by: Stephan Gerhold > --- > arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts | 14 +++++++------- > arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts | 14 +++++++------- > arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts | 14 +++++++------- > arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts | 14 +++++++------- > arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts | 12 ++++++------ > arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts | 14 +++++++------- > arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dts | 14 +++++++------- > arch/arm64/boot/dts/qcom/msm8916-samsung-a2015-common.dtsi | 14 +++++++------- > arch/arm64/boot/dts/qcom/msm8916-samsung-gt5-common.dtsi | 14 +++++++------- > arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi | 14 +++++++------- > arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts | 14 +++++++------- > arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi | 14 +++++++------- > arch/arm64/boot/dts/qcom/msm8916-wingtech-wt88047.dts | 12 ++++++------ > 13 files changed, 89 insertions(+), 89 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts b/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts > index 13cd9ad167df..0d517804e44e 100644 > --- a/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts > +++ b/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts > @@ -159,13 +159,13 @@ &smd_rpm_regulators { > vdd_l7-supply = <&pm8916_s4>; > > s3 { > - regulator-min-microvolt = <1200000>; > - regulator-max-microvolt = <1300000>; > + regulator-min-microvolt = <1250000>; > + regulator-max-microvolt = <1350000>; Where are you getting these 5s from ? > }; > > s4 { > - regulator-min-microvolt = <1800000>; > - regulator-max-microvolt = <2100000>; > + regulator-min-microvolt = <1850000>; > + regulator-max-microvolt = <2150000>; > }; > > l1 { > @@ -199,7 +199,7 @@ l7 { > }; > > l8 { > - regulator-min-microvolt = <2850000>; > + regulator-min-microvolt = <2900000>; > regulator-max-microvolt = <2900000>; > }; > > @@ -209,12 +209,12 @@ l9 { > }; > > l10 { > - regulator-min-microvolt = <2700000>; > + regulator-min-microvolt = <2800000>; > regulator-max-microvolt = <2800000>; > }; > > l11 { > - regulator-min-microvolt = <1800000>; > + regulator-min-microvolt = <2950000>; Wouldn't 1v8 be the right voltage for eMMC !SD though have you tested eMMC instead of SD ? --- bod