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

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: dt-bindings: sophgo,cv1800b: add I2S/TDM controller

There are 4 TDM controllers on the SoC. Each controller can receive or
transmit data over DMA. The dma it self has 8 channels.
Each channel can be connected only to a specific i2s node. But each
of dma channel can have multiple purposes so in order to save dma
channels the configurations allows to use tx and rx, only rx, only tx
or none channels. I2S controller without channels can be useful in
configuration where I2S is used as clock source only and doesn't
produce any data.

Signed-off-by: Anton D. Stavinskii <stavinsky@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260120-cv1800b-i2s-driver-v4-1-6ef787dc6426@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Anton D. Stavinskii and committed by
Mark Brown
ad50e1f6 63804fed

+67
+67
Documentation/devicetree/bindings/sound/sophgo,cv1800b-i2s.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/sound/sophgo,cv1800b-i2s.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Sophgo CV1800B I2S/TDM controller 8 + 9 + maintainers: 10 + - Anton D. Stavinskii <stavinsky@gmail.com> 11 + 12 + description: I2S/TDM controller found in CV1800B / Sophgo SG2002/SG2000 SoCs. 13 + 14 + allOf: 15 + - $ref: dai-common.yaml# 16 + 17 + properties: 18 + compatible: 19 + const: sophgo,cv1800b-i2s 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + "#sound-dai-cells": 25 + const: 0 26 + 27 + clocks: 28 + maxItems: 2 29 + 30 + clock-names: 31 + items: 32 + - const: i2s 33 + - const: mclk 34 + 35 + dmas: 36 + minItems: 1 37 + maxItems: 2 38 + 39 + dma-names: 40 + minItems: 1 41 + items: 42 + - enum: [rx, tx] 43 + - const: tx 44 + 45 + required: 46 + - compatible 47 + - reg 48 + - clocks 49 + - clock-names 50 + - "#sound-dai-cells" 51 + 52 + unevaluatedProperties: false 53 + 54 + examples: 55 + - | 56 + #include <dt-bindings/clock/sophgo,cv1800.h> 57 + 58 + i2s@4110000 { 59 + compatible = "sophgo,cv1800b-i2s"; 60 + reg = <0x04110000 0x10000>; 61 + clocks = <&clk CLK_APB_I2S1>, <&clk CLK_SDMA_AUD1>; 62 + clock-names = "i2s", "mclk"; 63 + dmas = <&dmamux 2 1>, <&dmamux 3 1>; 64 + dma-names = "rx", "tx"; 65 + #sound-dai-cells = <0>; 66 + }; 67 + ...