The sun4i I2S controller supports mapping arbitrary TDM slots to
each channel. Allow this to be expressed in the device tree.
This is currently only implemented in the R329 I2S variant.
Allow this to be configured using a new channel-dins property.
Signed-off-by: John Watts <[email protected]>
---
.../bindings/sound/allwinner,sun4i-a10-i2s.yaml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml b/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml
index 402549f9941c..a74b02387d8a 100644
--- a/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml
+++ b/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml
@@ -59,6 +59,13 @@ properties:
channel. Pins are mapped to channels based on array index.
Channel 0 is the first number, then channel 1, and so on.
+ channel-slots:
+ $ref: /schemas/types.yaml#/definitions/uint8-array
+ description:
+ This is a list of channel I2S TDM slot numbers. Slots are mapped
+ to channels based on array index.
+ Channel 0 is the first number, then channel 1, and so on.
+
# Even though it only applies to subschemas under the conditionals,
# not listing them here will trigger a warning because of the
# additionalsProperties set to false.
@@ -164,6 +171,7 @@ examples:
dmas = <&dma 3>, <&dma 3>;
dma-names = "rx", "tx";
channel-dins = /bits/ 8 <0 0 1 1 2 2>;
+ channel-slots = /bits/ 8 <0 1 0 1 0 1>;
};
...
--
2.41.0