From nobody Tue Feb 10 00:58:53 2026 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A237F34B662 for ; Tue, 20 Jan 2026 19:06:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768935978; cv=none; b=Xj2iTTRCTn0nfX0XbegwE8bV/U4zLxvvYQTfg4h5WcnJi+kIvrKkL4LIW23B7cL3g3wV2x9txjjo8e34Alj7e4K45B+AvhLckkDDivaTHMNBZrBcWWHvYayb/BgvvMWGrR3l6qfusSpCSrUFZgLDs1G1eIGyiUcd0lcfl7H+sig= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768935978; c=relaxed/simple; bh=yxnEx4BU+xefwn+EfFU7iFurmvPml9i59k/P1RLAJgs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IU0FBOI/3JPHCtmvaG/A26EljDSLGpkpbsgKquuKd06bwbJrVWwsIlbHGCeL0dNyGNq/iFLLfKDeQ2vguCo64hqyRmGhF2ZZQ06IxWk/gZkU2h/QzJ0Np7kCJgraphBg5pNxXaNFu+iEG6yc0sn/Qw9oHOKm9diHZVwIy1MQSa8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=YurQtt9z; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YurQtt9z" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4801d21c411so20721685e9.3 for ; Tue, 20 Jan 2026 11:06:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768935973; x=1769540773; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Lfs9m2lS0OGQ6AFUB84Kj8F2HzMlL+m5vSn33xsuh6g=; b=YurQtt9zWvKKDjI5nYquQi4VCIBVi2GeFD6N/8GZ0huG2sCpXgVhmcTeNTTkYevJQs ttAWz1V/WqJHxODIHQYt8/Yu7IIRV7fXoTtERl/jJK3FWWLc92B/+uGkJ9kjvRGpTn09 Sh/RJT6Yigo30jb2qk4cyTEl4sIn+HllfPOCOI/TZJO7cBbRV0G9HQ+juK4LPNxFohVG g2QRW5CtzBl/Oxygxg/PFYSmZmC6SQRoV2t9ZXpETSMsno/RCyyF77c+Z4jjEbkYlwH+ AnldB1/n8eP/Y7PJTIYh+hrFuxOwRICIKCyAH1GDB1spnXubUktxyBgo9rwgN4KwYL15 mzSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768935973; x=1769540773; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Lfs9m2lS0OGQ6AFUB84Kj8F2HzMlL+m5vSn33xsuh6g=; b=DSymHD3+j7SZ/WmYiVBaQJGV1rq4FZy6mBfSNyFhCPOMOuHfso6Ty32pVvlrJSKZcN 8kGwlacRxb7qkjiyILMXShwpBbx6X3Tr4SxnM1Imo/R4Mio9oYSI0nYJ/0FVRGriomuq 12MMM6qQbUqt037BIliQk+PplrKHUBapMsPkjBHp/5da4b9vgxWR3QMKwDhY8B9RQwXO oN809b00QaEgdn//4g5EO4/XEsBf38ru/z4DX/RX74tjV/9CJWdJjLLg2+e2Z29nlzZk ZLlOnOuOiDvj7FD0HT+NdQguZnGYNVneV0s+pyNp78rwRz6RZg9ICeeakS7gnsIV78WB JYsA== X-Forwarded-Encrypted: i=1; AJvYcCVz/5FUV9D8jegIUlRGh1fLEbhT70FXm4k0Toohk8zLIg8LBjNPvNle7VzbTZ9gG1jD3BOWzHb15Lp2HYs=@vger.kernel.org X-Gm-Message-State: AOJu0YxExZamimKCsKSZxh/AAPneKatfHLhnh7DmU3f42FB5iUf9iKia L4jBpMhqIyjHntIJLKv+QdLGdZ4IU3WtIbb8gRFz1c5CcblvCXt392nMxoE/FM3L X-Gm-Gg: AY/fxX6O4+vYuIU+5FJK/oSk++gNLiFXFSZ1odZDz1ax4IRXs1+0rN0ZMII/HZUwyId HzBw49dfH3aI/y4MLxcCxtOdeiUDvwqJMzTOqd5qX/WH9oZmtSvPfocyBfP4qe8z4WQahet7DSJ X+ikiSf7R0pP8QrThNRso7h+OVHKLHyYa/6TdklQoWWmuhFyyf9U5HAfp1PaLnm//BF53bOpO+g g/V1paXiHNFDuiFW/1vtdl4zeX0+Efo2yZOA3UjNWXDECsfgFjRtQ15/UR00cipjAqZvUBkp337 hzn+Hz6PN7yfcYXhcGdPzGZ0TwwWJ18+z0fbEQJes6PKgm53PDcDkWEZunO3haLFm82oJW90euE kzMz372uKOeCZDdVGqUv6VyyWsjEKBDE7a+be86cODlSq2lwy41bt/tX6rfhrmN4emqM/gBkMCA 7FiHuCCWWb09Y2L0+KMB7TQQTHdXb5peyy+eWI0C5k6iYn X-Received: by 2002:a05:600c:8b58:b0:47b:e2a9:2bd9 with SMTP id 5b1f17b1804b1-4801e345987mr230321595e9.31.1768935973027; Tue, 20 Jan 2026 11:06:13 -0800 (PST) Received: from [127.0.1.1] (bba-94-59-215-181.alshamil.net.ae. [94.59.215.181]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4804244c6cesm2005735e9.0.2026.01.20.11.06.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jan 2026 11:06:12 -0800 (PST) From: "Anton D. Stavinskii" Date: Tue, 20 Jan 2026 23:06:03 +0400 Subject: [PATCH v4 1/6] ASoC: dt-bindings: sophgo,cv1800b: add I2S/TDM controller Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260120-cv1800b-i2s-driver-v4-1-6ef787dc6426@gmail.com> References: <20260120-cv1800b-i2s-driver-v4-0-6ef787dc6426@gmail.com> In-Reply-To: <20260120-cv1800b-i2s-driver-v4-0-6ef787dc6426@gmail.com> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Jaroslav Kysela , Takashi Iwai , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, sophgo@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, "Anton D. Stavinskii" X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1768935966; l=2363; i=stavinsky@gmail.com; s=20260115; h=from:subject:message-id; bh=yxnEx4BU+xefwn+EfFU7iFurmvPml9i59k/P1RLAJgs=; b=4ceWN1YSmA/dnUJiaFeJ71H2kKEEf6TSCxHE16GDFpBeRQWyCoDj31tNuqPWaIX99YvDyeYG9 RGXjBukPLo5AiTzR0C+aXc52BnXDsS/mUZse/wpVQT8d4TjzUO4zggA X-Developer-Key: i=stavinsky@gmail.com; a=ed25519; pk=2WxGZ1zd1vQwSPFCSks6zrADqUDBUdtq39lElk4ZE7Q= 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 Reviewed-by: Krzysztof Kozlowski --- .../bindings/sound/sophgo,cv1800b-i2s.yaml | 67 ++++++++++++++++++= ++++ 1 file changed, 67 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/sophgo,cv1800b-i2s.yam= l b/Documentation/devicetree/bindings/sound/sophgo,cv1800b-i2s.yaml new file mode 100644 index 000000000000..f08362b0ca5e --- /dev/null +++ b/Documentation/devicetree/bindings/sound/sophgo,cv1800b-i2s.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/sophgo,cv1800b-i2s.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sophgo CV1800B I2S/TDM controller + +maintainers: + - Anton D. Stavinskii + +description: I2S/TDM controller found in CV1800B / Sophgo SG2002/SG2000 So= Cs. + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: sophgo,cv1800b-i2s + + reg: + maxItems: 1 + + "#sound-dai-cells": + const: 0 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: i2s + - const: mclk + + dmas: + minItems: 1 + maxItems: 2 + + dma-names: + minItems: 1 + items: + - enum: [rx, tx] + - const: tx + +required: + - compatible + - reg + - clocks + - clock-names + - "#sound-dai-cells" + +unevaluatedProperties: false + +examples: + - | + #include + + i2s@4110000 { + compatible =3D "sophgo,cv1800b-i2s"; + reg =3D <0x04110000 0x10000>; + clocks =3D <&clk CLK_APB_I2S1>, <&clk CLK_SDMA_AUD1>; + clock-names =3D "i2s", "mclk"; + dmas =3D <&dmamux 2 1>, <&dmamux 3 1>; + dma-names =3D "rx", "tx"; + #sound-dai-cells =3D <0>; + }; +... --=20 2.43.0