diff options
author | Jiri Prchal <jiri.prchal@aksignal.cz> | 2021-04-08 08:07:41 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-04-08 16:21:51 +0200 |
commit | 38ec3006eccb46a6db6f4a36536f78db8e9042ac (patch) | |
tree | 4054586c9f49b81864fdbfa1bb5814c4e4b8163e /Documentation/devicetree/bindings/sound | |
parent | ASoC: tas2764: constify static struct snd_soc_dai_ops (diff) | |
download | linux-38ec3006eccb46a6db6f4a36536f78db8e9042ac.tar.xz linux-38ec3006eccb46a6db6f4a36536f78db8e9042ac.zip |
ASoC: codecs: tlv320aic3x: add SPI to the DT binding
Added note and example of SPI support.
Signed-off-by: Jiri Prchal <jiri.prchal@aksignal.cz>
Link: https://lore.kernel.org/r/20210408060741.6879-1-jiri.prchal@aksignal.cz
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/sound')
-rw-r--r-- | Documentation/devicetree/bindings/sound/tlv320aic3x.txt | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/sound/tlv320aic3x.txt b/Documentation/devicetree/bindings/sound/tlv320aic3x.txt index 9796c4639262..20931a63fd64 100644 --- a/Documentation/devicetree/bindings/sound/tlv320aic3x.txt +++ b/Documentation/devicetree/bindings/sound/tlv320aic3x.txt @@ -1,6 +1,6 @@ Texas Instruments - tlv320aic3x Codec module -The tlv320aic3x serial control bus communicates through I2C protocols +The tlv320aic3x serial control bus communicates through both I2C and SPI bus protocols Required properties: @@ -63,7 +63,7 @@ CODEC input pins for other compatible codecs: The pins can be used in referring sound node's audio-routing property. -Example: +I2C example: #include <dt-bindings/gpio/gpio.h> @@ -78,3 +78,20 @@ tlv320aic3x: tlv320aic3x@1b { DRVDD-supply = <®ulator>; DVDD-supply = <®ulator>; }; + +SPI example: + +spi0: spi@f0000000 { + tlv320aic3x: codec@0 { + compatible = "ti,tlv320aic3x"; + reg = <0>; /* CS number */ + #sound-dai-cells = <0>; + spi-max-frequency = <1000000>; + + AVDD-supply = <®ulator>; + IOVDD-supply = <®ulator>; + DRVDD-supply = <®ulator>; + DVDD-supply = <®ulator>; + ai3x-ocmv = <0>; + }; +}; |