From patchwork Thu May 6 03:41:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengjiu Wang X-Patchwork-Id: 12241605 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DC72C433B4 for ; Thu, 6 May 2021 03:59:32 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 461AB611AD for ; Thu, 6 May 2021 03:59:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 461AB611AD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=lR572z0+56GIs9o3Yfaf+gTaydRqgp1QyDuiMWTO1Yk=; b=EJKqxjR6zUAHNPDUvX612+Y51/ ezGJZmfzACH9mcbLljI7dqfPvYFQ2NnP5lPDVeYuNVF6nXDOQQgq2SHR9RMn0CrloeMDfEldTVr3m 4oKDcsbMSuxbdWJygqeWsZNI2WN50Pu5uUaXZqqMLIRqXlmPgxhwhlb4nFT3UfshcFTfsbyYYeuVC ZvqtHrlV7I3xszkJ50yNYhRJmpsfGpIBXgzcOIRHz0/bZ2jPDTwCpdUfSddpXtwJKzSBz2PS0J1Xn wwh5WYvA7ToTDGMndVFjqivVs088bW+FvSUKLcBox7gNuaX0UClpQHl4SFi0ijWO1sYT4WGWRPNRZ ZS+ingRw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leV8z-0034pL-1H; Thu, 06 May 2021 03:57:45 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leV8q-0034ok-RN for linux-arm-kernel@desiato.infradead.org; Thu, 06 May 2021 03:57:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Message-Id:Date:Subject:To:From: Sender:Reply-To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=/eEY3VkOEMJ3G9XVWfydBng2m3hAlT/4g7BB0f7A2S4=; b=PpMLHi3WFNIFN7eC5UAGEAc/wL IcPpdQMya85IjdUKDT+HqZ9ycvV4yCTue0AFEXwztI/FkRCVJ2MrKinK/ybMbYaipboB3ueW3s8qK qFVMJp6fEITuXT5RXlOcT52/yZZWVy33EX+jSh41DF9Mlb24BV8O+LZAiK/jerzimZZCX6H8QGw4U +qNOjSRwz22EOqe/9SPKEXA1FZ9BeNP9isfMthJuPhg1ipui4HBoDsqh80UY22+t3R466Ka+56EcP grBD7xT0VlfrR9TJv9KzNissLZgeSCvQ5nFa7xKi0NxDxoIaoK/678UMoZQ8yxH1v+0XBrGQnjPyx VeXekUIQ==; Received: from inva021.nxp.com ([92.121.34.21]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leV8o-005ZaW-9g for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 03:57:35 +0000 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id A2FB62015FC; Thu, 6 May 2021 05:57:30 +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 9844520313E; Thu, 6 May 2021 05:57:26 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 844BD402CF; Thu, 6 May 2021 05:57:17 +0200 (CEST) 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, shengjiu.wang@gmail.com Subject: [PATCH v2 1/2] ARM: dts: imx6qdl-sabresd: Add asrc support for wm8962 sound card Date: Thu, 6 May 2021 11:41:18 +0800 Message-Id: <1620272479-1219-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210505_205734_494908_4614952D X-CRM114-Status: UNSURE ( 8.19 ) X-CRM114-Notice: Please train this message. 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add asrc support for wm8962 sound card. Signed-off-by: Shengjiu Wang --- changes in v2: - none arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi index f824c9abd11a..d20eaac6c5d6 100644 --- a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi @@ -99,6 +99,7 @@ sound { model = "wm8962-audio"; ssi-controller = <&ssi2>; audio-codec = <&codec>; + audio-asrc = <&asrc>; audio-routing = "Headphone Jack", "HPOUTL", "Headphone Jack", "HPOUTR", From patchwork Thu May 6 03:41:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengjiu Wang X-Patchwork-Id: 12241607 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 261E3C433ED for ; Thu, 6 May 2021 03:59:37 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 BEEE4611AD for ; Thu, 6 May 2021 03:59:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BEEE4611AD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=brBveClN65UTKFuPvzG9HJImeqOAV2G5l1PNizav54A=; b=ijK0IIhaNg+Vwe/nYVK8sDmseU tZgtFiX8p3AkWQ6L9Nw/Oz1Jrlb8eYBPkBYUmYayx4VY+ef0dtlVwg7JtKiPpixEwoOnezD87OGGG UQfUMRJPvgFhuLkQsgjbiwSkCC/tQp8kogWVW4/xwRKxKi6lWsRDYeh8MV00XzRfTyLwvXglDbQXP tVQPAvu6xbq+lVvj02aQDA8dLwQ+irbYHpA1mTwF7xjH2bOJ85hL28WNqv8db/ynBOa/QnafRyuef DvL/ZmAbDIZanxu7SKpgC6VuBo1qwbSwVu+Q7eA6Q6dNJ4B+CrXET40QJuaW0CqETa0WwmOdYQSqw wK+4UKVg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leV9B-0034qB-R3; Thu, 06 May 2021 03:57:58 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leV8t-0034oo-N8 for linux-arm-kernel@desiato.infradead.org; Thu, 06 May 2021 03:57:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=References:In-Reply-To:Message-Id: Date:Subject:To:From:Sender:Reply-To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=vSyO8t5hqJbruJviLU01XqUUCy5BWWWIFIztt7hmz48=; b=2fN0PUcj/CVsAedJCdpDyibyGj dOHzxgMAl1pf9I39oSITyrP7LschvjmQeq0s+6T2lOrO2wFWwEHJyeQn7pJBsl54wiCwcJggl4VtI zltqSJtkrwLYvdepG6gbbwfLj64FmmIaD5kOqJIhkt2ilCSHWcdhLYAP3UB0tqv7+cxEoyusNNiZr sUn1HpWa7rrmoBMNOwgf4dDGqr+RBPMuIV3cD2MQssd7hw7e7GIoG2LRPHyOzrURmxa42UeCtkXI8 juj9xuZDGWsV+D5nFCzY3gtj6dm/29Oi3LskIJkAjhFyxbv9y5hsTV223L4oxdwEhPWzF07t7eiLK SHisN1wg==; Received: from inva021.nxp.com ([92.121.34.21]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leV8r-005Zb7-5p for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 03:57:38 +0000 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id F41BE20313D; Thu, 6 May 2021 05:57:35 +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 EB5A320071E; Thu, 6 May 2021 05:57:31 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id D89D84029F; Thu, 6 May 2021 05:57:22 +0200 (CEST) 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, shengjiu.wang@gmail.com Subject: [PATCH v2 2/2] ARM: dts: imx6qdl-sabresd: Configure the gpio for hp detect Date: Thu, 6 May 2021 11:41:19 +0800 Message-Id: <1620272479-1219-2-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1620272479-1219-1-git-send-email-shengjiu.wang@nxp.com> References: <1620272479-1219-1-git-send-email-shengjiu.wang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210505_205737_369838_7ED09040 X-CRM114-Status: UNSURE ( 8.73 ) X-CRM114-Notice: Please train this message. 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Configure the gpio for hp detect for wm8962 sound card Signed-off-by: Shengjiu Wang --- changes in v2: - update PAD_CTL value arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi index d20eaac6c5d6..0c0105468a2f 100644 --- a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi @@ -97,6 +97,8 @@ sound { compatible = "fsl,imx6q-sabresd-wm8962", "fsl,imx-audio-wm8962"; model = "wm8962-audio"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hp>; ssi-controller = <&ssi2>; audio-codec = <&codec>; audio-asrc = <&asrc>; @@ -546,6 +548,13 @@ MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0 >; }; + pinctrl_hp: hpgrp { + fsl,pins = < + MX6QDL_PAD_SD3_RST__GPIO7_IO08 0x1b0b0 + MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x1b0b0 + >; + }; + pinctrl_i2c1: i2c1grp { fsl,pins = < MX6QDL_PAD_CSI0_DAT8__I2C1_SDA 0x4001b8b1