Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1079270ybt; Wed, 17 Jun 2020 23:17:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeKDUW3fGUJzJ6xq2Z8uQ9M5NN6TOF84Ri8LZbuMRfTJYZxVYYK06M6uIwBgwQG+DcfH+h X-Received: by 2002:a50:fc0d:: with SMTP id i13mr2540175edr.260.1592461040605; Wed, 17 Jun 2020 23:17:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592461040; cv=none; d=google.com; s=arc-20160816; b=QcbP1di+OwmIG2v0wnAYh9D6pKych3jsktaE8q+sWZmwn0fc5Yt6cbaRQFUA01y5v4 QxfGPnBDk/TbOv6DIgXPnvY3XGnvYphF0gHPgD4ino2faZfDF/0zVhcXfockYq8MY3D5 ZaqhXZSk17H5LuC2LcQXWkiBQ4yYtQIs0/gsU0NjDOm5nuWMBbHcjErRTML9tt4b9thm ANxODbEhZnVUwKYDNGWrvEo4ahVbCSmRF5ymBTyZ/QLQmAXZUu/qN2/axN8MP/vf9SNH XUgJNz7vwXOonILi0iZSm7AIU4fT0spAb8dq5I4TR1umo9ytkwBr4C1ShuC9EtCOK0HO 86OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:to:from; bh=Hnlamuof1YBJlpegXHOeXjDowy/UJZnxFPoipFzWYyU=; b=BEaDdb7616AsvbeDOACbNuXtGKekREcDqIyb7E66zZRvXN9sy4e9V/WBPRRUlZLh44 R7FpEE1kOZ+a5BxolwwejtBkvr4NTet7JDC2qLYX5X3qABdTjX+rRgEwTsOo8Fcp+faA ipv4VRB3Zk/gsr+Y8g7fqRmv8No0fnCHES5nTHWhajaY+MxKEE+LLJTaN9DVgd345AJ2 GtMp9VXAu1kBFAyHQdjER9MY8NAZwlDzZTU7wdXkNa6KLIW7Si2q/BhBnp3+fM+5UE0v VJkoyZS9aRk1C55HGuaCumHZ0O/z7vslK5SbS/aa1TDw1scPmENCGlgKpAseerMGzhyl Q72Q== 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 s11si1117070ejv.515.2020.06.17.23.16.58; Wed, 17 Jun 2020 23:17:20 -0700 (PDT) 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 S1727876AbgFRGPL (ORCPT + 99 others); Thu, 18 Jun 2020 02:15:11 -0400 Received: from inva020.nxp.com ([92.121.34.13]:47242 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727823AbgFRGPF (ORCPT ); Thu, 18 Jun 2020 02:15:05 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 623E11A0E53; Thu, 18 Jun 2020 08:15:03 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 90DD11A0E4D; Thu, 18 Jun 2020 08:14:59 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id D27C1402B0; Thu, 18 Jun 2020 14:14:53 +0800 (SGT) 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-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/5] ARM: dts: imx6sx-sdb: Add SPDIF support Date: Thu, 18 Jun 2020 14:03:47 +0800 Message-Id: <89e6f23c1aeb224cca2231aa61ee8472c55ad64f.1592460381.git.shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add SPDIF support. Signed-off-by: Shengjiu Wang --- arch/arm/boot/dts/imx6sx-sdb.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sdb.dtsi b/arch/arm/boot/dts/imx6sx-sdb.dtsi index 69a502b369c5..976fa8691007 100644 --- a/arch/arm/boot/dts/imx6sx-sdb.dtsi +++ b/arch/arm/boot/dts/imx6sx-sdb.dtsi @@ -179,6 +179,15 @@ }; }; }; + + sound-spdif { + compatible = "fsl,imx-audio-spdif", + "fsl,imx6sx-sdb-spdif"; + model = "imx-spdif"; + spdif-controller = <&spdif>; + spdif-out; + }; + }; &audmux { @@ -296,6 +305,14 @@ status = "disabled"; }; +&spdif { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spdif>; + assigned-clocks = <&clks IMX6SX_CLK_SPDIF_PODF>; + assigned-clock-rates = <24576000>; + status = "okay"; +}; + &ssi2 { status = "okay"; }; @@ -569,6 +586,12 @@ >; }; + pinctrl_spdif: spdifgrp { + fsl,pins = < + MX6SX_PAD_SD4_DATA4__SPDIF_OUT 0x1b0b0 + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX6SX_PAD_GPIO1_IO04__UART1_DCE_TX 0x1b0b1 -- 2.21.0