Skip to content

Commit 759e2bd

Browse files
olerembroonie
authored andcommitted
regulator: dt-bindings: Add 'regulator-uv-less-critical-window-ms' property
Introduces a new devicetree property to specifies the time window (in milliseconds) following a critical under-voltage (UV) event during which less critical actions can be safely carried out by the system. Less Critical Actions: - Logging the under-voltage event for later analysis. - Saving less critical data that may be useful for diagnosing issues or for audit purposes. More Critical Actions (post the less critical window): - Initiating procedures to properly shutdown hardware to prevent damage. The 'regulator-uv-less-critical-window-ms' property is crucial for conveying board-specific hardware characteristics, not for enforcing a certain policy. The time window represented by this property is derived from the physical attributes of the hardware like the capacity of on-board capacitors, the power consumption of the components, and the time needed to safely shut down hardware to prevent damage. These attributes can significantly vary between different boards, making it a board-specific property rather than a policy directive. By providing a precise representation of the time available for less critical actions post an under-voltage event, this property enables the kernel to make informed decisions on action prioritization, ensuring that essential preventative measures are taken to avoid hardware damage while also allowing for data capture and analysis. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Acked-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20231026144824.4065145-5-o.rempel@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 633cd1c commit 759e2bd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Documentation/devicetree/bindings/regulator/regulator.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,14 @@ properties:
186186
be enabled but limit setting can be omitted. Limit is given as microvolt
187187
offset from voltage set to regulator.
188188

189+
regulator-uv-less-critical-window-ms:
190+
description: Specifies the time window (in milliseconds) following a
191+
critical under-voltage event during which the system can continue to
192+
operate safely while performing less critical operations. This property
193+
provides a defined duration before a more severe reaction to the
194+
under-voltage event is needed, allowing for certain non-urgent actions to
195+
be carried out in preparation for potential power loss.
196+
189197
regulator-temp-protection-kelvin:
190198
description: Set over temperature protection limit. This is a limit where
191199
hardware performs emergency shutdown. Zero can be passed to disable

0 commit comments

Comments
 (0)