Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2255136pxu; Mon, 7 Dec 2020 01:23:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWVyP9/OsMQ+1QWRyNNNfSq908iy7wP++bKJNojTjsEchUNwjU3tsuM/I5OTJxUTEpx02b X-Received: by 2002:a17:907:6e9:: with SMTP id yh9mr17972241ejb.131.1607333021698; Mon, 07 Dec 2020 01:23:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607333021; cv=none; d=google.com; s=arc-20160816; b=XQXmBPoFy20LkO+hoXnZI+CeOwOpCyA0DXr5TCXiwCItbSq0UpsyTFVFdBYxd92EBS M1oeopLJnVk+9V8fFUX5h4d//3fIFvfO8VEncLbPiyb68GDdkKpEIm4sU+ikv/qmU7cn nzbAphaHLvkZQKx6TcOZ124ZFfD5WpBJQml43JB4MjHa+x/Rj1ggJZlkbrcAJPEBPh4c USTUs7K58W7cxmVRdqH3qK6bCgT4I6W4nmoJmTxFaMc7zywknHv8LrCAiAqoC9UmWAWK PSRrPdcCevjhFmQIe7tGwQvbTS/5N/JMLra+3dxnnN+JquUXR+eWeZOqSaH+AgPofytv /JDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=Gxw1F9g143RFzJbhpT8agbqfpWFBfXsLVkV40sP1VrY=; b=CXWVI1xbW6t+r8VZ13xrpV2ARNq6bwT3dWbPNZ5M44hTOEnogxBcokZGB/YueqKngi 63zrIQmB4LPA4OZy7v4lNbyMb/IWV6LcqnNW8qDN/tumVqAzBNNmt5scIyx5AR198KdO IkKG+cTCD/Kxh7oWIj/PhKIX2YIS5viR3H+c2LKv5CaYSEfHbbUMofbyqSn052oEuO2d THUbO/TCWTpwMdL8DP5r/PCuqTwks3PJAtaDJDBPVFmz/47+EILNGH9OjhxmrJYHp4gs UkcCjEBBOn7tQFKV3el1y6v6QAQOcn+4YX1zd3D8zDIzxQ7HH3//h4PIUPmB0YJGmVRM LmIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by4si6008028ejc.732.2020.12.07.01.23.19; Mon, 07 Dec 2020 01:23:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726048AbgLGJVT (ORCPT + 99 others); Mon, 7 Dec 2020 04:21:19 -0500 Received: from inva021.nxp.com ([92.121.34.21]:44450 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725879AbgLGJVS (ORCPT ); Mon, 7 Dec 2020 04:21:18 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id C35F42009A6; Mon, 7 Dec 2020 10:20:30 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id AF60F200D5F; Mon, 7 Dec 2020 10:20:26 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 4E963402D0; Mon, 7 Dec 2020 10:20:21 +0100 (CET) From: Shengjiu Wang To: robh+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 Cc: shengjiu.wang@gmail.com Subject: [PATCH 3/3] arm64: dts: imx8mn-evk: Add sound-spdif card nodes Date: Mon, 7 Dec 2020 17:12:36 +0800 Message-Id: <1607332356-13431-4-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607332356-13431-1-git-send-email-shengjiu.wang@nxp.com> References: <1607332356-13431-1-git-send-email-shengjiu.wang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add sound-spdif card nodes which are supported on imx8mn-evk board. Signed-off-by: Shengjiu Wang --- arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi index 1d2c399eabea..a0dddba2e561 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi @@ -67,6 +67,14 @@ sound-wm8524 { "Line Out Jack", "LINEVOUTL", "Line Out Jack", "LINEVOUTR"; }; + + sound-spdif { + compatible = "fsl,imx-audio-spdif"; + model = "imx-spdif"; + spdif-controller = <&spdif1>; + spdif-out; + spdif-in; + }; }; &easrc { @@ -164,6 +172,15 @@ &snvs_pwrkey { status = "okay"; }; +&spdif1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spdif1>; + assigned-clocks = <&clk IMX8MN_CLK_SPDIF1>; + assigned-clock-parents = <&clk IMX8MN_AUDIO_PLL1_OUT>; + assigned-clock-rates = <24576000>; + status = "okay"; +}; + &uart2 { /* console */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart2>; @@ -300,6 +317,13 @@ MX8MN_IOMUXC_SAI3_TXD_SAI3_TX_DATA0 0xd6 >; }; + pinctrl_spdif1: spdif1grp { + fsl,pins = < + MX8MN_IOMUXC_SPDIF_TX_SPDIF1_OUT 0xd6 + MX8MN_IOMUXC_SPDIF_RX_SPDIF1_IN 0xd6 + >; + }; + pinctrl_typec1: typec1grp { fsl,pins = < MX8MN_IOMUXC_SD1_STROBE_GPIO2_IO11 0x159 -- 2.27.0