From patchwork Wed Aug 7 11:20:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Jo=C3=A3o_Paulo_Gon=C3=A7alves?= X-Patchwork-Id: 13756165 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BC0A7C3DA7F for ; Wed, 7 Aug 2024 11:22:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=KwkYws5j52+z2kucEnWsDNWqsnwQjqdjpPPkg/VCoAk=; b=udHGTqeDgjEuLbsdwPp2pEyP9u rvmJ9FXxAMmMLE85ZPfESNxfvEE+ARCtRFRnEl43X+sjRltmBx6ysobmSc+9iBKWF2voV7A7lgon7 olfkJou/x9BcaJ+eLFOnTmWjZrb1Re9M3hbgk5vWJNesDCzPGHsVeQe1fmjn86DbnMXST8kv/kN7m GGr8r2FFa9lFoLdBeSTvfBoZY69xtRvBYSPLhBc1FaySsIuaXappuuQQ+Mqgt3qys7bzqFv6oB49e +oF6mCr9stQcwfMQma6vWoMPqqH7PJTFvnd+v/LdAG+M6QXZCtQtHXA+Wu7FDiFTPf6QYielqr3re APajXCsA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbejr-00000004qy6-2BNV; Wed, 07 Aug 2024 11:21:55 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbeik-00000004qhO-1gGf for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2024 11:20:47 +0000 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1fd640a6454so14473275ad.3 for ; Wed, 07 Aug 2024 04:20:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723029645; x=1723634445; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=KwkYws5j52+z2kucEnWsDNWqsnwQjqdjpPPkg/VCoAk=; b=ad+gZl4n4kId6XS/3916+MIphH0XmvobTYp5BCd7vL1kAyIkPdSIE5fHasG5vqNg/7 1qKrXJ3gzqPA7OeAyAc2PhrZX9UXZFTJ+ws0kZ8FeaUp4EiINZoe9cRMWdtqp8dTmWvn 957t/iLrZy4WChgrqcZX9tWVDNCH+JDEGHf7QjSAXFwUKoObF4iiNHq4N4+NKb/sg4fC QSzewC4qM7ELMpZ4XvIcVU8gJ5yZizXeNSIPhNcJJnATZs020HfJARfl3c+zaTJaD+7a 4IrL5irvSM3x4tqVUtlSvoS7BW06zMQ4ZTX4tbnLikd8wZM5/yN+Gfi5Sm+jTF7HV/tl oycg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723029645; x=1723634445; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KwkYws5j52+z2kucEnWsDNWqsnwQjqdjpPPkg/VCoAk=; b=UDjQlycavaP+YGbuQQi3dqKkoGEDlCgNu1WCHjAxDTMnnLHOtD7jggGRLBBlkfJmpd eqsyG/TER6syKZOvtftVzA6nGgQP/u0fCtJA7lZWu+0szfRFqWOijAE5mIBb34BBkUPH trr5LF3bPmfhxmhOQdmmv6qGYUZyIJnyqjPQyb/XO33OTc0m8k5qPwmUDVonDP8A++19 w2sNnulmWp/fEZFM7bt5U9basCqlXLtamfQpDI4WJ4O4n40Yo9aBoN0MnlDk+JSDiIoT Y+h9e+RR6tEzCd/Ff4mvETrvf4OGani31fYutcpVlyGz+ofyQsZgge/lCLV+HHafkI0A rWaA== X-Forwarded-Encrypted: i=1; AJvYcCWexddSJSezUes38ql65WYNJZysKKqIpQy9KadbCAlTbbMJFhxSNkOYtaAjr8k8JyUA34meijyldYlx/nUSq3YrNHltpZiHPna3sZlYfbsrE4+bshQ= X-Gm-Message-State: AOJu0Yy8pNc2FvwzlxkaRDCTOyBGsx34ZNkPH0zyHQImOwbDNYoC0gwm CW8k1iwXuslVLZquTOLgkgjsgeq/83k2xnYvvvcMMWAGFyv7GFSs X-Google-Smtp-Source: AGHT+IE8CHVzTTxp5c9wiYsDiVNWs2j72yJwS534nv7Sv9pDvfeSi7eAyAQSHa8yF1GHShhjSLgjaQ== X-Received: by 2002:a17:902:ecc3:b0:1fb:8a0e:76f9 with SMTP id d9443c01a7336-1ff573e7561mr222276485ad.39.1723029644640; Wed, 07 Aug 2024 04:20:44 -0700 (PDT) Received: from joaog-nb.corp.toradex.com ([67.159.246.222]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-200860f857asm11561445ad.180.2024.08.07.04.20.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 04:20:44 -0700 (PDT) From: =?utf-8?q?Jo=C3=A3o_Paulo_Gon=C3=A7alves?= To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: =?utf-8?q?Jo=C3=A3o_Paulo_Gon=C3=A7alves?= , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, "linux-kernel @ vger . kernel . org" Subject: [PATCH v1] arm64: dts: imx8mp-verdin: add HDMI audio support Date: Wed, 7 Aug 2024 08:20:35 -0300 Message-Id: <20240807112035.236036-1-jpaulo.silvagoncalves@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240807_042046_467201_3B379E4D X-CRM114-Status: GOOD ( 10.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add native HDMI audio to Verdin iMX8MP and all its carriers boards. Signed-off-by: João Paulo Gonçalves --- .../arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi | 10 ++++++++++ arch/arm64/boot/dts/freescale/imx8mp-verdin-dev.dtsi | 10 ++++++++++ .../arm64/boot/dts/freescale/imx8mp-verdin-mallow.dtsi | 10 ++++++++++ arch/arm64/boot/dts/freescale/imx8mp-verdin-yavia.dtsi | 10 ++++++++++ arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi | 8 ++++++++ 5 files changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi index fbcd93e33aea..da8902c5f7e5 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi @@ -65,6 +65,11 @@ reg_pcie: regulator-pcie { }; }; +/* Verdin HDMI_1 Audio */ +&aud2htx { + status = "okay"; +}; + &backlight { power-supply = <®_3p3v>; }; @@ -219,6 +224,11 @@ &sai1 { status = "okay"; }; +/* Verdin HDMI_1 Audio */ +&sound_hdmi { + status = "okay"; +}; + /* Verdin UART_1 */ &uart1 { status = "okay"; diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin-dev.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-verdin-dev.dtsi index 09733fea036d..a38e7c947a42 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-verdin-dev.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin-dev.dtsi @@ -64,6 +64,11 @@ simple-audio-card,cpu { }; }; +/* Verdin HDMI_1 Audio */ +&aud2htx { + status = "okay"; +}; + &backlight { power-supply = <®_3p3v>; }; @@ -215,6 +220,11 @@ &sai1 { status = "okay"; }; +/* Verdin HDMI_1 Audio */ +&sound_hdmi { + status = "okay"; +}; + /* Verdin UART_1, connector X50 through RS485 transceiver */ &uart1 { linux,rs485-enabled-at-boot-time; diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin-mallow.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-verdin-mallow.dtsi index 3a40338cf2d8..11cf3bdc95c4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-verdin-mallow.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin-mallow.dtsi @@ -62,6 +62,11 @@ led-3 { }; }; +/* Verdin HDMI_1 Audio */ +&aud2htx { + status = "okay"; +}; + &backlight { power-supply = <®_3p3v>; }; @@ -182,6 +187,11 @@ ®_usdhc2_vmmc { vin-supply = <®_3p3v>; }; +/* Verdin HDMI_1 Audio */ +&sound_hdmi { + status = "okay"; +}; + /* Verdin UART_1 */ &uart1 { status = "okay"; diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin-yavia.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-verdin-yavia.dtsi index 533b7fe218ce..cc389cda2af2 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-verdin-yavia.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin-yavia.dtsi @@ -85,6 +85,11 @@ led-5 { }; }; +/* Verdin HDMI_1 Audio */ +&aud2htx { + status = "okay"; +}; + &backlight { power-supply = <®_3p3v>; }; @@ -192,6 +197,11 @@ ®_usdhc2_vmmc { vin-supply = <®_3p3v>; }; +/* Verdin HDMI_1 Audio */ +&sound_hdmi { + status = "okay"; +}; + /* Verdin UART_1 */ &uart1 { status = "okay"; diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi index d23a3942174d..a19ad5ee7f79 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi @@ -77,6 +77,14 @@ key-wakeup { }; }; + sound_hdmi: sound-hdmi { + compatible = "fsl,imx-audio-hdmi"; + model = "audio-hdmi"; + audio-cpu = <&aud2htx>; + hdmi-out; + status = "disabled"; + }; + /* Carrier Board Supplies */ reg_1p8v: regulator-1p8v { compatible = "regulator-fixed";