Skip to content

Commit b6d4b35

Browse files
robherringbroonie
authored andcommitted
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) <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 604efe5 commit b6d4b35

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Documentation/devicetree/bindings/regulator/fixed-regulator.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ allOf:
4141
- gpios
4242

4343
properties:
44+
$nodename:
45+
anyOf:
46+
- description: Preferred name is 'regulator-[0-9]v[0-9]'
47+
pattern: '^regulator(-[0-9]+v[0-9]+|-[0-9a-z-]+)?$'
48+
- description: Any name allowed
49+
deprecated: true
50+
4451
compatible:
4552
enum:
4653
- regulator-fixed

0 commit comments

Comments
 (0)