Message ID | 20211218143423.18768-3-alexander.stein@mailbox.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 1f6532073e3e9caee1dbc3f9b4be28359a181ea4 |
Headers | show |
Series | [v2,1/3] ASoC: dt-bindings: Use name-prefix schema | expand |
On Sat, 18 Dec 2021 15:34:23 +0100, Alexander Stein wrote: > This is used in meson-sm1 and meson-g12 .dtsi. Add the property to > the binding. > This fixes the dtschema warning: > audio-controller@740: 'sound-name-prefix' does not match any of the > regexes: 'pinctrl-[0-9]+' > > Signed-off-by: Alexander Stein <alexander.stein@mailbox.org> > --- > All users have set this to "TOACODEC", but I am not sure if this value is > mandatory, so I opted to not set a pattern for this property. > > Changes in v2: > * Fix 'pass' -> 'true' > > .../devicetree/bindings/sound/amlogic,g12a-toacodec.yaml | 5 +++++ > 1 file changed, 5 insertions(+) > Reviewed-by: Rob Herring <robh@kernel.org>
diff --git a/Documentation/devicetree/bindings/sound/amlogic,g12a-toacodec.yaml b/Documentation/devicetree/bindings/sound/amlogic,g12a-toacodec.yaml index 3c3891d17238..77469a45bb7a 100644 --- a/Documentation/devicetree/bindings/sound/amlogic,g12a-toacodec.yaml +++ b/Documentation/devicetree/bindings/sound/amlogic,g12a-toacodec.yaml @@ -9,6 +9,9 @@ title: Amlogic G12a Internal DAC Control Glue maintainers: - Jerome Brunet <jbrunet@baylibre.com> +allOf: + - $ref: name-prefix.yaml# + properties: $nodename: pattern: "^audio-controller@.*" @@ -31,6 +34,8 @@ properties: resets: maxItems: 1 + sound-name-prefix: true + required: - "#sound-dai-cells" - compatible
This is used in meson-sm1 and meson-g12 .dtsi. Add the property to the binding. This fixes the dtschema warning: audio-controller@740: 'sound-name-prefix' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Alexander Stein <alexander.stein@mailbox.org> --- All users have set this to "TOACODEC", but I am not sure if this value is mandatory, so I opted to not set a pattern for this property. Changes in v2: * Fix 'pass' -> 'true' .../devicetree/bindings/sound/amlogic,g12a-toacodec.yaml | 5 +++++ 1 file changed, 5 insertions(+)