Message ID | 20231026144824.4065145-4-o.rempel@pengutronix.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp731719vqb; Thu, 26 Oct 2023 07:49:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFg/CxNUzC/49TLjYnv2sFx8d9cLkeDLyrbhR8zlpV3d9CHSSiyvEWe9S3O6CyCQKOn8xeR X-Received: by 2002:a0d:df42:0:b0:5a7:be23:6a7c with SMTP id i63-20020a0ddf42000000b005a7be236a7cmr21471112ywe.6.1698331796441; Thu, 26 Oct 2023 07:49:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698331796; cv=none; d=google.com; s=arc-20160816; b=vCdi2NzBRXG3bwO/hASPEHao9XYkpTkGe+1aBooEffDztWunh9qRR0oTsMbxY/y/ED tlvp9xK6heKSESus6un6hZo0TrmGXPQ/0WQxQYinjhaM34lvgpRo4KaaHJl05GFsvTG6 2E2Z9GoDdk/4ksHtFwOoBgGpqQQCO3D8PCfPlGAoDZBWAbUPgc5ldXGrZ1/XD60Hc0/X dZ0fwjLnHheewAjB7x6xi8uWdFJgvbU5Ahl6LaLUje9/+TYCDinyinVOWayWCYjMCSLI 1XcwqTjLmxl7Lld3T5Zn0xMbZj95EQLqeMZObBgrGNA8aXRKvI5LIKv3dYBgfm0126IH KfUw== 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=CrcSlbVoc5cXe6M94dD8rtZfS72OfXFCEFZ/hUgWQuo=; fh=04ly7V1xWE1eBTBwtRUQiwjHX8ICozxkXNJpuSLZLOA=; b=sBPHT8gBalJTYSN/ZJMXFqm2eMBo0vYhNzzZ7iDgcM1C6WYG7eSEXkltN/gzPtU3wS nFlyfmA7/MdVRxMLNPrDbWmz4iJLQNUBYtka1CB7bPGA+vdlIGQKuq4ldO/YN54bjDG3 UJFNti42Gzj5yFrieEDAoVVS8gFBsD79UiVPuGpSe59SUTwLUF0lsMjpouEszGMI3Uol DznuLHUPzIINaTY5Af5qhfJtzOd8kP37Azan9lSHhqSXNS++xuS7EFvoiRRyI5V4me0N S7xAE/M9vMEoxWwThwDxISaJ728DzYUNqcjb/rq5d4aBTvFz4z2VXrfeTET/jicEvMRa 7oDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j7-20020a816e07000000b005a4f6997b2csi14847298ywc.58.2023.10.26.07.49.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 07:49:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 C12BE8220117; Thu, 26 Oct 2023 07:49:42 -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 S1345331AbjJZOsv (ORCPT <rfc822;aposhian.dev@gmail.com> + 26 others); Thu, 26 Oct 2023 10:48:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235100AbjJZOsn (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 26 Oct 2023 10:48:43 -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 6A3B21B4 for <linux-kernel@vger.kernel.org>; Thu, 26 Oct 2023 07:48:41 -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 <ore@pengutronix.de>) id 1qw1es-0005Zr-2C; Thu, 26 Oct 2023 16:48:26 +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 <ore@pengutronix.de>) id 1qw1er-004Qq5-JY; Thu, 26 Oct 2023 16:48:25 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from <ore@pengutronix.de>) id 1qw1er-00H3Xt-1l; Thu, 26 Oct 2023 16:48:25 +0200 From: Oleksij Rempel <o.rempel@pengutronix.de> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: Oleksij Rempel <o.rempel@pengutronix.de>, kernel@pengutronix.de, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v4 3/5] regulator: dt-bindings: Allow system-critical marking for fixed-regulator Date: Thu, 26 Oct 2023 16:48:22 +0200 Message-Id: <20231026144824.4065145-4-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231026144824.4065145-1-o.rempel@pengutronix.de> References: <20231026144824.4065145-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> 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]); Thu, 26 Oct 2023 07:49:42 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780829961581639520 X-GMAIL-MSGID: 1780829961581639520 |
Series |
regulator: add under-voltage support (part 2)
|
|
Commit Message
Oleksij Rempel
Oct. 26, 2023, 2:48 p.m. UTC
In certain projects, the main system regulator, composed of simple
components including an under-voltage detector and capacitors, can be
aptly described as a fixed regulator in the device tree. To cater to
such use cases, this patch extends the fixed regulator binding to
support the 'system-critical-regulator' property. This property
signifies that the fixed-regulator is vital for system stability.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
.../devicetree/bindings/regulator/fixed-regulator.yaml | 2 ++
1 file changed, 2 insertions(+)
Comments
On Thu, Oct 26, 2023 at 04:48:22PM +0200, Oleksij Rempel wrote: > In certain projects, the main system regulator, composed of simple > components including an under-voltage detector and capacitors, can be > aptly described as a fixed regulator in the device tree. To cater to > such use cases, this patch extends the fixed regulator binding to > support the 'system-critical-regulator' property. This property > signifies that the fixed-regulator is vital for system stability. There is no programming interface for fixed-regulators, so how do you know an under/over voltage condition? > > Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> > --- > .../devicetree/bindings/regulator/fixed-regulator.yaml | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml b/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml > index ce7751b9129c..9ff9abf2691a 100644 > --- a/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml > +++ b/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml > @@ -105,6 +105,8 @@ properties: > description: > Interrupt signaling a critical under-voltage event. > > + system-critical-regulator: true > + > required: > - compatible > - regulator-name > -- > 2.39.2 >
On Fri, Oct 27, 2023 at 04:24:40PM -0500, Rob Herring wrote: > On Thu, Oct 26, 2023 at 04:48:22PM +0200, Oleksij Rempel wrote: > > In certain projects, the main system regulator, composed of simple > > components including an under-voltage detector and capacitors, can be > > aptly described as a fixed regulator in the device tree. To cater to > > such use cases, this patch extends the fixed regulator binding to > > support the 'system-critical-regulator' property. This property > > signifies that the fixed-regulator is vital for system stability. > There is no programming interface for fixed-regulators, so how do you > know an under/over voltage condition? There's support for interrupts now - it's a just a simple signal so if the interrupt is asserted you know there's an error but that's all you know.
On Thu, 26 Oct 2023 16:48:22 +0200, Oleksij Rempel wrote: > In certain projects, the main system regulator, composed of simple > components including an under-voltage detector and capacitors, can be > aptly described as a fixed regulator in the device tree. To cater to > such use cases, this patch extends the fixed regulator binding to > support the 'system-critical-regulator' property. This property > signifies that the fixed-regulator is vital for system stability. > > Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> > --- > .../devicetree/bindings/regulator/fixed-regulator.yaml | 2 ++ > 1 file changed, 2 insertions(+) > Acked-by: Rob Herring <robh@kernel.org>
diff --git a/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml b/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml index ce7751b9129c..9ff9abf2691a 100644 --- a/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml @@ -105,6 +105,8 @@ properties: description: Interrupt signaling a critical under-voltage event. + system-critical-regulator: true + required: - compatible - regulator-name