Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp835359rdb; Fri, 23 Feb 2024 01:06:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXBq8GUMkTI564d/z4dEJUUzGJVSq9G+4ZgRCtbBaxU+rt/AF4U3PCIRapgOrAmanQzVpQiWrl/9HhNxdHopg3HoOmuYkTyGgLNoWhpGg== X-Google-Smtp-Source: AGHT+IH/6CmLjn0YbZjFhPrwsQu9RQ1hHYICf2dnvRWD5tJIwFIXJwoSu7h7/o42Phupiw/JJyB+ X-Received: by 2002:ac8:7f07:0:b0:42d:fe52:8bb3 with SMTP id f7-20020ac87f07000000b0042dfe528bb3mr1891375qtk.41.1708679215867; Fri, 23 Feb 2024 01:06:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708679215; cv=pass; d=google.com; s=arc-20160816; b=lokMPPmh87Hh/Oo0xjhFnTskPrVtLIpfTEDj5CKQ7JRMy2qByMG/WHCrrrsgpc3Hk0 /wu3bQn+RJEmyha726czhTG0slocLgic0uz++XLWvuJabh0TGKgA7c2Q6HuTcCxH+Ott DvLMmmXh0LHGdfYJDM0QYHbcjHW1uVRBLWznEZI/H52Ci1EqzaDoKOTk0T6kM0FMsHWY SWkipssJ1de66Odt5xTr1SIIc70SOwlICDSHpKep2bOeSytpuGFHlAZsccRZ6M4C7ORq RiARq4kxd/nF8UxTIj5VPnRwMgJFXt0+CfdrDe78gTAZ/ZX3VejiVw4IGdm8D9Fel+sv DHUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to :organization:message-id:date:subject:cc:to:from:dkim-signature; bh=VgtHxEGL1VIdQ9PPu9qSENiuIzT8Bdf8Y4csSbIwc7k=; fh=MtIfSnpl2HiqVorV9QedBnuTVYXH69r9O5/yVSdlxaM=; b=wji79CNTL912/65inuWyoouT8LgFUcSsJx7u2akVcP8RG1Q7r4kKXqZGGQ2Ba9P5xf MnuShjMKb0C1eCcfWy2Gjm0Ny0RBGOTPa04CmRYjmh+Ldl6mIuxuFHAYhgQHj2PHK/tO P54nw/SWmc6F49B1d6m0qJxB/pg5NwiwYYa5hgBlIDwQWM2bbZSjXmPCdlFVZnQQyQHG yVfSyOch/38Ky1OY+K29qRNuV5dvG30J6Ybe6cFW0S+BV1BgCLUX0lqZ5X55GkI6h/ek fLOCp7kaAQmmUXq3RyBrnmogF/w9VGK3ktd8xR1AEfYLqW++DYLEwKHd+lZfcmDdECMk +Zbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=SoG8xm5R; arc=pass (i=1 spf=pass spfdomain=ew.tq-group.com dkim=pass dkdomain=tq-group.com dmarc=pass fromdomain=ew.tq-group.com); spf=pass (google.com: domain of linux-kernel+bounces-77970-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77970-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ay15-20020a05622a228f00b0042e63dd9b84si567190qtb.563.2024.02.23.01.06.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 01:06:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77970-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=SoG8xm5R; arc=pass (i=1 spf=pass spfdomain=ew.tq-group.com dkim=pass dkdomain=tq-group.com dmarc=pass fromdomain=ew.tq-group.com); spf=pass (google.com: domain of linux-kernel+bounces-77970-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77970-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 90C9C1C22218 for ; Fri, 23 Feb 2024 09:06:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 387D317BCA; Fri, 23 Feb 2024 09:06:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b="SoG8xm5R" Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E08411CBF; Fri, 23 Feb 2024 09:06:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=93.104.207.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708679206; cv=none; b=UvVCquP6qGXnmaTCAAKqcs7/DWDTtFztpzq6PgbJ9qqKEKrSUqKtdDYCMlUfU/iAsSWuPdDTI3AUTxYoYoDhQCO9sd8GO7790A/+MTXY+u0r8bwOpPqjIzrZAFxzMIZ7Mhpdv5cgRrl+UWls0WJE8DLK3w4+zzVdeCVYc4/XQwA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708679206; c=relaxed/simple; bh=Bh0dPiH+mKxEWK6cUDABbed2Pe8Xm10K5FtG9kZd1mw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fYL15NorZSxUWWttS0GX9QX9YOQ57sXwaA3jKflZkK1WhruqnUlBKOjqtKBkYZw/WolleI+zVsLirPBjR4/pYLTDqH9/ncOlZn8uEat8kR7ArwPKkR4+LpWffxM8t70p0bHLgcpr4BoagqSZ8MExslgoDL2pXegOm7lUmMRILZ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com; spf=pass smtp.mailfrom=ew.tq-group.com; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b=SoG8xm5R; arc=none smtp.client-ip=93.104.207.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ew.tq-group.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1708679202; x=1740215202; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VgtHxEGL1VIdQ9PPu9qSENiuIzT8Bdf8Y4csSbIwc7k=; b=SoG8xm5RIoCo09pdf2wJMXimWeE9udDm+63J1uKMa5RQglRpJK5GuaXf dAERKWnZiUlWnmMpNsQ7d2RjTT+dPfzcUVFF7+TWRH2UDC6ZaavnUFa8T UP3FAMZ/S8AwLZDqH0Y4RpffCqeDTckOhok2h+r0F/yXgJZqYv800lYeI aJofscXk+5lYZPv7lNlPBh5ERZFaJCLoYlzeBfb2vjyJWDjstyN0V9gNf LOaIMs3HKswMX7JeLaHnZWhEVsPXlQ3B9vNqDG9b47D2yrKVNTsTtndJq 1VctAepuG3mqpYPTAlBgqNG8/Sm3Cjo1tc9sm8QHKkR1yaebne1nOa8/X A==; X-IronPort-AV: E=Sophos;i="6.06,179,1705359600"; d="scan'208";a="35562337" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 23 Feb 2024 10:06:34 +0100 Received: from steina-w.localnet (steina-w.tq-net.de [10.123.53.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id F316D280075; Fri, 23 Feb 2024 10:06:33 +0100 (CET) From: Alexander Stein To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, shengjiu.wang@gmail.com Cc: Shengjiu Wang Subject: Re: [PATCH 1/2] arm64: dts: imx8mp-evk: Add HDMI audio sound card support Date: Fri, 23 Feb 2024 10:06:33 +0100 Message-ID: <1786327.VLH7GnMWUR@steina-w> Organization: TQ-Systems GmbH In-Reply-To: <1708675339-8180-1-git-send-email-shengjiu.wang@nxp.com> References: <1708675339-8180-1-git-send-email-shengjiu.wang@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Hi, thanks for the patch. Am Freitag, 23. Februar 2024, 09:02:18 CET schrieb Shengjiu Wang: > The AUD2HTX is a digital module that provides a bridge between > the Audio Subsystem and the HDMI RTX Subsystem. This > module includes intermediate storage to queue SDMA transactions > prior to being synchronized and passed to the HDMI > RTX Subsystem over the Audio Link. >=20 > AUD2HTX works as the cpu dai in HDMI audio sound card. >=20 > Signed-off-by: Shengjiu Wang > --- > arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 12 ++++++++++++ > arch/arm64/boot/dts/freescale/imx8mp.dtsi | 10 ++++++++++ > 2 files changed, 22 insertions(+) >=20 > diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/bo= ot/dts/freescale/imx8mp-evk.dts > index f87fa5a948cc..63f6e72fa18a 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > @@ -138,6 +138,14 @@ simple-audio-card,codec { > =20 > }; > =20 > + sound-hdmi { > + compatible =3D "fsl,imx-audio-hdmi"; > + model =3D "audio-hdmi"; > + audio-cpu =3D <&aud2htx>; > + hdmi-out; > + status =3D "okay"; No need for 'status' here. Don't you need to configure the PAI as well? See [1] for downstream implementation. I'm wondering because I had to hack something similar. Without I got no HDMI audio. Best regards, Alexander [1] https://github.com/Freescale/linux-fslc/blob/6.1-2.0.x-imx/drivers/gpu/= drm/imx/imx8mp-hdmi-pavi.c#L51-L59 > + }; > + > reserved-memory { > #address-cells =3D <2>; > #size-cells =3D <2>; > @@ -191,6 +199,10 @@ &A53_3 { > cpu-supply =3D <®_arm>; > }; > =20 > +&aud2htx { > + status =3D "okay"; > +}; > + > &eqos { > pinctrl-names =3D "default"; > pinctrl-0 =3D <&pinctrl_eqos>; > diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/= dts/freescale/imx8mp.dtsi > index 9ab9c057f41e..721ab630d895 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi > @@ -1513,6 +1513,16 @@ micfil: audio-controller@30ca0000 { > status =3D "disabled"; > }; > =20 > + aud2htx: aud2htx@30cb0000 { > + compatible =3D "fsl,imx8mp-aud2htx"; > + reg =3D <0x30cb0000 0x10000>; > + interrupts =3D ; > + clocks =3D <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_AUD2HTX_IPG>; > + clock-names =3D "bus"; > + dmas =3D <&sdma2 26 2 0>; > + dma-names =3D "tx"; > + status =3D "disabled"; > + }; > }; > =20 > sdma3: dma-controller@30e00000 { >=20 =2D-=20 TQ-Systems GmbH | M=FChlstra=DFe 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht M=FCnchen, HRB 105018 Gesch=E4ftsf=FChrer: Detlef Schneider, R=FCdiger Stahl, Stefan Schneider http://www.tq-group.com/