Skip to content

Commit

Permalink
dt-bindings: serial: fix regex pattern for matching serial node children
Browse files Browse the repository at this point in the history
[ Upstream commit 42851df ]

The regular expression pattern for matching serial node children should
accept only nodes starting and ending with the set of words: bluetooth,
gnss, gps or mcu.  Add missing brackets to enforce such matching.

Fixes: 0c559bc ("dt-bindings: serial: restrict possible child node names")
Reported-by: Andreas Kemnade <andreas@kemnade.info>
Closes: https://lore.kernel.org/all/20231004170021.36b32465@aktux/
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231005093247.128166-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
krzk authored and gregkh committed Nov 28, 2023
1 parent 61576b7 commit cc0ccee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/serial/serial.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ then:
rts-gpios: false

patternProperties:
"^bluetooth|gnss|gps|mcu$":
"^(bluetooth|gnss|gps|mcu)$":
if:
type: object
then:
Expand Down

0 comments on commit cc0ccee

Please sign in to comment.