dt-bindings: Add missing start and/or end of line regex anchors
json-schema patterns by default will match anywhere in a string, so typically we want at least the start or end anchored. Fix the obvious cases where the anchors were forgotten. Acked-by: Matti Vaittinen <mazziesaccount@gmail.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Acked-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20221118223728.1721589-1-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
@@ -38,7 +38,7 @@ properties:
|
||||
type: object
|
||||
|
||||
patternProperties:
|
||||
'cpu@[0-9a-f]+':
|
||||
'^cpu@[0-9a-f]+$':
|
||||
type: object
|
||||
|
||||
properties:
|
||||
|
||||
@@ -61,7 +61,7 @@ patternProperties:
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
enum: [0, 1]
|
||||
|
||||
"adi,pin(5|10)-function":
|
||||
"^adi,pin(5|10)-function$":
|
||||
description: |
|
||||
Configures the function for pin 5 on the adi,adt7473 and adi,adt7475. Or
|
||||
pin 10 on the adi,adt7476 and adi,adt7490.
|
||||
@@ -70,7 +70,7 @@ patternProperties:
|
||||
- pwm2
|
||||
- smbalert#
|
||||
|
||||
"adi,pin(9|14)-function":
|
||||
"^adi,pin(9|14)-function$":
|
||||
description: |
|
||||
Configures the function for pin 9 on the adi,adt7473 and adi,adt7475. Or
|
||||
pin 14 on the adi,adt7476 and adi,adt7490
|
||||
|
||||
@@ -41,7 +41,7 @@ required:
|
||||
- nvmem-cells
|
||||
|
||||
patternProperties:
|
||||
"opp-[0-9]+":
|
||||
"^opp-[0-9]+$":
|
||||
type: object
|
||||
|
||||
properties:
|
||||
@@ -49,7 +49,7 @@ patternProperties:
|
||||
clock-latency-ns: true
|
||||
|
||||
patternProperties:
|
||||
"opp-microvolt-.*": true
|
||||
"^opp-microvolt-speed[0-9]$": true
|
||||
|
||||
required:
|
||||
- opp-hz
|
||||
|
||||
@@ -31,7 +31,7 @@ properties:
|
||||
maxItems: 2
|
||||
|
||||
patternProperties:
|
||||
'pcie@[0-2],0':
|
||||
'^pcie@[0-2],0$':
|
||||
type: object
|
||||
$ref: /schemas/pci/pci-bus.yaml#
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ properties:
|
||||
maxItems: 1
|
||||
|
||||
patternProperties:
|
||||
'usb@[0-1],0':
|
||||
'^usb@[0-1],0$':
|
||||
type: object
|
||||
|
||||
description:
|
||||
|
||||
@@ -24,7 +24,7 @@ properties:
|
||||
type: object
|
||||
|
||||
patternProperties:
|
||||
"regulator-.+":
|
||||
"^regulator-.+$":
|
||||
$ref: "regulator.yaml#"
|
||||
|
||||
additionalProperties: false
|
||||
|
||||
@@ -77,7 +77,7 @@ patternProperties:
|
||||
regulator-initial-mode: false
|
||||
|
||||
patternProperties:
|
||||
regulator-state-(standby|mem|disk):
|
||||
"^regulator-state-(standby|mem|disk)$":
|
||||
type: object
|
||||
additionalProperties: true
|
||||
properties:
|
||||
|
||||
@@ -231,7 +231,7 @@ patternProperties:
|
||||
".*-supply$":
|
||||
description: Input supply phandle(s) for this node
|
||||
|
||||
regulator-state-(standby|mem|disk):
|
||||
"^regulator-state-(standby|mem|disk)$":
|
||||
type: object
|
||||
description:
|
||||
sub-nodes for regulator state in Standby, Suspend-to-RAM, and
|
||||
|
||||
@@ -21,7 +21,7 @@ description: |
|
||||
regulator-voutl1, regulator-vouts1
|
||||
|
||||
patternProperties:
|
||||
"regulator-.+":
|
||||
"^regulator-.+$":
|
||||
type: object
|
||||
description:
|
||||
Properties for single regulator.
|
||||
|
||||
@@ -115,7 +115,7 @@ properties:
|
||||
ports:
|
||||
$ref: /schemas/graph.yaml#/properties/ports
|
||||
patternProperties:
|
||||
port(@[0-9a-f]+)?:
|
||||
'^port(@[0-9a-f]+)?$':
|
||||
$ref: audio-graph-port.yaml#
|
||||
unevaluatedProperties: false
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ properties:
|
||||
- const: tx
|
||||
|
||||
patternProperties:
|
||||
"@[0-9a-f]+":
|
||||
"@[0-9a-f]+$":
|
||||
type: object
|
||||
|
||||
properties:
|
||||
|
||||
Reference in New Issue
Block a user