summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
diff options
context:
space:
mode:
authorRob Herring (Arm) <robh@kernel.org>2024-04-27 00:51:46 +0300
committerMark Brown <broonie@kernel.org>2024-04-29 18:10:13 +0300
commitb6d4b3500d57370f5b3abf0701c9166b384db976 (patch)
tree7f4a7091ce9c52e566b1e8d5b5078403c662df1c /Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
parent604efe5018b4a1e99e0321a768cb925932a65c7d (diff)
downloadlinux-b6d4b3500d57370f5b3abf0701c9166b384db976.tar.xz
regulator: dt-bindings: fixed-regulator: Add a preferred node name
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>
Diffstat (limited to 'Documentation/devicetree/bindings/regulator/fixed-regulator.yaml')
-rw-r--r--Documentation/devicetree/bindings/regulator/fixed-regulator.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml b/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
index 9ff9abf2691a..51e2f6fb7a5a 100644
--- a/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
+++ b/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
@@ -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