From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 C00C72EBBB7 for ; Thu, 15 Jan 2026 19:18:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768504684; cv=none; b=tGqlDPlihVq7Rh5J22odyWhurpN41MXVkWOF0HBcpJtldTbp6RsBap9BnZKUQegtg1G5alK9lBolyqcReCAvYKQi75FYna2IPHum7m7MG3hNema9QJfkyl4Gdr1Fes4zjeY/PKVYQsYJxeDIKa7mVFEeHxXrwhtE88X9mj2iCNQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768504684; c=relaxed/simple; bh=jS4s4+CeEp3p8wbUjI2uvC+K83JDVMWMsUADgn9dTsE=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=Gp10HCnlzJe9a2iCWBq5tm5vRwkhhDWUizOUDTOyJzGW4mbSzxSPEJRkxsohT/q1wB4DCqbAy2FK25s7G9u1oPGb93Q5YKIPKI1h6XU2N8kChgl7SSmsQs5sItDwXEoizbUs7d2JAc7knHe/fYSUp8mwxtIZonTAVgnjJXFG1D4= 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=jhYhAwbv; arc=none smtp.client-ip=209.85.221.46 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="jhYhAwbv" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-42fed090e5fso678891f8f.1 for ; Thu, 15 Jan 2026 11:18:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768504681; x=1769109481; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=6awU7mxwuWsmRADvbQlSH8CHRST4+YAD1gEKj5q/Fv8=; b=jhYhAwbvns+IZSHKCfQvB0La+dKf6os5aADte0XJ+Fi2GQAxhsnFZpaXafh+tAsQsP KqYaS+46rkKaq49Htb1cqKwCBQ2ByRh8HQVE/NZ0TCnajIn06hE+mG7W3V8o5HvldLmg x1rB5GAjMFL22c1Xp0A4BTbidD23nAjyJtRoCkURoEhvq/02DW+BmoyxYKuKdYVEN13H Ca+SGHeHCXxyIHdRQB/fcQuZ8SYgNiAGV6wqnSie5qfCwcdG6rH3Eb4VYpsL6BAHRoTj hS+Ja+LMV7rzxB0WewX2bAVf5AprNSKqiHlyBSnYqWy82NEsSxfp9o53p8oa+cnl9tiJ FZEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768504681; x=1769109481; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6awU7mxwuWsmRADvbQlSH8CHRST4+YAD1gEKj5q/Fv8=; b=qTnKPkL12a2vGG6kzjKIsntPu/qa7+JnMCS9FmGEWyBR9JRGQWlyeT63RUPhePOg5h rZu5pcxFMiAqfVqTTuKJdBXQrPjroievMB8MDCRDnfkqqEmQBHUuW74LxlyPATMQqrLB QHNg/dj3pW6lx4Lv+LtVo/23tPcNzVd+M2/em0PlRe57PkWFQSK8GBPgLLdcmAjpZYah 1M1HD3iBAlt47ulV2x00XTJMgwvLv+JLiZHIq7/cAqWNyfSRvYGZ5KBUr4xQm7INVzSR SKjqADlASVbkT34y+DOfeDHjoamZhhR2cSVXT7rb/jH8KUm7dooyk0q30hD+9q+ZX0i6 8/xA== X-Forwarded-Encrypted: i=1; AJvYcCVA9PGkuCJqy287tHVqIbPrL5V9oJLUEFMX+uTv5EM27LiFMVYdyGNDp48ikfET2fzOBbZRp2JM7H05EEg=@vger.kernel.org X-Gm-Message-State: AOJu0YyA6RddzOVXlsaUaf1yMQ78pTVqWd8dXwLhvzIO4MtYdxsE+Ip7 MxkNzLuJPTXt7gT8z8bUgEQf/zNu1PHDXGYSuCoa89L7OxF5unYylaQ6 X-Gm-Gg: AY/fxX6c6QL6I+oxA8nZlRSQkfaF10ioNx1S8GoUPQxbmDWljd08yBIgAjjXcvrwhhY PiJGlDkZ9LjkStjX9Qcn+Nou5DgKoizMDorErP3nqexmVgzgj71EIPQzDM5ozOEufd072fnrh4g howiIH7PSh7dMSluF4s9JbIFXV0OtRNfxcT8o1ZhrZ3kk6HKXMxXF1N9tggHbnTPHbOHkSYHOqf B8MzJ2+ddSVCrJ3Nk/eMen95Nu6NZohVwYVrJT9wZse/qjcT95agKjSzrdBbA5kL81oGDrivDDz 10wjc1GSMbRQZO6DAYUSmWq8Mj816SD6HOLH4L+UBX4XnbcDIlev/6xFKHawqEIniWdC8CWYg5o dYLKOcOZCEVt+n7dIPqIqFlazQoeDZ68mHB3o1twhieIthNJdRzfm4zAWg5f5s/1u+eB/ddat/Z 7o3IsLefWX1LjKEpnRhnVDR9aBRX64+GBDrRC8x81hBPIC X-Received: by 2002:a5d:64e6:0:b0:431:307:2200 with SMTP id ffacd0b85a97d-43569979c5dmr533542f8f.9.1768504680718; Thu, 15 Jan 2026 11:18:00 -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 ffacd0b85a97d-43569921dedsm692734f8f.9.2026.01.15.11.17.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jan 2026 11:18:00 -0800 (PST) From: "Anton D. Stavinskii" Subject: [PATCH 0/8] ASoC: sophgo: add CV1800 AIAO mux and I2S support Date: Thu, 15 Jan 2026 23:17:37 +0400 Message-Id: <20260115-cv1800b-i2s-driver-v1-0-e8b22b8578ab@gmail.com> 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: 7bit X-B4-Tracking: v=1; b=H4sIAFE9aWkC/x3MMQqAMAxA0atIZgNN1SpeRRy0jZpFJYUiFO9uc XzD/xkiq3CEscqgnCTKdRZQXYE/lnNnlFAM1lhniDr0iQZjVhQbMagkVmw36ofGBfadgxLeyps 8/3Sa3/cDpTyugmQAAAA= 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=1768504677; l=3006; i=stavinsky@gmail.com; s=20260115; h=from:subject:message-id; bh=jS4s4+CeEp3p8wbUjI2uvC+K83JDVMWMsUADgn9dTsE=; b=KoUoMJjnND33ukztFTj5DwgkDIFIQgsCTyq59umMHCLOC7ss9JO8beohsaIR97SJgVvS0ET3o I/MuwDTqc1pCTNweLsYrs6LgSKQwHGsgTIgoam1u2NAaRavYctncy8V X-Developer-Key: i=stavinsky@gmail.com; a=ed25519; pk=2WxGZ1zd1vQwSPFCSks6zrADqUDBUdtq39lElk4ZE7Q= This patch series adds basic audio support for Sophgo CV1800B, as used on boards such as the Milk-V Duo. The series introduces an AIAO audio mux driver, an I2S controller driver, corresponding DT bindings, and DTS updates to wire the components together. The implementation is based on vendor documentation and testing on real hardware. This series relies on recent fixes in the DesignWare AXI DMA support; in particular, correct operation depends on the DMA changes discussed at: https://lore.kernel.org/all/20251214224601.598358-1-inochiama@gmail.com/ The current driver implementation supports a fixed audio configuration of 48 kHz sample rate. The series has been tested on the Milk-V Duo 256M board using the Sophgo SG2002 SoC. The implementation is expected to also work on Milk-V Duo and Milk-V Module boards based on the SG2000 SoC, as the audio and DMA blocks are closely related. Known hardware limitation: On CV1800B / SG2002, the I2S2 output pins cannot be enabled via pinctrl alone. Due to SoC design constraints, the output path becomes functional only after additional vendor-specific register programming. This series makes the limitation explicit and does not attempt to work around it implicitly via pinctrl or undocumented behavior. Signed-off-by: Anton D. Stavinskii --- Anton D. Stavinskii (8): dt-bindings: sound: sophgo: add CV1800B I2S/TDM controller binding ASoC: sophgo: add CV1800B I2S/TDM controller driver dt-bindings: sound: sophgo: add CV1800B internal ADC codec ASoC: sophgo: add CV1800B internal ADC codec driver dt-bindings: sound: sophgo: add CV1800B internal DAC codec ASoC: sophgo: add CV1800B internal DAC codec driver riscv: dts: sophgo: dts nodes for i2s tdm modules riscv: dts: sophgo: add Milk-V Duo 256M board dts .../bindings/sound/sophgo,cv1800b-i2s.yaml | 75 +++ .../bindings/sound/sophgo,cv1800b-sound-adc.yaml | 43 ++ .../bindings/sound/sophgo,cv1800b-sound-dac.yaml | 43 ++ arch/riscv/boot/dts/sophgo/Makefile | 1 + arch/riscv/boot/dts/sophgo/cv180x-dmamux.h | 57 ++ arch/riscv/boot/dts/sophgo/cv180x.dtsi | 49 ++ .../boot/dts/sophgo/sg2002-milkv-duo-256m.dts | 231 +++++++ sound/soc/Kconfig | 1 + sound/soc/Makefile | 1 + sound/soc/sophgo/Kconfig | 41 ++ sound/soc/sophgo/Makefile | 5 + sound/soc/sophgo/cv1800b-sound-adc.c | 322 ++++++++++ sound/soc/sophgo/cv1800b-sound-dac.c | 204 ++++++ sound/soc/sophgo/cv1800b-tdm.c | 714 +++++++++++++++++++++ 14 files changed, 1787 insertions(+) --- base-commit: 7a52965b6976c936f413eebeee3f78c6faf09012 change-id: 20260115-cv1800b-i2s-driver-4f17836dec56 Best regards, -- Anton D. Stavinskii