From nobody Mon Feb 9 14:38:19 2026 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 D4A013BC4CA for ; Mon, 19 Jan 2026 16:30:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768840253; cv=none; b=PMvOLOrpp0kpIcgH2rww2FtaIc5C2qP3oAKkyj9N3ZcVO8GDm4ONC1lB8HChFsKMhSwSzxWtp737TxWSjhEHOKiLO8YdFB21cEuGPEOZVSwVoSoodJFHI/tskJJIrXnSsD+sHR0BioLku3hITrD7gw20bDEPcnh+UGGjMZLIABc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768840253; c=relaxed/simple; bh=D6/3vLfrvpSmRRqAGiIOVS8ewVjwKf7GH3zoAMxoKHo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ukejeauGiMCJzhzuI5mfYkzHQJnwLtkcbsnrfFAiDoGb76Xsc4AxTLwJoR9yj5L5sRDhxCQsWjekgHXSHQqPRuJiqX798TNHm7TUBLuc6832t69m1c/hyfIrhNsB6Mz3TDv7ZG94vF6Fj3OawEqFUNJuU0zCNF5PtYxdZkvLHzA= 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=DEfchJe+; arc=none smtp.client-ip=209.85.128.52 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="DEfchJe+" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4801c1ad878so33346175e9.1 for ; Mon, 19 Jan 2026 08:30:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768840250; x=1769445050; 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=MQd+WNzdOao4inqLQiN4ne6FLA8M9wMTcCMhupP8Doc=; b=DEfchJe+dHXrUKT6qlNAkcvoqKmHA968cCrIrrHlXe3bZ6jeA/msCrvYsgLg9Qm8IS eGUdd3rTnNy78ZuBXRxle3HJvIChz5ci37Mu/jiF5joQiwUba6NTyyYNF72VQoW9A4iJ qiZl3YweCK65uAaGYqm3Lp5Ys1JNfxJkVhbuRsRpxc/BCiVytwcxvSfXQXQNit8zfsoD NnjXRlhfSQeM0xsWio4QKvZTXTEjU8kSZE6ayheCaBRqMMPw7vgft6CX98B6dWM2R3fD fHZj2A3IPpLgPOar61ZYusbadEKfc2+PB+M/nQlv53xEXuTmpL9+vy27SjULpbZWolCr JIkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768840250; x=1769445050; 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=MQd+WNzdOao4inqLQiN4ne6FLA8M9wMTcCMhupP8Doc=; b=qREAGHeDomduJ0L44zzfzXksyDwOo2zuLpU2Iw7cN7MSyxSK4SOpCtIZWfGI2/5pIA vPVbx4uJFphXQAJrywT/vdzZflkLf1XBrA1Udz2NtuyswGtWbnUP3QImooIqddhMjdcB PJFi3FXh/LAn+4t0xJ0bAh1r5L3SHa5/ep5o04lczkuheJaq4bGwEWvDy09TvnRHjkPY USt0TZmTPQFhsPktOVkAdFjPE6fkqH7KJm+r+WD5gPLP/Grq7Zed/4MNqzurWlzCKnl7 2wCgHO9ZNMperKGT8dqKOMZtnRCIgTgjUvmFBSyzzPLp9yPw/DHxpJ+mcC+lYt0zKniK 5OUw== X-Forwarded-Encrypted: i=1; AJvYcCXDZmGFRev/Tf8wQkEPtp97BUihsT2Y4/qPuqKcsngHfLDlkwDMqgtFJtHJtTrw7GWSzPzjA/i9lmhPpjY=@vger.kernel.org X-Gm-Message-State: AOJu0YxU2LETNB7vzDoAjqq0uFEhNKBmIzawuRv2uXHk4cWRn644Hm2U tMRF1O1QnSYImrPwJFuiXvCaKE/Rw0XQSkrEvSArJSGbdRqHsLJTHfGf X-Gm-Gg: AY/fxX7gYU8C3CvhJGuSAgppndHZctxPM1rETiQ4KzQY296tpEfkmEsTxDf0C4J+sbX 3Z/OLXoR6TLFI3BvWapctZTMJFlgXGPx3I3AagPmCx/BHbk/KrfsTrIV8kWped5lxvvVFrsVIQ+ xQNwdaZ6vRJrdLPjvCvEXkd+RslaTwIiKJw3qTOqRrifMhazghjfkb+r8IAXfOQGopZyMWCfuyJ pKmDW4F8mp2wt/lpwjUFe0cRPxfZYZqpMU+iObTid0e5GpZ7jEjQ47yK8c7Hzm9WOcpkqwR418y EKmdgCQ24wjZVFOMWbkcaUSzRbCUQACJqhanTzK5ozt2ENe0YGBkaDm8yXIq/KNBBFTLIMvGTx+ fygGpH1q5qURQPOeHpyo43+VoqT1eaQHmPNqWljEtjufdo51PNKHZH+yG9HRiuIDO+EIRGixXCf N8djTDVVR7wSAaPGjxuwkF2R2EbSJVT5tqPfu5OG+86BpJ X-Received: by 2002:a05:600c:4745:b0:47a:80f8:82ab with SMTP id 5b1f17b1804b1-4801e33c17fmr160556445e9.24.1768840249805; Mon, 19 Jan 2026 08:30:49 -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-4801e879537sm201666795e9.5.2026.01.19.08.30.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jan 2026 08:30:49 -0800 (PST) From: "Anton D. Stavinskii" Date: Mon, 19 Jan 2026 20:30:42 +0400 Subject: [PATCH v3 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: <20260119-cv1800b-i2s-driver-v3-1-04006f4111d7@gmail.com> References: <20260119-cv1800b-i2s-driver-v3-0-04006f4111d7@gmail.com> In-Reply-To: <20260119-cv1800b-i2s-driver-v3-0-04006f4111d7@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.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1768840243; l=2363; i=stavinsky@gmail.com; s=20260115; h=from:subject:message-id; bh=D6/3vLfrvpSmRRqAGiIOVS8ewVjwKf7GH3zoAMxoKHo=; b=/bjUfLKwlPnlPfk4DYtxlHgdXcY+lvP5GNMVM9VYSX/tdxAVVMOnsLQRkscxApXqhk58aE6Oc t8x0QPnx4PCCorDSC03hUrqySe6xs7VieWCNdq16mJ1+n/h65X2Z8w7 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 --- .../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..e09631308bb6 --- /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: + minItems: 2 + maxItems: 2 + + clock-names: + items: + - const: i2s + - const: mclk + + dmas: + 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