Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp909659rdb; Sun, 18 Feb 2024 19:07:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVa8HzCELG4pxPiLATYxYgLwkrnZ1RFAhWuD/kNAnEL15QmJ7BRUI6oZTcFi8ajnWamlyTv4cliyk7YW43wAlCIeg5Qru8uIgeT92mgfw== X-Google-Smtp-Source: AGHT+IEbLoxtdSxKRepDF03WTqTGF/j5aylfYyfMHNyFff6IsMFlk3A984nGm7Arh2N2SQQU2rlz X-Received: by 2002:a05:620a:8d6:b0:787:1c36:3be8 with SMTP id z22-20020a05620a08d600b007871c363be8mr11821350qkz.19.1708312046821; Sun, 18 Feb 2024 19:07:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708312046; cv=pass; d=google.com; s=arc-20160816; b=N229pOoNTllcNsq9IYZ8isI/UzmSEeaBQGY27CRH+rHrjw51fE7meV+X7uoyO88N3L VxtpR/7plm49l3/4HRkkt7UDBKtfBSh/q8SJVj5T/ZzjOB43hXmMfdyUZUV5rVroKg0a 434nb3+9XAuA4UpyKluD8SHbEP2id4VkriBxUkBuf0QztwymB/AdOm5SC5UUXh3mGCh2 gabWsQ3Wd9/RdMOgB1Ya5rcyf9EzxWhly7OcGcCvO6bxEEk33R/NMiNyA6EYAQXnLSv1 YDGb6Z/x1T735+w0y9Ebel0mb+fGvwaevUm+yiq49wha9v/Zw246cqPvxsWGY3mmGFPC dtnw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=n5FtCz25BpyroYipWCCkQfOwY+crHF/X3CqywesI5qs=; fh=os4EcTX0GrOnddqlapKj2nRZ+Z2fFNjXbm8DIkGHj8E=; b=UmJHNULNYL+mJsnqFsep1oWxUCcNZ8HAWT8vegOSgPxY8kdRFFNAMOB40TO4g95k0Q kEh6JI5MqFdummXvz9BqROXAFV+NpbqUO/lvEj/FeQNr9sxTpCYo4ubIhFq7usH0nDND /WE09BMZa8neWJzysYgqrVSiVh3JpPCRmqrom2EsBzqxJMxu5Rd7rOWTHo57DKfGI7o3 OmkWCOtJ03txGTARMFhmZFJqgP4SMJweGKJnT2tPXATLM8uawNSBz68iCokRqpxJmpq1 x9RuJB15IYXFKe8T/9IYpb5nX793tTvEZy8RE9ButwwjmHpOdU/VbJY/QiuWIUfmmCnp 4TlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EcvGLg8g; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-70669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id xb18-20020a05620a5ad200b00783e5c0ae73si5345417qkn.180.2024.02.18.19.07.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 19:07:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EcvGLg8g; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-70669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8B3751C211C5 for ; Mon, 19 Feb 2024 03:07:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D5093FE1; Mon, 19 Feb 2024 03:07:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="EcvGLg8g" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A53220F1; Mon, 19 Feb 2024 03:07:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708312039; cv=none; b=l1Z1SDGBvUp8G7OZZc8Q69yFfhEd5YIlK36Ez/a94ugxCe97c40Ie0Bfnz8qcvUDQYkLJqNGL6L8uV7GT5gGtuPF64yfabVTWAbwtvpqlXTQbHRFcq2izW5/69mrUHn0V8tNiZMCL5Qv+ozDnlkTfyMBSGQYEeUvOerMzt1eSfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708312039; c=relaxed/simple; bh=XQeH4obCzIwDVNOBuxCqI+SricNPqRL82HPK4fc4/jM=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=Rnhrv8l82mRBk7VE8raXDeyYOLpC7r9z7uh0Za/P0JUq15XW6CmVfyaef0q6ZDtnk+/OCb8VMOXCdqlOtYuqGbeWTMN+AqeHFKauzMkQ3GKeAzeP0Yg1+huF7QnyP0N1BIJLwaVc3UPcUkhyDSgSGmvMQ29H7xUGrsDlCuCIx40= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=EcvGLg8g; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41J36RFj023496; Mon, 19 Feb 2024 03:07:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=n5FtCz25BpyroYipWCCkQfOwY+crHF/X3CqywesI5qs=; b=Ec vGLg8ggIXW+MJIiT2R2IXhKEkgD/b1VrkHDl2PQnisyr1xKFerAa3n9tfouJZcf5 6hm7sDkLgDmiInOi32qfafC5FDCq8XpQ7t+xx7D2UqWMjhfe8GAuLN9y+/ifKaOW N1Wi0z0H1i38Yb+ocrWlwNRA5wlbkLSaG77iQHMARFzYtwELlor2Kg/5tJtEAKin nfnbTvv5PeOLuhAE6GJWLEd235RobDhZTwE8OYOe6aSZ0GAyNdMhaCNXZRsArlkk M1iT2eGYBWqW6x5AlNAe03VshgxA3y5/B8KbrHFJXReQ8A5nnH9iUMF+PEqwylRT FUbR8ytwdopio5mI+Tdw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wan17jkqn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Feb 2024 03:07:13 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41J37A1v000567 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Feb 2024 03:07:10 GMT Received: from [10.253.36.30] (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Sun, 18 Feb 2024 19:07:08 -0800 Message-ID: <6f6dfaa2-f529-c9fe-7dde-402c92f0daf6@quicinc.com> Date: Mon, 19 Feb 2024 11:06:39 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH] regulator: qcom-rpmh: Fix pm8010 pmic5_pldo502ln minimum voltage Content-Language: en-US To: Bryan O'Donoghue , Mark Brown CC: , , , , , References: <20240214121614.2723085-1-bryan.odonoghue@linaro.org> <13baed68-1014-4a48-874a-94027a6dd061@sirena.org.uk> <3851e21f-f8cb-487b-9ed4-9975949ff922@linaro.org> From: Fenglin Wu In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: N25RXN6fofJ8BOE08JqpWMFUfdZivI6e X-Proofpoint-GUID: N25RXN6fofJ8BOE08JqpWMFUfdZivI6e X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-18_21,2024-02-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 mlxscore=0 spamscore=0 phishscore=0 bulkscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 suspectscore=0 malwarescore=0 impostorscore=0 mlxlogscore=687 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402190024 On 2024/2/15 6:47, Bryan O'Donoghue wrote: > On 14/02/2024 14:52, Mark Brown wrote: >> On Wed, Feb 14, 2024 at 02:44:56PM +0000, Bryan O'Donoghue wrote: >>> On 14/02/2024 14:13, Mark Brown wrote: >> >>>> Not just that but also note that every voltage step in the range will >>>> have the 8mV offset added. >> >>> The documents I have just show sensors attached to ldo3, ldo4 and >>> ldo6 fixed >>> at 1.808. >> >>> I don't think there's any better or different information than a >>> +200000uV >>> increment TBH. >> >> This seems like a very surprising and unusual hardware design, the >> 1.808V voltage is already unusual.  Note that this may break systems >> that are trying to set a range of say 1.8-2.0V if they actually need to >> set 2V. > > Hmm. I'm sure the rail value should be 1.808 its all over the > documentation for example when we get to index 3 we hit 2608000 > > REGULATOR_LINEAR_RANGE(1808000, 0,  2,  200000), > 1808000 0 > 2008000 1 > 2208000 2 > 2408000 x > REGULATOR_LINEAR_RANGE(2608000, 3,  28, 16000), > > And there are other rails @ 1v8 if 1v8 > > The one thing I can't easily verify is index 0 = 1808000 and not say > 1800000 or indeed that the increment is 200000 and not say 8000. > > I'll see if I can ask around with the hw people and get a more complete > answer. > > Similarly now that you've gotten me digging into this problem, it's not > clear to me why this regulator isn't just a linear regulator with an 8mv > increment over a range of indexes. > > At least the documentation I'm looking at doesn't elucidate. > > I'll dig some more. Please see the voltage steps for LDO3/4/6 described in the PM8010 TDOS document which is the most authoritative that we used internally for PMIC driver development: Index Vset (mV) 0 1800 1 2000 2 2200 3 2608 4 2624 5 2640 6 2656 7 2672 8 2688 9 2704 10 2720 11 2736 12 2752 13 2768 14 2784 15 2800 16 2816 17 2832 18 2848 19 2864 20 2880 21 2896 22 2912 23 2928 24 2944 25 2960 26 2976 27 2992 28 3008 29 3104 30 3200 31 3312 And I do see from the document change history that step 0 was changed from 1808mV and step 2 was changed from 2512mV, I don't know the reason of the change though. Fenglin > > --- > bod >