[PATCH v2 1/3] dt-bindings: opp: Allow optional -vN suffix in opp-microvolt property name

From: Rudraksha Gupta via B4 Relay

Date: Wed May 27 2026 - 23:40:20 EST


From: Rudraksha Gupta <guptarud@xxxxxxxxx>

The qcom-cpufreq-nvmem driver generates prop_name as
"speed%d-pvs%d-v%d" for Krait SoCs, resulting in property names like
opp-microvolt-speed0-pvs0-v0. The existing schema regex only allows
opp-microvolt-speed[0-9]+-pvs[0-9]+ without the trailing version
suffix.

Extend the regex to optionally match a -v[0-9]+ suffix so that
devicetrees using the full prop_name pass schema validation.

Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Rudraksha Gupta <guptarud@xxxxxxxxx>
---
Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml b/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml
index fd04d060c1de..846f49a99484 100644
--- a/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml
+++ b/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml
@@ -81,7 +81,7 @@ patternProperties:
required-opps: true

patternProperties:
- '^opp-microvolt-speed[0-9]+-pvs[0-9]+$': true
+ '^opp-microvolt-speed[0-9]+-pvs[0-9]+(-v[0-9]+)?$': true

required:
- opp-hz

--
2.54.0