diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2021-05-17 16:23:49 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-05-17 16:23:49 +0200 |
commit | e1f13c0a311308ea0172f2688e23a55c5cfd00af (patch) | |
tree | 55f3e500e7adeb08b5e850644613f13909b7e9fb /dts/Bindings/sound/tlv320aic3x.txt | |
parent | 82e29d615600621d7aca7d3fb1016feb8762f030 (diff) | |
parent | a5a4c1d5a3c4f89059fb612b5786ec8b61b959f1 (diff) | |
download | barebox-e1f13c0a311308ea0172f2688e23a55c5cfd00af.tar.gz barebox-e1f13c0a311308ea0172f2688e23a55c5cfd00af.tar.xz |
Merge branch 'for-next/dts'
Diffstat (limited to 'dts/Bindings/sound/tlv320aic3x.txt')
-rw-r--r-- | dts/Bindings/sound/tlv320aic3x.txt | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/dts/Bindings/sound/tlv320aic3x.txt b/dts/Bindings/sound/tlv320aic3x.txt index 9796c46392..20931a63fd 100644 --- a/dts/Bindings/sound/tlv320aic3x.txt +++ b/dts/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>; + }; +}; |