Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2666914rwd; Fri, 26 May 2023 09:27:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5q6fefhBgZSF+r+MRc+Fn+Aj5d+4wPpruOlvDFoRJW4ITMKCVkS+yX+TYBPixZ9Ib6iQ1w X-Received: by 2002:a05:6a00:c85:b0:64d:2487:5b20 with SMTP id a5-20020a056a000c8500b0064d24875b20mr4653968pfv.9.1685118461204; Fri, 26 May 2023 09:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685118461; cv=none; d=google.com; s=arc-20160816; b=ZgbIXFRNdde2PQLdR3uzhtTtE6aYPaz48/W+ozcbGPTPCJOqIYJr3NT/xtbQVrwoEk +gMqNG96mhHVxG/Up+SBQd2+xtWW2SPoSC+Y+6POOVore3ONF7hK4AGA8BlSrs+aPweH Ky+ojyZNjqvhvmkXqan8Kzgbok5c7HBCC0LDNFkid3EPtdglwvtOeBngcerWDxQnASyh 7kIECkAgWKY/xDym8V0HsxwLX9mmXDPYjovRt/6TtBrW71scL3PdeqL+ocaGeB2qGrKa sm6f6WCf9vQ+xtdZq1oQBxzWnrRCwkDHCulR/fj7v+i61RyQ4JlIUKF+aYWVh0/vDft2 xsWw== 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=312Qxv20qtT6z2BiqRrmUkxmiNN8OsfraYgPOBDA1W8=; b=Vx6B85wN2gbpyXroWp5QuaGzE/KrN7q3m6B7q65nN1uF+8kiVnG3rBbpeWb9/mitEZ 41V4onP6cxn6kU/LvbkvGvm31CPjH+mhB9ZKGvAa4nmYRNzzgKO3qOUiLSqX+yNWt3Ks ZTvLVAUmehZsOejMp5n93naPTVmwizEyA7b1Vs+TAb6mH6jyY4/fZ0IWL/LYWx6YFpUw YbaG6EnH35tg69Arst6EgciF4w1xIOddLpdoSbBQ4tNwCtml5jGPp9WaWTSWVq1fQTWB CQu+NDkDm3w0bFI8TWdQpO9b+I3oV2ZWICwArt7SokjWu7zR+4StUWxq/RQtskqYnwpJ CVfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gKwC8mFg; 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 c185-20020a624ec2000000b00645edbb3911si4401904pfb.281.2023.05.26.09.27.26; Fri, 26 May 2023 09:27:41 -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=gKwC8mFg; 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 S244130AbjEZPn4 (ORCPT + 99 others); Fri, 26 May 2023 11:43:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244013AbjEZPny (ORCPT ); Fri, 26 May 2023 11:43:54 -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 76E23119 for ; Fri, 26 May 2023 08:43:52 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3f6e4554453so6732705e9.3 for ; Fri, 26 May 2023 08:43:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685115831; x=1687707831; 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=312Qxv20qtT6z2BiqRrmUkxmiNN8OsfraYgPOBDA1W8=; b=gKwC8mFgz6AhT4BVC44KDGqdc4siWRAA2cwNYRpG+Gj9crgr6dhZ6pYJQsUUCyeVrj REXzngGbGddXxxlwLdb9y0SFXydTR15KsaXewI8Un8LjR9QXDQnvphhmkpaXvGlMvvXE kbgKT9FZix51RWAsK+xC5W2VFV9ZkJfodxXD6DElgUiDTI2Z2oPRbaAsz/7nzvQbhYi/ FDsS7Uma40dFkNb4F1DD8FGEcc9Lw53l1FfaOdVnJTE1jaBlo4ezpmnmgVsmIFlJGmlS d43EViDu4edo8XqbvPrft05qomlCWQ/5Dbu0qnoiAIhHqzKW0pfgh3EQ88pZFvQiNnNS rdyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685115831; x=1687707831; 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=312Qxv20qtT6z2BiqRrmUkxmiNN8OsfraYgPOBDA1W8=; b=eU8Vj32W6FipUjAZNIl9AlSALC7WMq99GOYjtJdBzjl7vSmRj+aWqkjl1f7zpHQkdb UYTXSNUe4swrT6MRrgOJnuAVUcx1Ks/qNHCtDl4hUSn9NKV1cbwDS1B6W7+NlW8DShwD Al/bAhmtZ3h8ZgGGCpleAeAVvNljQaAiyLSjn92BfdyzNC3MXUX2ohMK4iIHtsYMPlzk WNIzdmIID9I72aNCpTc1hixJMv/bZw9MR0xkU/7wc2dSqozpJ0X1pycsST3HbRoRWKRW r+1FTQzQAU8poEpv5uoGC+ciLMb4Hq2mm7Y+9jBgRReEsrJ3yTUV0BZJw7kLYb6/c9W3 KZCQ== X-Gm-Message-State: AC+VfDywYk3ZsFr3NTAMn5n3Ki/rhbaAeeiGKUQa/IP2B3XjQ3ohCcxI mHkrz2rcXrFLj/dBYSLEzEIYtA== X-Received: by 2002:adf:e792:0:b0:306:340c:4737 with SMTP id n18-20020adfe792000000b00306340c4737mr1703838wrm.67.1685115830955; Fri, 26 May 2023 08:43:50 -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 c2-20020adfed82000000b003078a3f3a24sm5472890wro.114.2023.05.26.08.43.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 May 2023 08:43:50 -0700 (PDT) Message-ID: <8bc6aaac-f28a-3ce7-8dea-f8484fd5b6c9@linaro.org> Date: Fri, 26 May 2023 16:43:49 +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(-) Reviewed-by: Bryan O'Donoghue