From nobody Sat Feb 7 18:21:00 2026 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 17681279907 for ; Tue, 27 Jan 2026 19:02:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769540546; cv=none; b=c9KkCxZvavB5uVxHUZ5HTCEXAQabnCIhSHM9w8mCmjgeu+347pNsYmrjnLx3hYksYQSkI0UX/tbe7AgMDwgzxOCrlBWffyDz4culeukWe0GT1+nLV9KJrcFGuGv7B11FPI0vHOq+zhivN2AgZKt3GfzHQHjIBFzXAmNXn5Jrd1c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769540546; c=relaxed/simple; bh=4od2Zsrw8MKqAx0Tj0P4A1rKNjPVcZnSN0Q3Dj9DUDc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TN4s8DK0ch9wwx93m92xh5Cj4xj8ZXg66I4CeGEBYtE7yQHXzZK1K/vNEhN4jfSB1Q5IaT4JuvhtMbnC6KvugKp+K8sjchx+CVyESCon6/pEiDGya20pu5aoua6RfAfbhcmOvMwPYChwnvij9YrZC2CKLF871Xoan0hog6ji5Nc= 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=K1BYROVz; arc=none smtp.client-ip=209.85.214.182 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="K1BYROVz" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-2a7d98c1879so34785185ad.3 for ; Tue, 27 Jan 2026 11:02:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769540544; x=1770145344; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lEzmMy+VR9Xc34VYDgQek5eZk7wdXPLbQFrTaMwdat0=; b=K1BYROVzNG0hX/fb55qhnYIgw2tkd0Ty77b/cBtWSAGZ3zGpO4RThKWaKi+qnWwnHJ 10ckYL2VsFYI/JQEhEcHuJLh7ujepF39sGHL6dR2c2mV1WxCmv9Mx837d+qKm6EBySt0 AL5GsXXwRiN8WXtTM7/EtUTm1JoZsvzYJFbjatrwlycKBOppR0Qa7DrRtJ23vytQYnEj ewM4+jD99LMEwNKkv91ByktKZHuALZrMzF2wZAYoKEYaoW2/Ias356IrbQYwMkMTm2Y9 bZYnY6k+d00C+P6BOB8IlqcG5NZZI/r9SOQGLrEM1k+h8RCJkYDadpFkvU5QqAoBWTzm wK5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769540544; x=1770145344; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=lEzmMy+VR9Xc34VYDgQek5eZk7wdXPLbQFrTaMwdat0=; b=swc6Wt9gWzTee0J7yTzAO/LJkqbI7gJYNBtSf9Lk25jAZSue0yxUs0CFKuMS7zZyp3 ze8xiXa3S8pj0rVYouWfepeonGLSjdmcOVIT1usWPQZ9d4+GRc3zpLu1JMggrd+uG6Cu PDXP2L0paAagw3ClSpM7vaeF03Hur+hvkVPkr2McqdJQDdE2bM4D7XmVXiVn7jhB1vIi P67OjoXguRUvPg/cX/zkU/b19FGX9lbzmr8ut2IctC875fxJC8L4kfxoeCNTlf9lgxWB HUxmt5H7ZCMLkOGxUD0EIwuR8Ow9D5jJVHzquB2t/lmoZdE3wnf2RL6nmp7RcfnNQeM1 c60A== X-Forwarded-Encrypted: i=1; AJvYcCX9KgPB7GSjOdQ81GlYBXIROxF5BeuqGXJLTrueiFZRFGwoZfSjH9S5/tLPFh6LnBrgr5P8Rht6Lng3Efc=@vger.kernel.org X-Gm-Message-State: AOJu0YzRY/ohybTASVHc73VW0T1Mi0aQWsmUNpMoeGvhofiDucHOJ0gb SqFjzg+oc8+SnPws70aJ+vszVw5nCbE+3srEsQTUPwRQKG9C0z+QhFxp X-Gm-Gg: AZuq6aIS5RoIEP89eRBhmdbjO76VNL5E/faiWPJ1U+UprX4jwfPZpr9yUHLclEzRqv2 00Sw8vHahwMGz0vgqvqSJqCaIW5Hekg8koStL57pgXzMswKdnd1cjXqg5e19WD721ScmKS03Mf0 d+AlBQoLZ3AT8wchzeYkJaSK7+ELnONft2iZkmCi2Qqc8ub1KvY6nrPRArIyHMauyoWUU62+K91 0bZ08fzkZy1kYTQ1u4O51q/jDDvwxSoADhQzpoRPqdnkkEszFQ4tXIMmzz9TcNK7zkJHAbLBAvy oLA4dXtwu4rh5TfAuZ5CLbJD9t3lB/81xSjnvryQcwtHMDGZRc3G7NLd7idZprpnANeBoPesc/c lLS2JaQqoLcsyPSb+kOUVfx/ujUeQsfEKot71LEs4HrGPEQHCb8dFLIZF/gETkfg2u/nlTArNjc hSkhJa8oGAgW/4V68jiBZDixUlxi4BtinFQ0oUQ0y3+lzU0vg= X-Received: by 2002:a17:902:d2d1:b0:29d:9755:9bd8 with SMTP id d9443c01a7336-2a870d7b6ddmr23896415ad.22.1769540544233; Tue, 27 Jan 2026 11:02:24 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jan 2026 11:02:23 -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, Saikiran Subject: [PATCH v3 1/2] dt-bindings: regulator: qcom,rpmh: Allow regulator-off-on-delay-us Date: Wed, 28 Jan 2026 00:32:10 +0530 Message-ID: <20260127190211.14312-2-bjsaikiran@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260127190211.14312-1-bjsaikiran@gmail.com> References: <20260127190211.14312-1-bjsaikiran@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add the standard 'regulator-off-on-delay-us' property to the list of allowed properties for RPMh regulators. This property is required for platforms where specific rails (like camera LDOs) rely on passive discharge and need a mandatory off-time constraint enforced by the regulator core. Signed-off-by: Saikiran --- .../devicetree/bindings/regulator/qcom,rpmh-regulator.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulato= r.yaml b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.ya= ml index 58bb0ad5dda4..b02311263191 100644 --- a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml @@ -131,6 +131,8 @@ properties: $ref: regulator.yaml# unevaluatedProperties: false description: BOB regulator node. + properties: + regulator-off-on-delay-us: true dependencies: regulator-allow-set-load: [ regulator-allowed-modes ] =20 @@ -140,6 +142,8 @@ patternProperties: $ref: regulator.yaml# unevaluatedProperties: false description: smps/ldo regulator nodes(s). + properties: + regulator-off-on-delay-us: true dependencies: regulator-allow-set-load: [ regulator-allowed-modes ] =20 --=20 2.51.0 From nobody Sat Feb 7 18:21:00 2026 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 0FAD032C306 for ; Tue, 27 Jan 2026 19:02:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769540551; cv=none; b=If11NEpte1vYC31bZgWylSZWFCn05/dcx5yV8KxJOV3e7w+4Dm1va9XifzoE35ZsWBerIrh26LojrhfdijRA8ZNI3ILoPFvRQwjlSkYcpSRp9jy7M6gyTJr0eBHpfjjGAQ4JEYSueq5j51g0NW7lNQMARlrXLkci7tJICjVqm1I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769540551; c=relaxed/simple; bh=067vjQ95YiJmSTxarxB/jUcvEJrOjHt9gS+NBCpSPr8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FhGsKewyXlq5nHUlwz5YHclLsgcx0+O6XC3E+XHSA3bCpnqUoakkw3ojXiQq3jg73es306qUJ0DuAt/z5wlmF9pLKa6PFjWfeFAhDoT3YAwuFkJqH1xf+SdQVoF7ri+WGFPKrLY4OpuUSIinkLXRlaTqqRFwg8GugNDLCeY2Wjc= 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=lxdiPK0k; arc=none smtp.client-ip=209.85.214.177 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="lxdiPK0k" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-2a0834769f0so39682905ad.2 for ; Tue, 27 Jan 2026 11:02:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769540548; x=1770145348; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ntt2rfV8hMto7YcInonRn0opftxJUWY1ejh2aUP7PTc=; b=lxdiPK0kGgKsVlvhdQgi3WjpNDsMgZcnJjEGjzmuWnbcV6P+DFnXqKkK3U5CGdEAxO 0GaUlO73bU/MXkzplhRv+t/EDHwkIZhh0kVD+LYa+2kp4UszIiOYdbgzdrUNglD0Z1RG gQt8uPRqFNkmIdhzetGG7yDKIVRoBVGufFZ1FGAIBU6+h9Z68qO0Dl+hhtEN2IaQz4dC ZYqImcB8Y3pibthX6nc+TXo2oVoRTdx/Edww6Ur8BCLdb/YMJ/Bm2TqvvzlUdfRmv+2h GARyib+m0ZGeR8ZDC+Utxrmt7SdtPWpvQIJ8mUXWjIrOKCfLnL0JblS7bZmnvohtdT9H JhaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769540548; x=1770145348; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Ntt2rfV8hMto7YcInonRn0opftxJUWY1ejh2aUP7PTc=; b=kn9xInBX3lSnDJh/+r98tGup0dwM/+rbG/AwL77tgw5IEsG9JPm57QHAdb7AouBSBB t6gvXf4hiuKo27nlH39iZtRbfocrnfmOUyy/j2q8TLxg7ZhQ5tw/gMS5VXaKGQmp6Bvx CirsWmlW2BXKRwjbfDM6SBZwI90VbKrG6tClkobzyn3bLTLsC2QLRI/s5EEb6AeRcxqs brfwzx17uGyOZwTpdZADqG2OiuBVswj5RWGfOtDllsoxUtZcrWsvW35BRN3GMbxjSNkm /mAfNYGQgQHM7VGCNGb4MRauxhFQ+CLmMrjsvmVldrd6s1DEKKX+QmvhSmADxaP+Y7MU v8XA== X-Forwarded-Encrypted: i=1; AJvYcCV4pU9jIXXSosB0wX0fKfPDwo9qqhf60q8LJG1/7fsRPy86msFcOUbNpl07PKZsEamuocTwVNRCFJee5Cg=@vger.kernel.org X-Gm-Message-State: AOJu0YzzVM/rzlbb41bDRAmJ62V1T2ONP1I22C4eYQ1o+gCOYcE62Qqp GAZCttFNHm6mKtQdHTSWCu8jfox0D1tPyWBNmHwtsALA2hnfIWdGP4PP X-Gm-Gg: AZuq6aKa9m81pJLLDYtzA9dhf0ZuMbBfTtwHaio0lxf6hGU3vD6tuaH+1SfSz1pQPT+ mHZc9K72zNffpoQvEyMwogxSLHcibXqaiGJIGb+LsDlJUlaq36lOxoGFMwqkW/po7orvwE9E/Bc BtnadCnGzQOhzGlkV8E7+kGzrOhO1/dUiW4Rgmfo84pxfjfR5WfvQrATJxYS74IFsKzf+Z0clCn yLkiVg3s7Wr+X4wdJ+1Z2/tCb/nBnZ66fo6w5KSYDjW3VmiTSjtAVlKdU7Q84J/IdyMMHlcQH7e oWhhRhrmH+tNskxwxQsqWFwSsZM+GXmWf8d+X/3kSgQF4bZpwzD2gSk3Zjt1wS4Zvou0uoetdPn YKMGx7J/m71GjDAy0FtdFy2G+aLhL1hDP07MRwi8MKMKIaMBUgREXGgHvoNHYLxiOe61AZptKXq 8uvqrhXpzMRsAHr2/BZGP2U4QpfOzQEVGtTZoF X-Received: by 2002:a17:902:d4c2:b0:2a7:f369:4de8 with SMTP id d9443c01a7336-2a870dee533mr26178455ad.42.1769540548235; Tue, 27 Jan 2026 11:02:28 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jan 2026 11:02:27 -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, Saikiran Subject: [PATCH v3 2/2] regulator: qcom-rpmh: Add support for regulator-off-on-delay-us Date: Wed, 28 Jan 2026 00:32:11 +0530 Message-ID: <20260127190211.14312-3-bjsaikiran@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260127190211.14312-1-bjsaikiran@gmail.com> References: <20260127190211.14312-1-bjsaikiran@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 --- drivers/regulator/qcom-rpmh-regulator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qc= om-rpmh-regulator.c index 6e4cb2871fca..aafba61551b3 100644 --- a/drivers/regulator/qcom-rpmh-regulator.c +++ b/drivers/regulator/qcom-rpmh-regulator.c @@ -503,6 +503,9 @@ static int rpmh_regulator_init_vreg(struct rpmh_vreg *v= reg, struct device *dev, vreg->always_wait_for_ack =3D of_property_read_bool(node, "qcom,always-wait-for-ack"); =20 + of_property_read_u32(node, "regulator-off-on-delay-us", + &vreg->rdesc.off_on_delay); + vreg->rdesc.owner =3D THIS_MODULE; vreg->rdesc.type =3D REGULATOR_VOLTAGE; vreg->rdesc.ops =3D vreg->hw_data->ops; --=20 2.51.0