From patchwork Wed Aug 7 13:54:20 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: 13756338 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 941FCC3DA7F for ; Wed, 7 Aug 2024 13:55:32 +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=2+7ZjMlY8No3qSDfq4wKYHrpdYKh1AhNqpfBDU3gqWg=; b=H77VL5V8rWkIhjU9jEo79ZjBze 492FpiJJ+xT5+2mJx8nZHikAhNow3SQSyYgK2uy7gCDzAExuZgDUnS2OgdThHyxVz2MY8YBW6AgJQ 4WbTqR9CbDpGWYJH/U577GIQp1i5uIXxaqa/KstDgU7iaPu/q/SFh4lb2pu/2u81U/vO0Syv/z7bO u6Y5ZQ6X/roDFUK0RguV3lKGW25Tl82LcPMmfjZcvrAjE9pR9HVtevkqURu0HYsI529O2o7lhtPOY loYOCQPaoyPU9m90gmKYM/luyzrmnikW2Iyv+kKB3LAdf+ZDd/fgSG/rTcXIz7jrTUPCGCV4DWlPM BLINzzrw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbh8N-00000005EDB-15qB; Wed, 07 Aug 2024 13:55:23 +0000 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbh7m-00000005E0r-1miA for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2024 13:54:47 +0000 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-70d199fb3dfso1465917b3a.3 for ; Wed, 07 Aug 2024 06:54:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723038885; x=1723643685; 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=2+7ZjMlY8No3qSDfq4wKYHrpdYKh1AhNqpfBDU3gqWg=; b=kvDRMOHiidV3LoKysDv0hpCzb6dztsmoSO6/zc7cK6FOITGGHkX0NSPR3C+Y7C0sDg 6sRSFWW2vLOu4QS8Vb4AGshRBz1cI/wr8fq8tYYhEQN20wrCil0Vl9XY/oLk6WBFEHnE Jznytx8zyVKvAIpr3pfURsK7xxt+cSchLNhGBsSGV/9nhk6XxyuOnAJ//u8yGbeQIBvk J6Y/eonOL7BwltAqipRw1cDnIdp4NhxzguRj80HLQb3O+Mskdw/sUIUOlM3Ap4K4J1Mi vzwK9ZlWfuPR10qHQjgrK0whguA5XvEr4+k3QoSo8TF6VKvyCa2CfqJKGLQequk2oMry 7xLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723038885; x=1723643685; 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=2+7ZjMlY8No3qSDfq4wKYHrpdYKh1AhNqpfBDU3gqWg=; b=WiGf/egWn7waBjRC5klUFvVRaxtZMgK5JXRhRnyRi4y50fYYyF6GyFl5EnjMUJkqva MvbIjvwjxHWGp4JiAP5mkTnRlYcMt7LlePBhekYOpk+aH1SqzB5cTcELw711BhQnANrB e7T/A6WdqDnWW6ij/LOemDUOqWfeQg/cEgi2pZ14loEXchfnuUcl+N1CAITncSIsrKLT hUZfJy49W4ML2G4/0Vc1Pc1GibftDd1TycsT/lGW+43qCjCM8+Yj/VDSE72YlabRQGuY qJDzYZ9QCaKDFN3E82WwdQIasKPFoJvqZMWKirp2jeVErrp8oHrGwjoXFeIxj1z3hu8/ Mh3g== X-Forwarded-Encrypted: i=1; AJvYcCWnQP18uUBOmHQwetW0/4+bAqjg0zzfe+gsCwLpFcElDW3j4dpvwnRu2UaJPF0BRS0hlMdd8eeBqsFFhxIvNiBfkPs9+fkGBrE6oYephwprESV5Ajw= X-Gm-Message-State: AOJu0YzwQEbqFPUHNQnB6eJ7a6ppj3DfJugpgMGd8FqhlkNpobbOmQg1 bv7ufMwJFXQNuDeeQwRdkKlG8DRWts92h6R4eaNY2ba227sH8eXg X-Google-Smtp-Source: AGHT+IEQC3SA5Rtjou8jJDGYcDGSdERECkY0cz/9nJegnkoYsE/gA/jz3C8dGg6iDpJ2Kx2OjiiguA== X-Received: by 2002:a05:6a21:2785:b0:1c6:a561:d387 with SMTP id adf61e73a8af0-1c6a561d6d5mr16712995637.53.1723038884835; Wed, 07 Aug 2024 06:54:44 -0700 (PDT) Received: from joaog-nb.corp.toradex.com ([67.159.246.222]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7106ec410d1sm8451996b3a.66.2024.08.07.06.54.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 06:54: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 Subject: [PATCH v2] arm64: dts: imx8mp-verdin: add HDMI audio support Date: Wed, 7 Aug 2024 10:54:20 -0300 Message-Id: <20240807135419.248219-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_065446_509286_470C544D X-CRM114-Status: GOOD ( 11.17 ) 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 From: João Paulo Gonçalves Add native HDMI audio to Verdin iMX8MP and all its carriers boards. Signed-off-by: João Paulo Gonçalves Reviewed-by: Fabio Estevam --- v1: - Fixed wrong "From:" for the patch .../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";