From patchwork Wed Oct 25 08:46:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 157938 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp2454657vqx; Wed, 25 Oct 2023 01:47:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEDC42ZVmdop7I+q6forNcxZ3Vf5AnW9ycbMzH8mBA+/+pebPRRAE4Vkap5Q7d+A1VPPzLn X-Received: by 2002:a05:6122:30a9:b0:48f:cd3a:108 with SMTP id cd41-20020a05612230a900b0048fcd3a0108mr10936011vkb.12.1698223626036; Wed, 25 Oct 2023 01:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698223626; cv=none; d=google.com; s=arc-20160816; b=dM3b2S9SksBzEMPwz9j1/QAY3h546T2Z7niVHTX3IEj0d6YYvCtohVRScLLJwbIqB4 fDGxT5DhLuZ3RYZCkBfbIFdDW4lPpWmN8/t7A3svDncCo9+lUTn0DB3v4gpG4Mknelag NtwsK7+EFfWvxlANrimeLA0aIuNfxfMTUGLUamnFICFkUmrGeNVR1JQoIsfUrE+xXM+F 2ucZLftHFvsr1q2Ng8M0WuS2o13JfYJSwFFquKvalH4avjy5t6Xud5R7ziOaPs0Urzh1 BSIyy+WX/XQqFBHQ9mtyMmrL8dsX2YRh3wSTnOJcAPdCL99k0+phKHILsjd93pI/QjyB gV1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=lNWz8vqnBiC0k9CGJIPqIyQGjVsIEarMBSnZUKIKFoQ=; fh=04ly7V1xWE1eBTBwtRUQiwjHX8ICozxkXNJpuSLZLOA=; b=WTuD2zoZCIH2hE8lF3U8sC67txet+nDSdJBayfxOecpP8B1+IntCK7VU+ng9r/elwl sRlvUJo2daBtHmx1EggZQGX02I351cClHm+9k3pylPOk5lwm7B6aI23KSrB8j4gV72Jd wPqPTUKY2m+v9MJLn7A2uR04BhEZVxvj30heImVkoy+FU6urvR5wuzn5wtoOsf+oo9i/ 0JB5TjBcqYaMLvyd+YeMLngGWaScvMqUhGm2eRkzdJEO8xHVAdRhgIfsImmStPIo+vbZ t11+e//7Uw30U7A7wNO1P6yYn/QuXv4WYkr6eRBmqLHXVz8YxLIjA5mymiiO8fPew9Jq MPEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id o8-20020a817308000000b00592a0701d3bsi10915833ywc.399.2023.10.25.01.47.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 01:47:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id F063F803986E; Wed, 25 Oct 2023 01:46:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234201AbjJYIqh (ORCPT + 26 others); Wed, 25 Oct 2023 04:46:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234088AbjJYIq2 (ORCPT ); Wed, 25 Oct 2023 04:46:28 -0400 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CF2D185 for ; Wed, 25 Oct 2023 01:46:26 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qvZWq-0002CF-9l; Wed, 25 Oct 2023 10:46:16 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qvZWp-0048Wi-Dc; Wed, 25 Oct 2023 10:46:15 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1qvZWp-00CyTG-19; Wed, 25 Oct 2023 10:46:15 +0200 From: Oleksij Rempel To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 6/7] regulator: dt-bindings: Add regulator-uv-survival-time-ms property Date: Wed, 25 Oct 2023 10:46:13 +0200 Message-Id: <20231025084614.3092295-7-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231025084614.3092295-1-o.rempel@pengutronix.de> References: <20231025084614.3092295-1-o.rempel@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 25 Oct 2023 01:46:59 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780716536841797352 X-GMAIL-MSGID: 1780716536841797352 Introduce a new Device Tree property 'regulator-uv-survival-time-ms' to specify the survival time post a critical under-voltage event. This property defines the time in milliseconds the system can operate before the on-board capacitors fail, providing a window for necessary actions or preparations to be taken before power loss, aligning with the under-voltage event handling mechanism. Signed-off-by: Oleksij Rempel Acked-by: Rob Herring --- Documentation/devicetree/bindings/regulator/regulator.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/regulator.yaml b/Documentation/devicetree/bindings/regulator/regulator.yaml index 5b8d55f7c43b..85b8c51f8ede 100644 --- a/Documentation/devicetree/bindings/regulator/regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/regulator.yaml @@ -186,6 +186,13 @@ properties: be enabled but limit setting can be omitted. Limit is given as microvolt offset from voltage set to regulator. + regulator-uv-survival-time-ms: + description: Specifies the time (in milliseconds) the system can continue + to operate after a critical under-voltage event has been triggered, + before the on-board capacitors fail. This time essentially represents the + duration the system has to take any necessary actions or preparations + before power loss. + regulator-temp-protection-kelvin: description: Set over temperature protection limit. This is a limit where hardware performs emergency shutdown. Zero can be passed to disable