From patchwork Fri Sep 18 11:29:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Schiffer X-Patchwork-Id: 11784731 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2E772746 for ; Fri, 18 Sep 2020 11:33:50 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E75EC21D92 for ; Fri, 18 Sep 2020 11:33:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="aad+Ic5i"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b="OTh+syus" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E75EC21D92 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QDeNsqqWq+Wj0WrF6hFGIeInoN6rsIgITZq8obIFK3c=; b=aad+Ic5ixaaMnfxyjnLmHW5Ydt 1nwkKjveSRBCOyEyhvmcoPZLcM5FDawOLbz0Duttn5ungfwJ7b+nZKKtfyCDdUa3MGsncFSu3wa8S z5Owb9nZIxZMJGIjkm2a9z7F+9zaBMJmL5QZ4GQ2aU/qqvjH6SS27A1ByQUeZFsAoNUB1vO/FTn/y RsF+jbfbODtT/0HxZX8z+ySKOqqybKAzdV5TW50h4MmIw/VP5bcTKT4p/x5V37VozyWvkF69ECweq J8EnOGRNvVUHMMpvJfNFeULgK+1gD6tQ4iHbzeURCbKrlaxYt7j3Gidrm0uZ6rPXdsZCzB5F6Blhy e6QcURLw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJEcT-0002cD-Lk; Fri, 18 Sep 2020 11:32:01 +0000 Received: from mx1.tq-group.com ([62.157.118.193]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJEbw-0002R1-5l for linux-arm-kernel@lists.infradead.org; Fri, 18 Sep 2020 11:31:29 +0000 IronPort-SDR: V7WVX72kHlwemhRcgNOeNXZcB1CLd2q9bJoGnudIa7ex4F24XHg9E1lFFW/T9deeWd09gh1dRs fZTlHICpOo5p+eCEXyqD14cwpG0XL1tfS+MR7pBvp6h2l55eowHuV+ix7MLXHFSSBzHRoVlm3o O9R13QsRUrT1zrRtI1fg2BN/DB1UO7QwFVvvYBSIjZ6JK626M16WIdxCdFwNR0mJylk4RYGymu de9RdUK8JnhzEDIQwBsWXcFDmtRipXy10vAWBqKSYuirlPvTNRUaPju1L7rTJy6HYVdGHiYr1S e/I= X-IronPort-AV: E=Sophos;i="5.77,274,1596492000"; d="scan'208";a="13924490" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 18 Sep 2020 13:31:13 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Fri, 18 Sep 2020 13:31:13 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Fri, 18 Sep 2020 13:31:13 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1600428673; x=1631964673; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=I10vqLTcoLiOMfZKl6AX4I+2f6thxz8VIpdduM8aJac=; b=OTh+syus15S0TFFES7MBicuJAH9ILTar0+tRKOTBl17Fm58tCSJnbbfE VSMLneay91FCk0JCgcvEu1U8Wz/GFwCYCBTjvZNM6CAK2g8RVxvUEXz/W 88GZ2d8juDTNnhEdbBAz6Ubg8G7STM2X7SdVEzxTqmGIEB9P5bRz58M9G S+lWwCe0hwL03eujFhLGRlH6ocVLhfbDxQMARo+9Tr1LjNeOnNeNr0JuM 3YnAJJ81o4BTJcKf2w20MI3xzxSUhTyjKLU0A9A1BZlyD1x6KfYLuGHPE 1JpyzcuBPEhDRcYPDXSDk5KPH+uqzoytNZjRR7t0/McLnIhZSI2sumGt6 g==; IronPort-SDR: Ft+jVMigKDQaYiew1rvqkkV1gBpS94htjQy8Iv4K1ksCEucLt9BOZPGTXslbZpm88wB1mcCt7w Gp3r4Brzyw8fAPYzHexNx0cG3k/YGduZ42aErnyD3SwZhmGJkQ1/jA9EAk1pX0fzX1srVk7E6G 1+c1cVDzcFkKspia6Hmj9kM4fHP6zYrt2Go+fZAiyAK57d1hIL9SVzZDd68qib3RxWCwZqVOv5 SSj3dY9YXWF0DZiBhaoRtYXc7MPPiy8dD/+8EPWAv9JPdJBlY6zeb29XiIxt+Cj/nktB2WnwII NB4= X-IronPort-AV: E=Sophos;i="5.77,274,1596492000"; d="scan'208";a="13924489" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 18 Sep 2020 13:31:13 +0200 Received: from schifferm-ubuntu4.tq-net.de (schifferm-ubuntu4.tq-net.de [10.117.48.12]) by vtuxmail01.tq-net.de (Postfix) with ESMTPA id ABF3D280070; Fri, 18 Sep 2020 13:31:13 +0200 (CEST) From: Matthias Schiffer To: Rob Herring , Shawn Guo , Sascha Hauer Subject: [PATCH 09/13] ARM: dts: imx7-mba7: add audio support Date: Fri, 18 Sep 2020 13:29:38 +0200 Message-Id: <20200918112942.1367-9-matthias.schiffer@ew.tq-group.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200918112942.1367-1-matthias.schiffer@ew.tq-group.com> References: <20200918112942.1367-1-matthias.schiffer@ew.tq-group.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200918_073128_492350_85D64902 X-CRM114-Status: GOOD ( 12.28 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Matthias Schiffer , linux-kernel@vger.kernel.org, NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The MBa7x is equipped with a TI TLV320AIC3204 audio codec. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 38 +++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/boot/dts/imx7-mba7.dtsi index 215730e0453e..9cfaf0a91100 100644 --- a/arch/arm/boot/dts/imx7-mba7.dtsi +++ b/arch/arm/boot/dts/imx7-mba7.dtsi @@ -170,6 +170,20 @@ regulator-max-microvolt = <3300000>; regulator-always-on; }; + + sound { + compatible = "fsl,imx-audio-tlv320aic32x4"; + model = "imx-audio-tlv320aic32x4"; + ssi-controller = <&sai1>; + audio-codec = <&tlv320aic32x4>; + audio-routing = + "IN3_L", "Mic Jack", + "Mic Jack", "Mic Bias", + "IN1_L", "Line In Jack", + "IN1_R", "Line In Jack", + "Line Out Jack", "LOL", + "Line Out Jack", "LOR"; + }; }; &adc1 { @@ -363,13 +377,25 @@ >; }; - pinctrl_pca9555: pca95550grp { fsl,pins = < MX7D_PAD_ENET1_TX_CLK__GPIO7_IO12 0x78 >; }; + pinctrl_sai1: sai1grp { + fsl,pins = < + MX7D_PAD_SAI1_MCLK__SAI1_MCLK 0x11 + MX7D_PAD_SAI1_RX_BCLK__SAI1_RX_BCLK 0x1c + MX7D_PAD_SAI1_RX_DATA__SAI1_RX_DATA0 0x1c + MX7D_PAD_SAI1_RX_SYNC__SAI2_RX_SYNC 0x1c + + MX7D_PAD_SAI1_TX_BCLK__SAI1_TX_BCLK 0x1c + MX7D_PAD_SAI1_TX_DATA__SAI1_TX_DATA0 0x14 + MX7D_PAD_SAI1_TX_SYNC__SAI1_TX_SYNC 0x14 + >; + }; + pinctrl_uart3: uart3grp { fsl,pins = < MX7D_PAD_UART3_RX_DATA__UART3_DCE_RX 0x7e @@ -487,6 +513,16 @@ status = "okay"; }; +&sai1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai1>; + assigned-clocks = <&clks IMX7D_SAI1_ROOT_SRC>, + <&clks IMX7D_SAI1_ROOT_CLK>; + assigned-clock-parents = <&clks IMX7D_PLL_AUDIO_POST_DIV>; + assigned-clock-rates = <0>, <36864000>; + status = "okay"; +}; + &uart3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart3>;