From patchwork Thu Dec 14 15:02:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13493171 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 060A5C4167D for ; Thu, 14 Dec 2023 15:03:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=Ss5wR419xmdcOMHOYGGamBDeAkgzQH511joDLYdhuDU=; b=ibFg03R2N4snxs C7Pp9O/Nuzq52CeQKEztc/tudOaXnOlRf/B9vJJrDMSESFMiZZorBLvDM4e9TDXM/dfelsky1UtY8 ElW1njyMIzQitXkybD5rH3khaBSPUm8kvQgo4tdkqc18MsLDdI8fTHZoMCG3jmgC1ydQxTJj4JUtR s9v+y7aFVGKc+Rv2N1SZV6xt1WpIBU+hwRvh6i2madZ62GTSihkv9igg2lflddLarP/7KVkfycyss 1C48hXxr37Xsycw5vANFxOrqnqiA1rJhpTxJtRSYKLLSds8WkytTpdnyBOYDd/5134euoHMmrYDX+ lmVJePGGsvrf08d8xNlA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rDnEp-000c88-13; Thu, 14 Dec 2023 15:02:59 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rDnEi-000c3A-2I for linux-arm-kernel@lists.infradead.org; Thu, 14 Dec 2023 15:02:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1702566172; x=1734102172; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eisuyFOlTcr+YrM17j+SBgd6K1yNTIGZqxFReQQ2Qy8=; b=BWNkFlZPueZswxwdIhMF2NvuepnJ7zRsUGgs0uKw/V7vSztkGiNUssw4 6gnvVD5uVHfGF7uVxaErFsJ9Uf27wiopwLRfipjg2fvnzOUChuDiu8NmI lzZE6/+zziiWyhbR+vTna49hyeuXUQ4FbxVGHuenS+5soRQZRoAOLPVUn Yzt1qjSonre3s9y+95Pa1ORDjX5UKfTv1fFpywVK0yHRwPnnGgX3NuCMY AuBJ6TDmlHU2pd1xBOgDAxXYbvfOrdGDrsp6zZvw/M5UQSTcsTqpl31qJ tZ2uRDTAEgx3mzvQlgWbtaQj1RdEQ2XwNuQMzJ2YMrE9kwYhCX2zXu5kt w==; X-IronPort-AV: E=Sophos;i="6.04,275,1695679200"; d="scan'208";a="34513401" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 14 Dec 2023 16:02:45 +0100 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.18]) (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 F3FDC280084; Thu, 14 Dec 2023 16:02:44 +0100 (CET) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 5/5] arm64: dts: imx8qxp: mba8xx: Add analog audio output on MBa8Xx Date: Thu, 14 Dec 2023 16:02:43 +0100 Message-Id: <20231214150243.1991532-6-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231214150243.1991532-1-alexander.stein@ew.tq-group.com> References: <20231214150243.1991532-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231214_070253_046926_21CC0D60 X-CRM114-Status: GOOD ( 10.53 ) 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 Enable SAI1, add the codec to enable LINE_IN and LINE_OUT support on MBa8Xx on connectors X9 & X10. Signed-off-by: Alexander Stein --- arch/arm64/boot/dts/freescale/mba8xx.dtsi | 27 ++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/mba8xx.dtsi b/arch/arm64/boot/dts/freescale/mba8xx.dtsi index a263c3d008023..6164fefb92184 100644 --- a/arch/arm64/boot/dts/freescale/mba8xx.dtsi +++ b/arch/arm64/boot/dts/freescale/mba8xx.dtsi @@ -116,7 +116,12 @@ reg_3v3_mb: regulator-usdhc2-vmmc { regulator-max-microvolt = <3300000>; }; - /* TODO: Audio */ + sound { + compatible = "fsl,imx-audio-tlv320aic32x4"; + model = "tqm-tlv320aic32"; + audio-codec = <&tlv320aic3x04>; + ssi-controller = <&sai1>; + }; }; &adc0 { @@ -204,7 +209,14 @@ &flexcan2 { }; &i2c1 { - /* TODO: Add Audio codec */ + tlv320aic3x04: audio-codec@18 { + compatible = "ti,tlv320aic32x4"; + reg = <0x18>; + clocks = <&mclkout0_lpcg 0>; + clock-names = "mclk"; + iov-supply = <®_1v8>; + ldoin-supply = <®_3v3>; + }; se97b_1c: temperature-sensor@1c { compatible = "nxp,se97b", "jedec,jc-42.4-temp"; @@ -298,7 +310,16 @@ &lsio_gpio3 { /* TODO: Mini-PCIe */ -/* TODO: SAI1 */ +&sai1 { + assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>, + <&sai1_lpcg 0>; + assigned-clock-rates = <786432000>, <49152000>, <12288000>, <49152000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai1>; + status = "okay"; +}; &usbotg1 { pinctrl-names = "default";