From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (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 7CCB529DB65 for ; Tue, 27 Jan 2026 19:02:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769540540; cv=none; b=BH/Glviqn26Y47GTLaju6qVQzqNCYFRdiNTsucNoMGOwPxBet97iAyg8sYdNq8ONajpbUkfQEuSCvTII6ejUYX+7zOrBrUF6aMUQqM4K97xKyn5XOu3R5h7Dg1XmuhXkYLXnwV9mmw1cmimDBYAv1WlJexLyjh2tj1u9dZZM5YQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769540540; c=relaxed/simple; bh=wsTUs7Ugu6sRsPCnLRugfGiJd2KbA6A3fdK52CcU1sY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=D/fyUE+UsDQGT68/K1LvRyD9xvE78/1AdaQ2S/AHM/WseEzotwWAaWGVQzKgQdVI3QYgURLvwb27oShmCiDFJFU8BqWIJT8qztrTs+n6ipSwdk734d7X2AO6Jvv9iWM1jDBpdcH8iriz2vt2wKJ81TIuQOBvMSz/kcOgUH1C5b8= 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=lfKoWLku; arc=none smtp.client-ip=209.85.214.169 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="lfKoWLku" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-2a0fe77d141so35048625ad.1 for ; Tue, 27 Jan 2026 11:02:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769540539; x=1770145339; 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=rKr/gj4p6dZheadeORZRicBPaAbBWotO+jXxUdB5K+g=; b=lfKoWLku/vUEoT73z38w/GsCgVaCGGe4qqmQO47E6w1U/U4udMd0thR3I+nvdF3fKw WvK3qHY22QGjFQCS6dHdgAvj/W8q4YUwncefnYAKg9P2tBMrKRFgNvEJLIzIFzB4A3MX lTJaMAXESyeN3SWbfAol3Q6CKEar8k0f6Vn1yqnUtjYyH7c92W0qno4DtuDIg/tmbJmi ZL4DIaKUEdJjw5oKGYZExdiIrlV5YvjrHnXzQ3KmmcnncApEgS78vj5nj6MP1Vyw1jfs WNQ4ELL6GKleIT3k1VasDTifr8X9rGlEr4uF+dahmghYO1tNkEHXURqODAyixsSOvFDP +gyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769540539; x=1770145339; 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=rKr/gj4p6dZheadeORZRicBPaAbBWotO+jXxUdB5K+g=; b=o38fjDqVkyPFbXoMrY38ysSTXqShUgcMuK2kuUBGpDkpFIpMuHAHEFJ1RjdOoe/oLj EBs3AssHch2izhtzSzhngv45hAH19Flpyu53Hju5PlpOaV6kDi6YEwihMW8odD0eNiOi WQ8KQQrRteJTccqW+jkG0kPhd1BEnuTdAXYi51Kh6WfG0jpkkPMDwwthm32YI+wWx7ft 0ozmuCrHPOtjyusszq9qXUFoFAWq3bekSgFn2dfEwsXrPrc0tu9bbivcRcVKytKAe168 MAZybO/GAoBhOaSKwnF9qOdEDjXlapJ6YZmyEHml9oQdHHrBdWeGdqxhQhXqopxX8dVw aRiA== X-Forwarded-Encrypted: i=1; AJvYcCXH2ZIH7gtCXnj/p657d8KgYa5lhyMvrLuygEL6qg3syr5eK5EYHE7Fvrh8mbpKTT+hMtqW5+av5r/c@vger.kernel.org X-Gm-Message-State: AOJu0YyyFsp2ASXjxC/FexiClvDYqEGsDwOQ6agh1GNzNRVTLg02AvoG ChMpvJl23deHics6IVYmdCVyNsY4/TeqqccLE70R2fsELx2BtpYSDPCGJ5v2EXVy X-Gm-Gg: AZuq6aKerrclL0VzGDU7LWeEj+Sx4qd4fCbOtLohmVkizjmjl0o9uejlAItsvdeNtXr lX1ykidi3A8kgqqzenlEirt+PdjkkXSGA/YhIZYJySU/PrWLkIwnMaajFz94TCSvigQMO7Svz+y THANxN55fD7933geoX4xUMaFpmoQmNNt0+fyJ91zcyXrMgzfBrOAgRY5vXIM6x8m97HJbmb/buD 5JwFXG/xcZjaz+kBOT74jbJsU7A68fmddLsCJK4QBrphGb4KpAUyilQXtGC6gClwmjUD/SbMah8 eA2VnSKx/lMkgyIQCJPIvZcxdRW4K1eoK2JM9fNhlf2mausuHJqUCvVAnEVzPj9ovhiRNaD2H2I 8g3aVdyRdAdG+rQwOVNX2JG42bLbWwKQJ+h8rrt+EgYmYZghsCdijS7gpGlpo093TuzlTigWC+A PQJ6MaDmH4Og4urnU0JkPRych+Q/47NxooKXck X-Received: by 2002:a17:903:2b0c:b0:2a0:9970:13fd with SMTP id d9443c01a7336-2a870dd9313mr22301895ad.43.1769540538606; Tue, 27 Jan 2026 11:02:18 -0800 (PST) Received: from saikiran-Yoga-Slim-7-14Q8X9 ([2402:e280:3d17:646:6ecf:d9ab:b640:78c0]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a88b4c3d4csm938105ad.56.2026.01.27.11.02.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jan 2026 11:02:18 -0800 (PST) From: Saikiran To: broonie@kernel.org, lgirdwood@gmail.com Cc: andersson@kernel.org, konrad.dybcio@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, robh@kernel.org, krzk+dt@kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 0/2] regulator: qcom-rpmh: Add off-on-delay support Date: Wed, 28 Jan 2026 00:32:09 +0530 Message-ID: <20260127190211.14312-1-bjsaikiran@gmail.com> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series adds support for the standard `regulator-off-on-delay-us` property to the Qualcomm RPMh regulator driver and updates the corresponding Device Tree bindings. Motivation: On the Lenovo Yoga Slim 7x (Snapdragon X Elite), the camera regulators (LDO1, LDO3, LDO7) have large bulk capacitors and rely on passive discharge. When these regulators are disabled, the voltage decays very slowly. If re-enabled too quickly, the sensor experiences a brownout and fails to initialize. Verification: I verified that the core `drivers/regulator/of_regulator.c` does not currently parse `regulator-off-on-delay-us` in `of_get_regulation_constraints()`. Therefore, the driver must parse this property explicitly and populate `rdesc->off_on_delay` so the regulator core can enforce the constraint. Changes in v3: - Added Patch 1/2: Update DT bindings to allow `regulator-off-on-delay-us` for `qcom,rpmh-regulator` (Requested by Mark Brown). - Updated Patch 2/2: Refined commit message to explicitly mention the passive discharge and bulk capacitor mechanism on the Yoga Slim 7x (Requested by Mark Brown). Changes in v2: - Moved the motivation/context from the cover letter into the commit message of the driver patch. Saikiran (2): dt-bindings: regulator: qcom,rpmh: Allow regulator-off-on-delay-us regulator: qcom-rpmh: Add support for regulator-off-on-delay-us