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

ASoC: dt-bindings: irondevice,sma1303: Rework binding and add missing properties

Add the missing properties as compatible, reg, sound-dai-cells.
And then check this file using 'make dt_binding_check'.

Signed-off-by: Kiseok Jo <kiseok.jo@irondevice.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230208092420.5037-8-kiseok.jo@irondevice.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kiseok Jo and committed by
Mark Brown
677e3ab7 1f5ffd57

+20 -3
+20 -3
Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml
··· 10 10 - Kiseok Jo <kiseok.jo@irondevice.com> 11 11 12 12 description: 13 - SMA1303 digital class-D audio amplifier with an integrated boost converter. 13 + SMA1303 digital class-D audio amplifier 14 + with an integrated boost converter. 14 15 15 16 allOf: 16 - - $ref: name-prefix.yaml# 17 + - $ref: dai-common.yaml# 18 + 19 + properties: 20 + compatible: 21 + enum: 22 + - irondevice,sma1303 23 + 24 + reg: 25 + maxItems: 1 26 + 27 + '#sound-dai-cells': 28 + const: 1 17 29 18 30 required: 19 31 - compatible 20 32 - reg 33 + - '#sound-dai-cells' 21 34 22 35 additionalProperties: false 23 36 24 37 examples: 25 38 - | 26 - i2c_bus { 39 + i2c { 40 + #address-cells = <1>; 41 + #size-cells = <0>; 42 + 27 43 amplifier@1e { 28 44 compatible = "irondevice,sma1303"; 29 45 reg = <0x1e>; 46 + #sound-dai-cells = <1>; 30 47 }; 31 48 };