From nobody Sun Apr 12 07:25:02 2026 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 DFB9338C2D7 for ; Sat, 11 Apr 2026 14:58:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775919504; cv=none; b=p4KdlhLlEidRCRgGuneCwTlRbw3gEO792kzgt4jk8lNFyu/k/E+wJYBSdBTs6LXftLY0UmGcc7iNxR7/+kZVNrX8vmi+s47MFn7I6JJXbipDJhChsDh2ma8diUBLkdI9a8Svse72MzfdkkcVr8yJGCJjBUCyPnm7ahQqST/8jOc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775919504; c=relaxed/simple; bh=G0Gm8t6IneiVYTkTeSCPBc6CjJqlMmdql/bqJBW4d+4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eHdDlJ1lwKzr+63XO0YUB1hD2zznbSCwtje2Oegaa7aZSIPWvKuIv4xlyHoqTGkRrdAdtEix5kdWVOEPzI/VCNLeYbKyc0muFirAKluV0+za8WxlcUKu3yVLJoO3Z3ybFUuWECqca6BNNTcXlnWk50jPd+Cem6HpCZxnQkR+/fs= 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.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b=IGN0mRVV; arc=none smtp.client-ip=209.85.128.49 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.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b="IGN0mRVV" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-488a14c31eeso23155725e9.0 for ; Sat, 11 Apr 2026 07:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20251104.gappssmtp.com; s=20251104; t=1775919493; x=1776524293; 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=QPh0SQsOnsDniPo3dQ9nl1UbMYpXngLC6j6GE4dl7dE=; b=IGN0mRVV0NbUpCm4Ml5wCTsrjPdXouj0BjERPHLM+P7Lp7CbskHfqRYgUhE8AFAY69 6W7ONTzFoml1i9t8o6APMvTuKJbfPwDCMlhf+vRQCIgLYr1c25fBp20Jmp4prSEM3ps/ 4oGrSCuO5t5nyZk8UX3H+1EpMo9rW6vzrbr2gusPmiAm893XWItgPE8sSAb41qKGonFo +uTP31sqntwcAMkbL79+G79EKcIDbcK5gD99We14iqS2rNf9SGtiEks/Y52L5EX4R83h 4OCorpuK13a4sj6nEOv0r71wc0iJoMBuzAVMTo/nJ0vqfR0uEehxJ3tz8gCqB6jKIxMp axtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775919493; x=1776524293; 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=QPh0SQsOnsDniPo3dQ9nl1UbMYpXngLC6j6GE4dl7dE=; b=GTFDeUDpm1uhNGFplL/HnNKCjXyFESp/SzzJuB9yK4kdeXbAJO61mrtIzg3HDOMKLx NPygTGWobyZ3aXQNuREEH9GdO2fLg/C1VtRbb5gJpj+UAMKwAit/FZO64ePoMQn7ce2k 4PNrp45eKamJYTFxF9sEd69bnx70heSI5dPfmAmdwXQ6lfR/J1jWOoBdptrs1lPEI09u 574Lm4U4/ITjcQBF4AomzDsM+td5dh7snFhQea1Y560m+fLcWDWiEWCLCB2wltPehax3 TP/Ta5rXI5G1G1RjdcJmXpt7qr3BEfDDEa4lzdy1oWVJSk/6aBVwW9j8yeZTICd3RmvX Aeuw== X-Gm-Message-State: AOJu0YwTub0m3KNzRHJTAKL0ydghdCZQ43rtekW5/da4bAk911Y8Peoc PJGkRh93vBCLs9VmPFgbZlg8vOfpJQ34e7tl1X7r8SMIgg/UNL4KMe2GrEyjKioyAAk= X-Gm-Gg: AeBDievhPlFGiRdoq5pJEuLb6XseE2ixZNIgC61YGv89r2OBeS82TJBMbBUYURgt9cx YhaQwLVsExLijBQABN3OY3uI2WKEopsBmdqpKY8uAufvKxSj3whXv6QHUNt8SFmBE+46DxcKxnr HhUMSKCWKqBWvwI0s9yE/kqtvwBOheRTe2ilSvpW0coOYRpVq9PSt7O+N/wA279tlvfbNR/iwGb 5mrvJHtiBazlU2V422kV7pUIbDKQoEG2R0GucFHj2QGwNmBobZjgWdg3Je/0Nia0D/nB3gOz0wG NGgkPww0j8aPhw1YZpMvLSso8v+sjGOjBqBvKdHOsS8wTgwWA6gZXXbp+fadHDYmADzzeNpZmWo rXnS36SCXAFxH3yeX4k8B+M6py7VsxUz/Pho+2S3hYddX5NTiEW3H6NKmhC3UaERUsOJmWDUue2 5YQ4HTH1xhIjqveyuMjCzp X-Received: by 2002:a05:600c:45cf:b0:483:8062:b2f with SMTP id 5b1f17b1804b1-488d67b8dddmr90911785e9.6.1775919492745; Sat, 11 Apr 2026 07:58:12 -0700 (PDT) Received: from [127.0.1.1] ([151.61.248.52]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488d5dc7070sm48882375e9.10.2026.04.11.07.58.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Apr 2026 07:58:12 -0700 (PDT) From: Valerio Setti Date: Sat, 11 Apr 2026 16:57:36 +0200 Subject: [PATCH RFC v2 11/11] arm64: dts: amlogic: odroid-c2: add support for I2S audio input 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: <20260411-audin-rfc-v2-11-4c8a6ec5fcab@baylibre.com> References: <20260411-audin-rfc-v2-0-4c8a6ec5fcab@baylibre.com> In-Reply-To: <20260411-audin-rfc-v2-0-4c8a6ec5fcab@baylibre.com> To: Jerome Brunet , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Neil Armstrong , Kevin Hilman , Martin Blumenstingl , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Valerio Setti Cc: linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2057; i=vsetti@baylibre.com; h=from:subject:message-id; bh=G0Gm8t6IneiVYTkTeSCPBc6CjJqlMmdql/bqJBW4d+4=; b=owGbwMvMwCF2z3ty7kUrRgbG02pJDJm3EkvqxVwT5VamJ1TGemSZrpGo//vDKYVhXsDtaT9/n d2a1vCyo5SFQYyDQVZMkYVl+r3fBaVqD40TThbAzGFlAhnCwMUpABOZtYXhv3uboq/N4frukMUf t4nU8UmbXFJtuSO040y/Yqmh6CY3I4Z/mocXTZBzknidk319x109g85X2gJL3tnpVhtHXvs7SYC dDQA= X-Developer-Key: i=vsetti@baylibre.com; a=openpgp; fpr=0497DEFB707526E13360C970DE4B936DD13A0100 - Enable AUDIN I2S decoder and all FIFO components; - Add AUDIN I2S Decoder as AUX device to the GX sound card; - Add AUDIN Capture frontend DAIs in the GX sound card; - Add I2S input data routing to the GX sound card. Note: in the routing part, usage of "AIU I2S Encoder Capture" as source for "AUDIN I2S Decoder IN" is fine (despite the Encoder/Decoder mismatch). This belong to the fact that the interface is implemented by "AIU I2S Encoder", which was already existing (and named) before the AUDIN addition. Signed-off-by: Valerio Setti --- .../arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 34 ++++++++++++++++++= ++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm= 64/boot/dts/amlogic/meson-gxbb-odroidc2.dts index 5943bc810678edc81fe1a8e3eeae69786e27010c..54798e5b631fdc594cabc5876ab= 73a3a85944ab0 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts @@ -188,6 +188,12 @@ sound { <270950400>, <393216000>; =20 + audio-aux-devs =3D <&audin_decoder_i2s>; + audio-routing =3D "AUDIN I2S Decoder IN", "AIU I2S Encoder Capture", + "AUDIN FIFO0 I2S IN", "AUDIN I2S Decoder OUT", + "AUDIN FIFO1 I2S IN", "AUDIN I2S Decoder OUT", + "AUDIN FIFO2 I2S IN", "AUDIN I2S Decoder OUT"; + dai-link-0 { sound-dai =3D <&aiu AIU_CPU CPU_I2S_FIFO>; }; @@ -209,6 +215,18 @@ codec-0 { sound-dai =3D <&hdmi_tx>; }; }; + + dai-link-3 { + sound-dai =3D <&audin_fifo0>; + }; + + dai-link-4 { + sound-dai =3D <&audin_fifo1>; + }; + + dai-link-5 { + sound-dai =3D <&audin_fifo2>; + }; }; }; =20 @@ -216,6 +234,22 @@ &aiu { status =3D "okay"; }; =20 +&audin_decoder_i2s { + status =3D "okay"; +}; + +&audin_fifo0 { + status =3D "okay"; +}; + +&audin_fifo1 { + status =3D "okay"; +}; + +&audin_fifo2 { + status =3D "okay"; +}; + &cec_AO { status =3D "okay"; pinctrl-0 =3D <&ao_cec_pins>; --=20 2.39.5