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:
Krzysztof Kozlowski 2026-07-01 12:59:08 +02:00 committed by Sebastian Reichel
parent b04510c3af
commit 741a9b0977

View File

@ -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