Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2621265rwd; Fri, 26 May 2023 08:55:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4qX+21HyMTRzhb705sIVG40/JqwnRYXnvQzUULIS5SCdSdGq43CVBv+qVSSYNfpE0nYD7s X-Received: by 2002:a17:90b:1945:b0:253:97a1:8797 with SMTP id nk5-20020a17090b194500b0025397a18797mr3035440pjb.17.1685116517896; Fri, 26 May 2023 08:55:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685116517; cv=none; d=google.com; s=arc-20160816; b=PQDK3IQxPEKdZbYOJmuQJ7edYyoHsskGDXG0OmPE21LKe9V7MoKFVK54J77a5QQCM3 LMY25GfH5Ng/A8kj5U2yXNYa2+SrhR187f2ILqbOCKu8nhFvXw3Dbcpi7ei58mReDSAU odyYOI0IyTpLJsIn/SIaBV2trVhX5jVyW8Iq2iq0GBANA2i/h4eD3D5zvZlOJwPP0Pr8 bvqMBSG0D2rvf9EjKfDTMNRzCS/yPqukyR7NxRJoH3/DDnpsxDK+XVSDjin7okmn1tdz lEBgW1eJvv48ZiEpZLJ52fYQItjhc5q5kcH9xN1j7Q43E2yA6OVh7HmlvdLh4rv5gc32 Aklw== 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=CQw+zfZTmj3Rrv2z68fRpRd9uvWpwcM+LxwxnhqEPSc=; b=ztn/Cd6xV+cQdPuHStBycw21ngViRa9tPPigph6RUtiAiW2Q3ofakxhsoQ58/R2sDY CmVebyyVEIObWfqXbj5+SqbI3sBOAKvX3Q/a4xIpF69ouaDHGAPwlefHFeJ7+gfCwC9w y5R6Zg5BQ59hMtudGzpUdDckzopouULr8w6mWx6ncOh2H5witdQ6Vskvko5nzwMOqlmv cUwSmQ5f0h1Uu6yTbkJHq59TfXKXC6GeVAOpP53Ay6udt8pwVgWOpPpsMJH76MFEl4HP 8Xv4h8B2aGbsHhkHH5ox5wjzd7nFPQNPnrCQcWlBgWrmLfXPGrCg/pjAUALc9snQcAh2 MCxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexus-software-ie.20221208.gappssmtp.com header.s=20221208 header.b=O8tXlthh; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z194-20020a6333cb000000b00534897a49a6si3747414pgz.294.2023.05.26.08.55.03; Fri, 26 May 2023 08:55:17 -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=@nexus-software-ie.20221208.gappssmtp.com header.s=20221208 header.b=O8tXlthh; 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 S244137AbjEZPm5 (ORCPT + 99 others); Fri, 26 May 2023 11:42:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244130AbjEZPm4 (ORCPT ); Fri, 26 May 2023 11:42:56 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5A2610A for ; Fri, 26 May 2023 08:42:53 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3f6dfc4dffaso6682135e9.0 for ; Fri, 26 May 2023 08:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20221208.gappssmtp.com; s=20221208; t=1685115772; x=1687707772; 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=CQw+zfZTmj3Rrv2z68fRpRd9uvWpwcM+LxwxnhqEPSc=; b=O8tXlthhBgjEbO1XpEqH7NlZTs+2M3Y+z9Bi4BJz+glfTwjV57YuE3j/vS/GCCr8b0 bAziTwsMOOggSsOc90DoDDi2QrbytKM+faq7nGVYvPD/AaelwXY9jHCiKi2XJ6PXiC/d QnlMWyiZecupq7QnD8y4liWV9HKxePbVkKSopDBwY85zbg9Lweju7J/hWkiz/7AenKOw X/45v15UzzQWChHdc5WI1b6ZEmxMNFDTybImmGlvIkNNuip2hXMS5xsCMjWn8FYVyiFD z6guOz701BjiQppy3mkeL5xzOuMOK8o3/vqGVIdNBc43krCl8rFl92ElBaNiiFoWnueU mtYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685115772; x=1687707772; 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=CQw+zfZTmj3Rrv2z68fRpRd9uvWpwcM+LxwxnhqEPSc=; b=QZiYD2T4Y9yDrv9MSPUP4fsecKsaqOcBHKJTyUydnH8xo9i8ju74W9KNM2zrW78+Ja v6bQnX9TgeJK/CY9Um79+MjXzeVJ3aQ8l9TpXGX4b4NQoIz2Y4XOmkuoLIfIJsOrvBpm U68YTLd8z5IkPe2RS+qgKSqW6ao10hEDQv/HVIZC6VAG5gpkdE0kLRDPM+eOwFSe+8o8 dtG8SnK/jdPx6i6tEEYk0cIoPzKsBmajoDrD3pPpcCVYh8IXF2D5BQCiecuT62zN7cQK Mtfmu6mfGN1yPZMap0eAJeufpNbu5GWo2MgV9x8UMQczBPkcibGjbaP4qOI2mCEvzBEM ul5w== X-Gm-Message-State: AC+VfDyxEf7WDVFOf8IjKTxMjt0XZiva2O620e7UfI2DS2v+wySDANls LAPjztqZd203EmyDFw+fAiCWjXgst4chGg+jFjQ= X-Received: by 2002:adf:e792:0:b0:309:51ec:9ce0 with SMTP id n18-20020adfe792000000b0030951ec9ce0mr1942254wrm.69.1685115772372; Fri, 26 May 2023 08:42:52 -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 u3-20020adfdb83000000b0030aded83385sm533922wri.27.2023.05.26.08.42.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 May 2023 08:42:51 -0700 (PDT) Message-ID: Date: Fri, 26 May 2023 16:42:50 +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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 Reviewed-by: Bryan O'Donoghue