* [PATCH] dt-bindings: power: reset: qcom,pon: Narrow allowed reboot modes
@ 2026-07-01 10:59 Krzysztof Kozlowski
2026-07-01 19:54 ` Rob Herring (Arm)
2026-07-20 23:12 ` Sebastian Reichel
0 siblings, 2 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2026-07-01 10:59 UTC (permalink / raw)
To: Sebastian Reichel, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Vinod Koul, linux-pm, devicetree, linux-kernel
Cc: Krzysztof Kozlowski
reboot-mode schema allows arbitrary "mode-.* properties but only a
subset actually makes sense and is valid. Provide negative look-ahead
pattern to disallow any modes not supported by the device, which
tightens the binding.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
---
Documentation/devicetree/bindings/power/reset/qcom,pon.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml
index 979a377cb4ff..71d43d3602f7 100644
--- a/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml
+++ b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml
@@ -79,6 +79,10 @@ allOf:
reg-names:
items:
- const: pon
+ patternProperties:
+ # Negative look-ahead to disallow unsupported modes. The '$' has to be
+ # part of lookahead group to work, instead of trailing outside of ().
+ "^mode-(?!(bootloader$|recovery$))": false
else:
patternProperties:
"^mode-.*$": false
--
2.53.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: power: reset: qcom,pon: Narrow allowed reboot modes
2026-07-01 10:59 [PATCH] dt-bindings: power: reset: qcom,pon: Narrow allowed reboot modes Krzysztof Kozlowski
@ 2026-07-01 19:54 ` Rob Herring (Arm)
2026-07-20 23:12 ` Sebastian Reichel
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring (Arm) @ 2026-07-01 19:54 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: devicetree, linux-kernel, Krzysztof Kozlowski, linux-pm,
Conor Dooley, Vinod Koul, Sebastian Reichel
On Wed, 01 Jul 2026 12:59:08 +0200, Krzysztof Kozlowski wrote:
> reboot-mode schema allows arbitrary "mode-.* properties but only a
> subset actually makes sense and is valid. Provide negative look-ahead
> pattern to disallow any modes not supported by the device, which
> tightens the binding.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
> ---
> Documentation/devicetree/bindings/power/reset/qcom,pon.yaml | 4 ++++
> 1 file changed, 4 insertions(+)
>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: power: reset: qcom,pon: Narrow allowed reboot modes
2026-07-01 10:59 [PATCH] dt-bindings: power: reset: qcom,pon: Narrow allowed reboot modes Krzysztof Kozlowski
2026-07-01 19:54 ` Rob Herring (Arm)
@ 2026-07-20 23:12 ` Sebastian Reichel
1 sibling, 0 replies; 3+ messages in thread
From: Sebastian Reichel @ 2026-07-20 23:12 UTC (permalink / raw)
To: Sebastian Reichel, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Vinod Koul, linux-pm, devicetree, linux-kernel,
Krzysztof Kozlowski
On Wed, 01 Jul 2026 12:59:08 +0200, Krzysztof Kozlowski wrote:
> reboot-mode schema allows arbitrary "mode-.* properties but only a
> subset actually makes sense and is valid. Provide negative look-ahead
> pattern to disallow any modes not supported by the device, which
> tightens the binding.
>
>
Applied, thanks!
[1/1] dt-bindings: power: reset: qcom,pon: Narrow allowed reboot modes
commit: 792c48a7751346ea5e5069ec733f005d42a35b26
Best regards,
--
Sebastian Reichel <sebastian.reichel@collabora.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-07-20 23:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-01 10:59 [PATCH] dt-bindings: power: reset: qcom,pon: Narrow allowed reboot modes Krzysztof Kozlowski
2026-07-01 19:54 ` Rob Herring (Arm)
2026-07-20 23:12 ` Sebastian Reichel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®