regulator: dt-bindings: fixed-regulator: Add a preferred node name
authorRob Herring (Arm) <robh@kernel.org>
Fri, 26 Apr 2024 21:51:46 +0000 (16:51 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 29 Apr 2024 15:10:13 +0000 (00:10 +0900)
Define "regulator-[0-9]v[0-9]" as the preferred node name for fixed
regulators. Other suffixes with names are also accepted. Combined,
these make up about half of the existing names in use.

For now this only serves as documentation as the schema still allows
anything to avoid lots of additional warnings for something low priority
to fix. Once a "no deprecated" mode is added to the tools, warnings can
be enabled selectively.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240426215147.3138211-1-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/regulator/fixed-regulator.yaml

index 9ff9abf2691a5041b5b8b998fe440a357c15e966..51e2f6fb7a5a93f39a503072c0f5d26495064655 100644 (file)
@@ -41,6 +41,13 @@ allOf:
         - gpios
 
 properties:
+  $nodename:
+    anyOf:
+      - description: Preferred name is 'regulator-[0-9]v[0-9]'
+        pattern: '^regulator(-[0-9]+v[0-9]+|-[0-9a-z-]+)?$'
+      - description: Any name allowed
+        deprecated: true
+
   compatible:
     enum:
       - regulator-fixed