mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
dt-bindings: power: reset: qcom,pon: Narrow allowed reboot modes
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> Acked-by: Rob Herring (Arm) <robh@kernel.org> Link: https://patch.msgid.link/20260701105907.197150-2-krzysztof.kozlowski@oss.qualcomm.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
b04510c3af
commit
741a9b0977
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user