mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 02:54:05 +00:00
dt-bindings: serial: restrict possible child node names
The re-usable serial.yaml schema matches every property with ".*" pattern, thus any other schema referencing it will not report unknown (unevaluated) properties. This hides several wrong properties. It is a limitation of dtschema, thus provide a simple workaround: expect children to be only of few names matching upstream usage (Bluetooth, GNSS, GPS and MCU). Signed-off-by: Krzysztof Kozlowski <[email protected]> Acked-by: Linus Walleij <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
This commit is contained in:
committed by
Rob Herring
parent
770ba14bd7
commit
0c559bc8ab
@@ -96,7 +96,7 @@ then:
|
||||
rts-gpios: false
|
||||
|
||||
patternProperties:
|
||||
".*":
|
||||
"^bluetooth|gnss|gps|mcu$":
|
||||
if:
|
||||
type: object
|
||||
then:
|
||||
|
||||
Reference in New Issue
Block a user