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

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>

authored by

Rob Herring (Arm) and committed by
Mark Brown
b6d4b350 604efe50

+7
+7
Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
··· 41 41 - gpios 42 42 43 43 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 + 44 51 compatible: 45 52 enum: 46 53 - regulator-fixed