Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+13 -13
+1 -1
Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml
··· 38 38 type: object 39 39 40 40 patternProperties: 41 - 'cpu@[0-9a-f]+': 41 + '^cpu@[0-9a-f]+$': 42 42 type: object 43 43 44 44 properties:
+2 -2
Documentation/devicetree/bindings/hwmon/adt7475.yaml
··· 61 61 $ref: /schemas/types.yaml#/definitions/uint32 62 62 enum: [0, 1] 63 63 64 - "adi,pin(5|10)-function": 64 + "^adi,pin(5|10)-function$": 65 65 description: | 66 66 Configures the function for pin 5 on the adi,adt7473 and adi,adt7475. Or 67 67 pin 10 on the adi,adt7476 and adi,adt7490. ··· 70 70 - pwm2 71 71 - smbalert# 72 72 73 - "adi,pin(9|14)-function": 73 + "^adi,pin(9|14)-function$": 74 74 description: | 75 75 Configures the function for pin 9 on the adi,adt7473 and adi,adt7475. Or 76 76 pin 14 on the adi,adt7476 and adi,adt7490
+2 -2
Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml
··· 41 41 - nvmem-cells 42 42 43 43 patternProperties: 44 - "opp-[0-9]+": 44 + "^opp-[0-9]+$": 45 45 type: object 46 46 47 47 properties: ··· 49 49 clock-latency-ns: true 50 50 51 51 patternProperties: 52 - "opp-microvolt-.*": true 52 + "^opp-microvolt-speed[0-9]$": true 53 53 54 54 required: 55 55 - opp-hz
+1 -1
Documentation/devicetree/bindings/pci/mediatek,mt7621-pcie.yaml
··· 31 31 maxItems: 2 32 32 33 33 patternProperties: 34 - 'pcie@[0-2],0': 34 + '^pcie@[0-2],0$': 35 35 type: object 36 36 $ref: /schemas/pci/pci-bus.yaml# 37 37
+1 -1
Documentation/devicetree/bindings/pci/renesas,pci-rcar-gen2.yaml
··· 65 65 maxItems: 1 66 66 67 67 patternProperties: 68 - 'usb@[0-1],0': 68 + '^usb@[0-1],0$': 69 69 type: object 70 70 71 71 description:
+1 -1
Documentation/devicetree/bindings/regulator/max8660.yaml
··· 24 24 type: object 25 25 26 26 patternProperties: 27 - "regulator-.+": 27 + "^regulator-.+$": 28 28 $ref: "regulator.yaml#" 29 29 30 30 additionalProperties: false
+1 -1
Documentation/devicetree/bindings/regulator/maxim,max77802.yaml
··· 77 77 regulator-initial-mode: false 78 78 79 79 patternProperties: 80 - regulator-state-(standby|mem|disk): 80 + "^regulator-state-(standby|mem|disk)$": 81 81 type: object 82 82 additionalProperties: true 83 83 properties:
+1 -1
Documentation/devicetree/bindings/regulator/regulator.yaml
··· 231 231 ".*-supply$": 232 232 description: Input supply phandle(s) for this node 233 233 234 - regulator-state-(standby|mem|disk): 234 + "^regulator-state-(standby|mem|disk)$": 235 235 type: object 236 236 description: 237 237 sub-nodes for regulator state in Standby, Suspend-to-RAM, and
+1 -1
Documentation/devicetree/bindings/regulator/rohm,bd9576-regulator.yaml
··· 21 21 regulator-voutl1, regulator-vouts1 22 22 23 23 patternProperties: 24 - "regulator-.+": 24 + "^regulator-.+$": 25 25 type: object 26 26 description: 27 27 Properties for single regulator.
+1 -1
Documentation/devicetree/bindings/sound/renesas,rsnd.yaml
··· 115 115 ports: 116 116 $ref: /schemas/graph.yaml#/properties/ports 117 117 patternProperties: 118 - port(@[0-9a-f]+)?: 118 + '^port(@[0-9a-f]+)?$': 119 119 $ref: audio-graph-port.yaml# 120 120 unevaluatedProperties: false 121 121
+1 -1
Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml
··· 48 48 - const: tx 49 49 50 50 patternProperties: 51 - "@[0-9a-f]+": 51 + "@[0-9a-f]+$": 52 52 type: object 53 53 54 54 properties: