Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2670294rwd; Wed, 14 Jun 2023 06:07:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4JMVXqrXJI+9bl6K3SN4vzgnZboF53ntPWTwYiGU9cdTY+8i4xJt4NYhdQyoTBNFloWayf X-Received: by 2002:a17:907:2da4:b0:981:a949:27f3 with SMTP id gt36-20020a1709072da400b00981a94927f3mr9218675ejc.55.1686748022401; Wed, 14 Jun 2023 06:07:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686748022; cv=none; d=google.com; s=arc-20160816; b=QecIDuSTltjNZqvNEfmRBdXpZU+EwW8jcclGpSYgOU5OtqZtFCITxMFOcjagHyvJT4 sPayvMP+ch6cp8XHibarEC4MDR690IjXvjE8508KXP5KgjFxNFXgS59Fjd2z8VV8G9Le o4Ph6ndu/Fsfs0GTpXJe8kseN4VJb6JYIM2+5nmomY3biXTB7QyYSIBbkKb259kuHtvv KGogOaLyG+eIvaLqLvU+nNZuQWrRV9yrTKb9BBVpZ1wN14Z0F1CY8hUTcME0pKEPlJvh sYaPuU7enxS5bpA5i7Ca8vQO3b37GXbMdLG70JD1hJtHNPTheuN8fUjkNnEH/io3C4Dv GwpQ== 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=tWn2ul/ieVtMNMtJF2WtOiK5BLVE++NXvHhAy0ozK1s=; b=k7qqSW2vjPwjw/qE1HafvvmRwL/uenZy9DlTOyUU47S2fKbe61Vv0gomLdfHy9JMOg sTjWv6EQRXM0TgS3ucFSknesuO2vFNZR4XXp/sBt+1G5AHoXtgpbosPXdjtnltyUgSQb /kXJDlUHmGW6aWCKpyRfNRymolFduUVvm/pZLLYy9ueMZaJhKFOzZK52vx/sXQRIr7Bm 7xI8rkXmgNB3J4A+p/THoBDWErZc4gxQQ7gqSwr8rpx410Fr8GKrn0ioAIbWYB+LUWPo Tf+dkBMpb6yfvOG7DsOsKMe8slgHZzMMnaMyoe5zUHCTdSkQLu2icRRJQlGeCJ58i3Mw yqFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BBmXo1oU; 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 gf4-20020a170906e20400b0097456aa5157si7481658ejb.623.2023.06.14.06.06.07; Wed, 14 Jun 2023 06:07:02 -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=BBmXo1oU; 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 S244710AbjFNMsw (ORCPT + 99 others); Wed, 14 Jun 2023 08:48:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244722AbjFNMsv (ORCPT ); Wed, 14 Jun 2023 08:48:51 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53DB810EC for ; Wed, 14 Jun 2023 05:48:50 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-3110ab7110aso557041f8f.3 for ; Wed, 14 Jun 2023 05:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686746929; x=1689338929; 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=tWn2ul/ieVtMNMtJF2WtOiK5BLVE++NXvHhAy0ozK1s=; b=BBmXo1oU/lRnhp8XbmGYXALe8y08qNC2vl2nZSucshg1C7s62UDPmQ/SWpiUdMxydC gGlQYQgeLC/hidRiO6PXUKHXzSlm17sgDDYpkZs5JzkkNryu4h5aEv6nqncoVUFt4jfE UWo3Imfn+7wP7ttA5rLuzoHxjcASgpfNSeSf1mtfuOfGy+XD7PgCct/HK+HPmLmLABug wU+8g9kfoRvwWNLZG7vvE5JIHDkcaJe992YLWYmE98pvR+blTSMlD2gw0R6wlaXgOCMK x+qWPvRDN9LrseJQQd6/JBalqFtn6qsnViOwrjNdIIH1w1CFRHpqFxbEXeXH19kRGqr4 FrNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686746929; x=1689338929; 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=tWn2ul/ieVtMNMtJF2WtOiK5BLVE++NXvHhAy0ozK1s=; b=XWrfBLaBrMcPaFBoVb8deQxf3VxuT2jM10mfaQrTHEKmPM0Q0hgv37EBnaZ5je5J8H 6Y472wVkaUvuvzueagYgewjWwIYSm6ro3wY+Nwv4miHrlCt0hrqkF1sN3AznsEJTF35X JdgZ9KZoR7MgMVd6J7VuPI5Z1lF0qFqVokQm/L99RF7aHKv4RgxqAy+e9oBaQjNMO4q4 79mXqy5rNPqWN7qN0x063M3zq7nHbT/EZK/vEzn+sVFIR/AO3VMc0CdaFNMiYXUwsSIK LM8DKHEokanvBMnKs5TsJpzsvZ3QwxI8t2Aa6uUjMMugJS6kDXQYvEUlkZAeMovnXrmK oX3w== X-Gm-Message-State: AC+VfDyXjmfhF83g8fupkOQ5+vgC4tl4ue1wU0uzYCdD6tPna4h8lu4B uA2zBDvoq7Ry89yVn4PoRY2TGQ== X-Received: by 2002:a5d:4c4f:0:b0:309:49e6:d1af with SMTP id n15-20020a5d4c4f000000b0030949e6d1afmr10455204wrt.2.1686746928789; Wed, 14 Jun 2023 05:48:48 -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 v13-20020adfebcd000000b00309382eb047sm18303481wrn.112.2023.06.14.05.48.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Jun 2023 05:48:48 -0700 (PDT) Message-ID: <694a8e47-b478-7ca3-006b-b0972bf7e0a6@linaro.org> Date: Wed, 14 Jun 2023 13:48:47 +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 5/8] arm64: dts: qcom: msm8939: Fix regulator constraints Content-Language: en-US To: Stephan Gerhold , Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Li References: <20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net> <20230530-msm8939-regulators-v1-5-a3c3ac833567@gerhold.net> From: Bryan O'Donoghue In-Reply-To: <20230530-msm8939-regulators-v1-5-a3c3ac833567@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=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 On 14/06/2023 08:16, Stephan Gerhold wrote: > The regulator constraints for the MSM8939 devices 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. > > Apply the same change as for MSM8916 in commit 355750828c55 ("arm64: > dts: qcom: msm8916: Fix regulator constraints") and make the voltages > match the actual "specified range" in the PM8916 Device Specification > which is enforced by the RPM firmware. > > Signed-off-by: Stephan Gerhold Hrmm. I recently found in the schematic the following table. Supply | Default V | Range V | Rated I | Default On L1 1.2875 0.375-1.525 250 N L2 1.2 0.375.1.525 600 Y L3 1.15 0.375-1.525 350 Y L4 2.05 1.75-3.337 250 N L5 1.8 1.75-3.337 200 Y L6 1.8 1.75-3.337 150 Y L7 1.8 1.75-3.337 110 Y L8 2.9 1.75-3.337 400 Y L9 3.3 1.75-3.337 600 N L10 2.8 1.75-3.337 150 N L11 2.95 1.75-3.337 600 Y L12 2.95 1.75-3.337 50 Y L13 3.075 1.75-3.337 50 Y L14 1.8 1.75-3.337 55 N L15 1.8 1.75-3.337 55 N L16 1.8 1.75-3.337 55 N L17 2.85 1.75-3.337 450 N L18 2.7 1.75-3.337 150 N So let me see. L8 2.9 = true L11 2.95 = true S3 just says 1v3 but, I take your word for it on the multi-meter measurement. S4 says 2v1 This patch looks fine Reviewed-by: Bryan O'Donoghue