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

ASoC: dt-bindings: davinci-mcbsp: Add the 'ti,T1-framing-{rx/tx}' flags

McBSP's data delay can be configured from 0 to 2 bit clock periods. 0 is
used for DSP_B format, 1 for DSP_A format. A data delay of 2 bit clock
periods can be used to interface to 'T1 framing' devices where data
stream is preceded by a 'framing bit'. This 2 bit clock data delay is
not described in the bindings.

Add two flags 'ti,T1-framing-[rx/tx]' to enable a data delay of 2
bit clock periods in reception or transmission.

Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://msgid.link/r/20240402071213.11671-13-bastien.curutchet@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Bastien Curutchet and committed by
Mark Brown
609302ca 92e7bb2b

+14
+14
Documentation/devicetree/bindings/sound/davinci-mcbsp.yaml
··· 67 67 "#sound-dai-cells": 68 68 const: 0 69 69 70 + ti,T1-framing-tx: 71 + $ref: /schemas/types.yaml#/definitions/flag 72 + description: 73 + If the property is present, tx data delay is set to 2 bit clock periods. 74 + McBSP will insert a blank period (high-impedance period) before the first 75 + data bit. This can be used to interface to T1-framing devices. 76 + 77 + ti,T1-framing-rx: 78 + $ref: /schemas/types.yaml#/definitions/flag 79 + description: 80 + If the property is present, rx data delay is set to 2 bit clock periods. 81 + McBSP will discard the bit preceding the data stream (called framing bit). 82 + This can be used to interface to T1-framing devices. 83 + 70 84 required: 71 85 - "#sound-dai-cells" 72 86 - compatible