From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.140]) (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 C3A4C497B65 for ; Fri, 11 Sep 2026 22:15:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789164915; cv=none; b=MB4EtvwLHowljvnxnmIbU/muIPVfaTMczqTmpJNcZC89vVXrqGfTLeHuHDYDLjTKeFv/nKRqxCBZO8A4s9P+6zBrsHho1dBCOef9EEQfDelUcfH40sfZRM1yuTq0yFW2Blmel6knveIczJbLZZDNL/s9sQjMGV+5opbV3tUt1Fs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789164915; c=relaxed/simple; bh=PWDc5RQ3INoxq0fo7alWh++0I6W5IGuIRf0MFpXSV8s=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=h1MXQE+4mqEgBaaKruebnQ8vr2oS3Y0r4PH1Jkb/gN7Xvm5thFiAe+7s3eGrbaopd8Ptqfbap8mNTO4rDkrAszqqQikuQsVSf2Z1s7jXIqQUoiBcLZoxbQ4bWdwCINx12VNJH6lbnz3EVhG4hcFlGWTyVVypRp4SHRhTD+NmqUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=KXrunn0H; arc=none smtp.client-ip=74.125.225.140 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="KXrunn0H" Received: by mail-wm2-f12.google.com with SMTP id 5b1f17b1804b1-49cd38e0e5dso4411285e9.2 for ; Fri, 11 Sep 2026 15:15:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1789164911; x=1789769711; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=srhabopEjDrPGbNiaixTBBq3q3UYUb7b5seSM2Uisn8=; b=KXrunn0H++rtxAT5P89YqtdLALsAOg8nnkfM8BxbgeoKsKxtQYW/sPRA3FAc4i1fen OkQzihu837mwuEEaFR5K1oNKzt5cujjsaVqfZz15zjviGJuuZomtdY/Z2nlpxAlDyyjj BVIiDmA/1k3JyObs3Z8FLdV7TVeRXkFvUcc6OZpzE4x1WpX1wgdU8dYWLAN0WfoYUPIK 7EM2h6n7Mo7/bhwmPzMQgq/aaMB2tWUE4/D5yFFrT1J3dH0Ok7TvbIBzgyuCFblcXgwn TLWe5o07XJVC9fpqGS1eP63B002ue+ZULQi5HCemHoupFqgwRfv9/4cFCt14OeuUrqtx ccSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789164911; x=1789769711; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=srhabopEjDrPGbNiaixTBBq3q3UYUb7b5seSM2Uisn8=; b=MCo1lYXVdrzSRq2C/9ZJ+umyZsmWHZ3l/qVeBErI6K2+nZiWEHVUiWMmnrhJkNxApZ M/OmpBuj+c4sYRk2L2dkBRK0IzVqe+xtjJWTYGTs8KGevC1eWJRvoNgODAbd00l7QOrr DUxPS1dpIWSVVqT+yE2cWOXpwss6PUUxVD6Ra4rNtLlrRb6iSreoFyQOGAMGhpM7zdm3 DXigbnfzsg97kvPN85bpELyD3ZxVtS2o18eRiEXk3XymXEtKlDqVmTI8hM/CI0WvZ13T LDVZec1bf5s5Zu9xkWcUXh2dSCoMChCgzBBihFj7Bf75JcZvzs1JyeePkD+QQD7VFALw rv3Q== X-Forwarded-Encrypted: i=1; AKwUvByXvHYH/t06PFSk/UuVkmQjBQkIdt1LZupUQHnjf/zNhBlMwKnzD6IqMh1D/w2XQCzysWJPKNO+552D9Nw=@vger.kernel.org X-Gm-Message-State: AFuF++mS1Hjzsevge/Kpbe/qj8WjsPrU97V/lJzHsX+CZyz2cXZ0BZa2 P8DSQ4s+IjNSIIpBIPnt9KsAFD8VR6oHoGJTrK6QJePSgm1vEZj6gLDGQJ/8vLgiufw= X-Gm-Gg: AYBFou3lg/PQZs8kg5mYoytraMUUDANQDkyeX6XBOIf4Nm9wba9MpmScE3BL400gsE8 VLm8hIq5EVj8vb6uIeh5V5PFlC5GFWahNCkig2Ewfmwxx8MTGvzROzYgvNIy0EsxZNKS7f+Zext Pf5TJPOa0vjWxc2pbFa63k/my4wMBHi1V27K4H8DCBD++RO5RHPEaCE82KAKHizBU3ensSS9LPJ Hsh83Ex9A2vZd0IABUwHOs+1M9qmo5x4ycPnx0qMsy5zYy8aXH3U4d/1473VcVHmoRL+owSaYnX Lh1ygskP2xFv8Q4kglUZo9Qw73U37AcU+5NBZg6vOgl2ZCXR9PoZBMVjrQT1yRTx4YeG28g1y4z QOOZbdi/bX5KHjt9TX3vnzr6HAVojR7d+Uhf66DlKolNmV8Ea0h1X8+xnCISz0eaNEatoOu0980 dYF1Qy2eJiHSvMgNJuFtWp48rTmY1gh98A2vOvGyeaO0IDDrlUWtqJ/FbBdfDmibve4rOUJLvxW TpY X-Received: by 2002:a05:600c:3513:b0:493:f140:c3fb with SMTP id 5b1f17b1804b1-49e619c0357mr123658065e9.7.1789164911027; Fri, 11 Sep 2026 15:15:11 -0700 (PDT) Received: from [127.0.1.1] ([151.42.87.32]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49d26c2a419sm202882745e9.7.2026.09.11.15.15.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2026 15:15:10 -0700 (PDT) From: Valerio Setti Subject: [PATCH 0/6] ASoC: meson: gx: add base support for I2S audio input Date: Sat, 12 Sep 2026 00:14:30 +0200 Message-Id: <20260912-audin-v1-0-7fbefe928711@baylibre.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=H4sIAEZ9pGoC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIzMDC2ND3cTSlMw8XcvkxKQkE1OD5GRLEyWg2oKi1LTMCrA50bEQfnFpUlZ qcglIs1JtLQAVIgntaQAAAA== X-Change-ID: 20260831-audin-9cabb450cc94 To: Jerome Brunet , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Martin Blumenstingl , Jaroslav Kysela , Takashi Iwai Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Valerio Setti X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3226; i=vsetti@baylibre.com; h=from:subject:message-id; bh=PWDc5RQ3INoxq0fo7alWh++0I6W5IGuIRf0MFpXSV8s=; b=owGbwMvMwCV2z3ty7kUrRgbG02pJDFlLanOaRdZMWiury/nzTfOTv99ijh7ZIG6rNWFa9b6ZK 3/UeT+M6ChlYRDjYpAVU2RhmX7vd0Gp2kPjhJMFMHNYmUCGMHBxCsBEAo8x/A/Z9ERcTLvnivwC h9+mV8XKT96fcuzu+WOqXI3LGX5Jh01m+J9+cd8XMRsXcV1mrd9NDN5LohSW15geuMURO3uHM5d TDjcA X-Developer-Key: i=vsetti@baylibre.com; a=openpgp; fpr=0497DEFB707526E13360C970DE4B936DD13A0100 This series is the 2nd part of the initial RFC [1] proposed to add audio input support to the Meson GX SoCs. After the AIU reshaping series [2] that has recently been merged, this one adds the audio input path itself. The biggest change from the RFC concerns the I2S data formatter. Previously it was a DT node owning a single register, which was deemed an invalid binding. There is now a single audin node owning the whole audio input register range; it instantiates the widget for the I2S data formatter, following the solution already used by AIU, and then probes its DT child nodes implementing the FIFOs. This lets the three FIFO instances share one driver. Resulting capture topology is: pads --> AIU I2S Encoder -> AUDIN I2S Formatter -> AUDIN FIFO -> RAM This series includes all the changes related to this work (dt-bindings, drivers and device-tree) in order to give the full picture in one single place. Unfortunately, since no Meson GXBB/GXL board available in the tree feature an I2S capture capable codec, this work cannot be directly tested out of the box. To test it an external codec must be connected to the SoC. When working on this series, a custom hat board with an NXP SGTL5000 codec has been plugged on top of an Odroid-C2 (GXBB). The last commit of this series fully details all the device-tree changes which are required to finalize the support for this scenario. With this hardware configuration it has been possible to succeffully validate the implementation with: - alsa tools (arecord) - pcm-tests [1]: https://lore.kernel.org/linux-sound/20260411-audin-rfc-v2-0-4c8a6ec5fcab@baylibre.com/ [2]: https://lore.kernel.org/linux-sound/20260610-reshape-aiu-as-axg-v2-0-cac3663a8b51@baylibre.com/ Signed-off-by: Valerio Setti --- Valerio Setti (6): dt-bindings: sound: amlogic: add schemas for audin components ASoC: meson: add audin main module and I2S formatter ASoC: meson: add audin FIFO driver ASoC: meson: aiu: add I2S Capture DAI ASoC: meson: gx-card: add support for audin FIFO arm64: dts: amlogic: gx: add nodes for audin and its FIFOs .../sound/amlogic,meson-gx-audin-fifo.yaml | 52 +++ .../bindings/sound/amlogic,meson-gx-audin.yaml | 96 +++++ arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 35 ++ arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 22 + arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 22 + sound/soc/meson/Kconfig | 14 + sound/soc/meson/Makefile | 5 + sound/soc/meson/aiu.c | 7 + sound/soc/meson/audin-fifo.c | 466 +++++++++++++++++++++ sound/soc/meson/audin-formatter-i2s.c | 174 ++++++++ sound/soc/meson/audin.c | 109 +++++ sound/soc/meson/audin.h | 14 + sound/soc/meson/gx-card.c | 16 +- 13 files changed, 1025 insertions(+), 7 deletions(-) --- base-commit: cee9395acd8043be0644b25c34bfa86623f2b935 change-id: 20260831-audin-9cabb450cc94 Best regards, -- Valerio Setti