Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp168213ybh; Sun, 12 Jul 2020 02:25:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyn77DcKGqrTw71TD3k37tI6Iv6VPevhpOl2oiUizLC9zcOjNO53vcqLTnuRhC7NoRU7et/ X-Received: by 2002:a17:906:4f16:: with SMTP id t22mr67258653eju.179.1594545910810; Sun, 12 Jul 2020 02:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594545910; cv=none; d=google.com; s=arc-20160816; b=j+Tv5SgBvMx3IeGYQbbvdu2XcwhaGBouxNjgwqcom1lRQwON+iQ5QV9uUi+V1oDDSh sD6F9Pnlzxz/Z84C/7IRICaeihVYh0AclSMIceBb+xPdo1HNQwiRC+rwT8hDtNntwbHY 2LHOQEceqJivpVNuiqVL2T8YXWhJ6BtgTCmzVkRZmaJqYILocoEq2okjpsk+oFUrk2gB D/Oi4aYkWn0ktxmrPZsDjaSIqmGv3X131yA8TPoBLSe0A3eShvkbJNmNW4VkHYzjtvfj ts6TbTi5XDc0BcQsdA4xR0FmvNp3978MIcCtyvd7pSPSfdGipMekx6xpYpd3aUnF0C8L w/jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from; bh=n0VsouD4O3gcqGmgxgmb6YEPdQsAEkL4iXcG/0Mj2Co=; b=DUndZZid/pmz2BpuEifK11rDIQQC+HcHK7Fm23ZsW9hRWbJ17AlPu/YFtYv6w7Zohs +R7cQniqfDLRDYdMhOWUKOoHo6KoG/p6VJ2eXlu3RkV9ZFYg4JIe1lUD+H1pgT+4Sp40 dJH05XvCzpdnpiaTzUvw5+1TdraVb7AHqYrCiFt5aRO9ZPMaC6Ek/qJAb5ROcUc+J6Eg lzEQbypRZ1ZvgVaWzz9qvX6Zd6+rOG+xl046Dhxe6zxPW59YeK/uvVh2G+cgrE0sQdKf eRKWJLJMJ6gE0aWTxWhNNPFS42MU4M0yBsSVWAapCKh2KDf4fEtIdmrdT2wlJlSVGz1S VCoQ== 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 o3si6982368eje.601.2020.07.12.02.24.33; Sun, 12 Jul 2020 02:25:10 -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 S1728354AbgGLJUR (ORCPT + 99 others); Sun, 12 Jul 2020 05:20:17 -0400 Received: from inva021.nxp.com ([92.121.34.21]:38238 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728112AbgGLJUR (ORCPT ); Sun, 12 Jul 2020 05:20:17 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id ABF102008BF; Sun, 12 Jul 2020 11:20:15 +0200 (CEST) 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 D17872002AB; Sun, 12 Jul 2020 11:20:11 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 2ADD0402C8; Sun, 12 Jul 2020 17:20:07 +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: [RESEND PATCH] ARM: dts: imx6sx-sdb: Add MQS support Date: Sun, 12 Jul 2020 17:16:42 +0800 Message-Id: <1594545402-26815-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 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 MQS support. As the pin conflict with usdhc2, then need to add a separate dts. Signed-off-by: Shengjiu Wang --- changes in RESEND - resolve the conflict with latest tree. arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6sx-sdb-mqs.dts | 48 ++++++++++++++++++++++++++++ arch/arm/boot/dts/imx6sx-sdb.dtsi | 7 ++++ arch/arm/boot/dts/imx6sx.dtsi | 6 ++++ 4 files changed, 62 insertions(+) create mode 100644 arch/arm/boot/dts/imx6sx-sdb-mqs.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index e6a1cac0bfc7..04f85d6a2af3 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -592,6 +592,7 @@ dtb-$(CONFIG_SOC_IMX6SX) += \ imx6sx-sdb-reva.dtb \ imx6sx-sdb-sai.dtb \ imx6sx-sdb.dtb \ + imx6sx-sdb-mqs.dtb \ imx6sx-softing-vining-2000.dtb \ imx6sx-udoo-neo-basic.dtb \ imx6sx-udoo-neo-extended.dtb \ diff --git a/arch/arm/boot/dts/imx6sx-sdb-mqs.dts b/arch/arm/boot/dts/imx6sx-sdb-mqs.dts new file mode 100644 index 000000000000..a4ab2d3e960c --- /dev/null +++ b/arch/arm/boot/dts/imx6sx-sdb-mqs.dts @@ -0,0 +1,48 @@ +// SPDX-License-Identifier: GPL-2.0 +// +// Copyright (C) 2014 Freescale Semiconductor, Inc. + +#include "imx6sx-sdb.dts" +/ { + + sound { + status = "disabled"; + }; + + sound-mqs { + compatible = "fsl,imx6sx-sdb-mqs", + "fsl,imx-audio-mqs"; + model = "mqs-audio"; + audio-cpu = <&sai1>; + audio-asrc = <&asrc>; + audio-codec = <&mqs>; + }; +}; + +&usdhc2 { + /* pin conflict with mqs*/ + status = "disabled"; +}; + +&mqs { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_mqs>; + clocks = <&clks IMX6SX_CLK_SAI1>; + clock-names = "mclk"; + status = "okay"; +}; + +&sai1 { + pinctrl-0 = <>; + status = "okay"; +}; + +&ssi2 { + status = "disabled"; +}; + +&sdma { + gpr = <&gpr>; + /* SDMA event remap for SAI1 */ + fsl,sdma-event-remap = <0 15 1>, <0 16 1>; +}; diff --git a/arch/arm/boot/dts/imx6sx-sdb.dtsi b/arch/arm/boot/dts/imx6sx-sdb.dtsi index 6673532018b2..05d1e9d2efab 100644 --- a/arch/arm/boot/dts/imx6sx-sdb.dtsi +++ b/arch/arm/boot/dts/imx6sx-sdb.dtsi @@ -522,6 +522,13 @@ MX6SX_PAD_LCD1_RESET__GPIO3_IO_27 0x4001b0b0 >; }; + pinctrl_mqs: mqsgrp { + fsl,pins = < + MX6SX_PAD_SD2_CLK__MQS_RIGHT 0x120b0 + MX6SX_PAD_SD2_CMD__MQS_LEFT 0x120b0 + >; + }; + pinctrl_pcie: pciegrp { fsl,pins = < MX6SX_PAD_ENET1_COL__GPIO2_IO_0 0x10b0 diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi index 5c2b78589aa5..fcb3d064d0cc 100644 --- a/arch/arm/boot/dts/imx6sx.dtsi +++ b/arch/arm/boot/dts/imx6sx.dtsi @@ -134,6 +134,12 @@ anaclk2: clock-anaclk2 { clock-output-names = "anaclk2"; }; + mqs: mqs { + compatible = "fsl,imx6sx-mqs"; + gpr = <&gpr>; + status = "disabled"; + }; + pmu { compatible = "arm,cortex-a9-pmu"; interrupt-parent = <&gpc>; -- 2.27.0