From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 6DBAA516154 for ; Thu, 1 Oct 2026 12:47:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790858824; cv=none; b=fiKpYHTpuHUZUW3APe1h15HJSlXx1apV/AhY30pFia7R/5vWaQi5AkbCqC3c82S1nv2vVQk27HSlWTmABkFHUlB/cZ9BwnIma8iukoG5JS0a3EQoVJJ0PApzvsxujkd0MVjiT31dEW6xz0FIuvfORMzbe9UOHQKyp4mM1i3mwc8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790858824; c=relaxed/simple; bh=dukl1Ljyz/HQATlIcbIQ+m05MS/1fL9Uh8qLiZk8FkY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=I+P8iPp0ysG4scCWJyLWSjlHjU7u6YqSADcDzvuMV24hF4PkZ4kZVB2OFoXwWtsTZvzwkI2iU3lpS5uxX5Cn2PhC62/mgv9E7r5LcFjQ8qKTktT5UjNk4G/Z3Y3uVhND4m9cl6PwdddRIRGfztKKWx2PRG7/NLlMlhJ6CbMy2qU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=Xzi86fjV; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=F5aa/ypB; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="Xzi86fjV"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="F5aa/ypB" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 691CPcHv962496 for ; Thu, 1 Oct 2026 12:46:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= GqljWHmubT+QY/DDdNs+Au/WeKxBS87FKchbCGNuj3M=; b=Xzi86fjViShIkO/Y cOlkGwCFgWRKObawzPT0yQZcV1ku3jbjQNxJ3UNwu22Lu7FFX7k/zaC7pm//f5io AGre6/tjv66WWFH5xQP60taQCijh2Va5+z/rL5zi/2Na+ZSN28A6puKDkBKUEefh mp3uuaGVY8dt8qzsHY8TVJNTkI+2NX72wMZOGTD6aH8WQyl1i2o0XOq3LRDEcf3I f1lFA3fEU8u9XlWnDWwUksBfnyVGqPhBmaxB+wS2snZFWPt6AvVQyf8L+JCjLpeo lBBplUgPUZYCVSwpMlCDx4CdSNZE8SsB6nOdkRCjZ+p3l4DtQBXLgmxlwrKWDr0Z MprhVg== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4h16wcv7qq-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 01 Oct 2026 12:46:58 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-395543dc382so6916042a91.0 for ; Thu, 01 Oct 2026 05:46:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790858818; x=1791463618; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=GqljWHmubT+QY/DDdNs+Au/WeKxBS87FKchbCGNuj3M=; b=F5aa/ypBupayPqbIGKl8TbEuE5quiRI/eVNHBa14YjPZvxP1wGVlr8X0M3YLs/tHk6 +viFQ8o+LNURFADfoBUXudsnuGAYOIMxkvfIi8JMfyDWiEcMCeyDb1ZG6POvoalujVQL ngI+8T0hOYDr1mmxW70SC1Z6DrdU9ceIb4dSTWOXEtLtCGMHNx55ikQgsvHu+69nSmF3 +wWLe2xIEoiuUPEAWGgKCwocWLeocbFAj75R0NLIskvR22XIeii9KdnePJX3n7O0phTL l+PrjcByDImu2LFe51CKLVuXDEGN7o1xUrL4BMmro6BbbIIjV5Rf9bp0V3QmqpE3e5Rm UE8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790858818; x=1791463618; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=GqljWHmubT+QY/DDdNs+Au/WeKxBS87FKchbCGNuj3M=; b=oECSuVrj3wzsp3mDGsxqk7BOeGfwdUUVHcIPhumG0EbN5uZ55dEopsTx2b/bG8qUs5 otEgdEtx9r2ubxeK1RlYqeIktl/XGYDDq6M8Dux+t6ZChqMg052PNFyaugh0sXs5Zeof Rc83Rn9bibRE312iNc3Y7yYe8m5UPs7kwdGddmdJrdHDc7b0Q2ZpOeGdZaYD1ZbXPTSj 9N6R8rgLSKAHSygPfPmKc2Zp9ff+9prilnGmq1koGztIrs/uZ8hwEoDfApYT93A7Qloq sdlb4hsb0Nu+yYNz3VkfeZyrKAKcUk9w4k0H8iRUlL3QD+wAggxj+dMsRqDu4qMaFEHD lbGg== X-Gm-Message-State: AFq9FYKmYGYyv9AvbSbkAFzWxo2Fui/IJCRNGNEBYH9hHbpv9xt+VTk6 X9gsi6z2r8O/ChZWyFGlQAGNk4kmQr3/4BcCqHA5YVarsy52+D6mwKRYM+qmuOCdkcDjEKdY0Ud ip20bCg+Jtwj431cKtigNFqUmP2oGFYpX2zY5emTmMzZ1LoTde4SMs36muyOs1evq8AU= X-Gm-Gg: AYBFou15ho+YEo29mBtRzw1T1DGxJ9Ri/PS8l/5+L0aGLaA2VNjqKh4amsJc4M/AilA VjH4vYFfgAiGDQZOLRvgJwsA0GA2EDeSWjAEDFnewyJ5QGfT9ylShH8Yy+kazFs2QrQsDfnwqG7 dbSfRYh8m4L2XKjYvj5bWyiQVELSp7NVkp5QuR0lrYnFuFAzmVSWtScMR+QHIUlNs/vNZKFqgNF FzmL+hSxUSs5HmRtIeu9XqYXd58JCV51bcuDKO+oYmC+ZV/9jYR+36YB8g9/egJsvj+t5vg2cCt yZvFKMFep+MPwEwlA0MV3Eb0SB46FTESnYUFxpAlL+FYiT5/N1pCXmqxCWkugvgOvg/K1Q5pzbQ 88V/OfAEr+yPoBRHmIt4= X-Received: by 2002:a17:90b:50c5:b0:3a0:c717:2db with SMTP id 98e67ed59e1d1-3a4d1534cb9mr1845988a91.27.1790858817744; Thu, 01 Oct 2026 05:46:57 -0700 (PDT) X-Received: by 2002:a17:90b:50c5:b0:3a0:c717:2db with SMTP id 98e67ed59e1d1-3a4d1534cb9mr1845973a91.27.1790858817203; Thu, 01 Oct 2026 05:46:57 -0700 (PDT) Received: from [10.213.109.130] ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3a4f479dc9fsm4567467a91.15.2026.10.01.05.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Oct 2026 05:46:55 -0700 (PDT) From: Jishnu Prakash Date: Thu, 01 Oct 2026 18:16:29 +0530 Subject: [PATCH v4 2/4] regulator: qcom-rpmh: Add support for regulator-off-on-delay-us Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261001-regulator-off-on-delay-v4-2-258ba9612da8@oss.qualcomm.com> References: <20261001-regulator-off-on-delay-v4-0-258ba9612da8@oss.qualcomm.com> In-Reply-To: <20261001-regulator-off-on-delay-v4-0-258ba9612da8@oss.qualcomm.com> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Manivannan Sadhasivam , Kamal Wadhwa , Saikiran , Jishnu Prakash X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790858803; l=1514; i=jishnu.prakash@oss.qualcomm.com; s=20251014; h=from:subject:message-id; bh=FWP3PelIkgib5aeKAAfKPek7G4zEKRyEuHJz2tWubsI=; b=NCKe6DqW0jrdBRouJissm4D1foiw3igKo8u/iGZc8LyD/ZrM3lj0gnz1obYkO+hvNG2UaZfq4 ymgvHQu1lhCAd7KfwzJwA7v1kIuYkE5Fk9Rgv314FSl2no87KjtgqQo X-Developer-Key: i=jishnu.prakash@oss.qualcomm.com; a=ed25519; pk=g89pXdLVwRjdTeQ+uX1QzvBO346E3hQAc1N7fcTXgmk= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDAxMDA1MCBTYWx0ZWRfX8/WjdBnpYDf5 QUXa5HfvEF8nZbCYHRDcvF10lRQtsWpi43PEJQrKKTL5ejqY0wHq926AlXVxZtRN+QHoK6p3Kkd d5o519YhvMnJmIXmwmOMccT4RaDmKiPWeVPq8dAKAyMZShAzVrvZ9hfSs9YqG6uvfiHX9ZgmZ0D I/PlMVpqb9toeZjnBgUPbExonFd21V0fDPTZ7VbB7sfkymwZYvtIu7EJzoYLhDrZZ6wS0EOqr9w dj6CQDxzk7BKN/wLZ9aKWzx9HsOk5tf3MxmyAtDxxgUITRA+nJofiEyU0jMV5aw48afGppnOUci +PN1sytgs8nyvWXSU/swG+LNYFOEZ6vgjX1DudS5xg4jl7NVVdLJOBc74jQjEx8ZW2XwSS5y2Se WA16KU1lPIeVFKfnB5h+lnBu+UyxOj222Aj0tPtMRyjtOF8WNHXvVLFPq617ymLjHCrm5IOIOZW VF7mV/ckZpormSIzKSQ== X-Proofpoint-GUID: Xm6YPN-N89h2kdpXUtc1RGfdC4uEqpK0 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDAxMDA1MCBTYWx0ZWRfX+v7dXPm8jDWD FgZuuPUa0bxUFfUxix1u9dQWH9HoXq3ZeJ4W6kLhnS9Qzc8pRzqHd9pfPZKJAHeShdG2hLqHujr UlIu3byypPT9hLLMW3mJwCFXmmvG0oU= X-Authority-Analysis: v=2.4 cv=S51MU4sP c=1 sm=1 tr=0 ts=6abe5642 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=l1sNW-6lZsdIc3Gx828A:9 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-ORIG-GUID: Xm6YPN-N89h2kdpXUtc1RGfdC4uEqpK0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-01_03,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 bulkscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2610010050 From: Saikiran The core regulator framework supports enforcing a physical off-time via standard properties, but the `qcom-rpmh-regulator` driver currently ignores them. The issue is platform-specific: The Lenovo Yoga Slim 7x (Snapdragon X Elite) has large bulk capacitors on the camera rails (LDO1, LDO3, LDO7). When these regulators are disabled, the voltage decays very slowly (passive discharge). If the rail is re-enabled before this discharge completes, the sensor experiences a brownout and fails to initialize. Add support for parsing the 'regulator-off-on-delay-us' property from the device tree to enforce this physical constraint. Signed-off-by: Saikiran Signed-off-by: Jishnu Prakash --- drivers/regulator/qcom-rpmh-regulator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c index 25c14de3cd8b..4773034b5d42 100644 --- a/drivers/regulator/qcom-rpmh-regulator.c +++ b/drivers/regulator/qcom-rpmh-regulator.c @@ -552,6 +552,9 @@ static int rpmh_regulator_init_vreg(struct rpmh_vreg *vreg, struct device *dev, vreg->always_wait_for_ack = of_property_read_bool(node, "qcom,always-wait-for-ack"); + of_property_read_u32(node, "regulator-off-on-delay-us", + &vreg->rdesc.off_on_delay); + vreg->rdesc.owner = THIS_MODULE; vreg->rdesc.type = REGULATOR_VOLTAGE; vreg->rdesc.ops = vreg->hw_data->ops; -- 2.43.0