From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 940822E7F38 for ; Tue, 27 Jan 2026 17:28:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769534884; cv=none; b=K2XKVzkWGzQSjbqtrmWERphaQ3MN+IiVOhPxeP2JI87w9lVNDYxO7YlYoZTbfM9kKHmPEJGQpYI4iGrFWQdoaYWsxHpOYL/fgxrnGvxJCgnUV7F4txS86jHvV5nIVxmiuiozCiue/4DgABvL1JZqgXbrSgKMl07W9wVyU8WvZA0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769534884; c=relaxed/simple; bh=ZgbjsRQaZkMn/eY4Pk5OG989f5WZ+l4huWLDB761P7U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d0fPgFZXaMTEamiq2+WDzhMks3nrg+dw5KKnd7yPpkSbYh4d0crldQCS1DbnBnKJnMwUzXqy8fPuPCl/lXmwkEfaloWY2IBOjP06YrtlBKxTEULIjsGy5I1AgYg2lTSBAJctShAMhlXLHMtpG4Zo58icpkd0vU0mi48cAlrNSIY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=HsmZvTKz; arc=none smtp.client-ip=209.85.214.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HsmZvTKz" Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-29f30233d8aso39902965ad.0 for ; Tue, 27 Jan 2026 09:28:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769534883; x=1770139683; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+kHFJZL4+wf6/6BWGMuGuGBaZXyBWszDT6X3i/a0Szo=; b=HsmZvTKzvOBiiFHXWA0anx0tv8QEvsjL9f2EO6p35uf5BFp9NGWntAAUIpY8aCQ5/O b8MrUxHJVyEP2llCehk/V4L4FIPgNdQufTOt1gDYwH9Nt05IhI6s0dhg4E7soV6DXSwE jkhzCMGqfHvSdFQgbodZcBOD1Na94q5WgSjCYqqx25YtntN9e09b/xQRqYfrBBg3gPBa Tgf8oCoZAv9Xv9PbVR7boD5As+fcvSsTgUH9EPKaMyc/tReaeXlBHZTXWNb0kO93wD6m J30tYfEi8efGSpWmqMYI3bTLg7JCB5Ys306Q+0kG9J+KtdARZC27fGF2F+N7ZXj5Nak9 U7hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769534883; x=1770139683; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+kHFJZL4+wf6/6BWGMuGuGBaZXyBWszDT6X3i/a0Szo=; b=WVNTHGIkALY9o0nG+a+NPeqWBB89kI1t5sjUgj3mnicIo+c0KDuGcpJedUeAZlGjXA QgTILTlT1HN0Vl3ymptAry3NrnVUm0krsmAUhx6jmUt8aQtougTLbF6dXAYHOKXVy4m1 Oo91uagbTO0UM7lt2giLB6QO7CNNLJLWOy7Kt5Qg/r4P6k7HKlLkIEXHGREMGP/EQNDz U8ylhOygyaaIg6g6OiybqoZuGi0kUCohvZ4qziDxBmUqiHp2EYd9AuP39E0SJkcxbqkB QWUwh8w2Z0arxzMjBdO7OIQoAt5wCbpIFFo4i+p36Rcc7JnF+AEUVn5Lt3KerCWHs8Je /oGw== X-Forwarded-Encrypted: i=1; AJvYcCWmrKA9YvIA02QAE2+SJ+BbtSvKTCJeo+svR2BLn5sXqQIWdJeGIyLydAKCCt+tQ/LVl6B9e6JIzQopKJM=@vger.kernel.org X-Gm-Message-State: AOJu0Yz/xGBAFwItofDIaeLkiS+mD7U5RoAEGN0cap3mxjhYpPZRAlTx sWVh/GZ/+VpkvdVthN2fSB1FzmTuGi1JNFZUJLoZ/6Fus5sl7KSL6+tikppSUG89 X-Gm-Gg: AZuq6aI1K0lfC69v8KSH2dzjYviYPIJK928ygsldgv2amty9RYezq4pH+ypnqY5HkCx EGSJlgetfdFd0RuY+jwiX0wml9zCtzoCu/8n7X7A/A/kMrKRpCUSUMkQUe5nDEadj/jPTxhcmGW OCDhAOWdeiCeK1YhBXmdazOITtVhTwHTQUKi7I0NJTyrgZAyEexu5iGXeHqJ4QmfelMOhr+tCfP 2D2JRlzth9I/CEDVjBg4LLyN6eExph80tk1vEpY7ybnnKE+tayq5Z+HjwIgZIEvLYbnigGibTYA 1JlAtEr5SzbY+qZcp8f+6qMUk1Zgzlz5sbz45434Jpzr/C2cotUPBzgDLARWPhwgTkvoTmVeEVV ZMAx+KdUKuXS/9Tf26rTFrS5iib3C7u7B9fXVCNt7hU+aU9wI+tNAyqylEuOW5LqOBXAdHohlD9 XECJIOPCMjzJxZIFSka0Y/umfPLZT2ewlkrG4= X-Received: by 2002:a17:902:c945:b0:2a7:9163:8e68 with SMTP id d9443c01a7336-2a870da119dmr24070975ad.6.1769534882730; Tue, 27 Jan 2026 09:28:02 -0800 (PST) Received: from saikiran-Yoga-Slim-7-14Q8X9 ([2402:e280:3d17:646:d29a:ea37:2567:751]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a802fad770sm125058905ad.67.2026.01.27.09.28.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jan 2026 09:28:02 -0800 (PST) From: Saikiran To: broonie@kernel.org, lgirdwood@gmail.com Cc: andersson@kernel.org, konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] regulator: qcom-rpmh: Add support for regulator-off-on-delay-us Date: Tue, 27 Jan 2026 22:57:56 +0530 Message-ID: <20260127172757.75221-1-bjsaikiran@gmail.com> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch adds support for the generic `regulator-off-on-delay-us` property to the Qualcomm RPMh regulator driver. The core regulator framework supports enforcing a physical off-time via standard properties, but the `qcom-rpmh-regulator` driver currently ignores them. This prevents boards with slow-discharging rails from enforcing safe power-cycling constraints. Motivation / Test Result: On the Lenovo Yoga Slim 7x (Snapdragon X Elite), the camera regulators rely on passive discharge and require a significant off-time to drop below brownout thresholds. I have tested this patch on the Yoga Slim 7x. When the delay property is present in the device tree, the regulator core correctly blocks re-enable calls until the delay passes. This successfully fixes the camera brownout issues and allows reliable sensor initialization during rapid power cycling. I am submitting this driver support first to ensure the mechanism is available. Once the consumer nodes (camera) for this board are upstream, we will apply the specific delay values in the DTS. Saikiran (1): regulator: qcom-rpmh: Add support for regulator-off-on-delay-us