From patchwork Thu Apr 29 02:50:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengjiu Wang X-Patchwork-Id: 12230355 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.0 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 37177C433B4 for ; Thu, 29 Apr 2021 03:09:16 +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 DA6E061411 for ; Thu, 29 Apr 2021 03:09:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DA6E061411 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=0PBG/fGF2fME/apl732KsLvz6jcXRxV3SYLWQnAKzBk=; b=n4NRc4YATca51vEqcDiqXyywA8 qn17eSAVwsBKr9nAY5kEpmaY+McbiLA/tyK4Jmw/TkmI/R1PziIqZi/pdicywJ5ziEMOoesYHFLXX 1heRlAR7oiKNZv2B/ZATZfTugIKq93uagEaL2C1qotxqYCf+nbXwDMWWbkRkRWNBZaHzsNwmh/eC6 R4jvgae2G2GrLtqjORsDs5LbiSKtiK4EKIUYB9jIC9bDRGIxWaWfZfTzzaId1f0Fmbq4EwH4GcJPx IPPQP8pj5uYyTdJmwTk8MUZqWpgrLXVsHI+/NtzG98S1oh+R6vuN8LhlZwAcK/VuhyHECany+m7uJ hBHilg8A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lbx1K-004jid-KW; Thu, 29 Apr 2021 03:07:19 +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 1lbx0P-004jdF-KW for linux-arm-kernel@desiato.infradead.org; Thu, 29 Apr 2021 03:06:27 +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=h630Ep9tBJR+4RfneKKwXFl9gakuyB3CyZrhXCEawBk=; b=xbxhewPCCcg4pM5CWbz/GP2ujJ pgfo/Jtcz3m24XJScQPtLtxH0tal6/ckovsxRcTiikbmbDf7jOjddPyJklcBN6pgOCNqaHy/x2klw 9njGaUVEiAGApT83Bk3U058OX5UXqgrw4H1PKcCksOGH18dzgl4e5ziKmHykoDl8va8O5wZMdND0r MT7p1irhvFtw9C5lfnZtcLttHCV0wvzpiOgW85fijuPhSDYadP9dL6cvWqgxfJhg0UpfL/UuAaR0p 05T1FblD6Sp4Grp4f7hdInJfHUGDy3HuZVJg8X3owCzCMw6SSYRxGzt1FOpEU9+nFLqj/gb1TglBc dCMjAf8g==; Received: from inva020.nxp.com ([92.121.34.13]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lbx0L-000Kmh-W8 for linux-arm-kernel@lists.infradead.org; Thu, 29 Apr 2021 03:06:19 +0000 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 233731A11B3; Thu, 29 Apr 2021 05:06:12 +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 BE42B1A047E; Thu, 29 Apr 2021 05:06:07 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 0E1CD40287; Thu, 29 Apr 2021 05:06:01 +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 1/2] ARM: dts: imx6qdl-sabresd: Add asrc support for wm8962 sound card Date: Thu, 29 Apr 2021 10:50:26 +0800 Message-Id: <1619664627-12470-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-20210428_200618_185981_B2C630A3 X-CRM114-Status: UNSURE ( 8.16 ) 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 --- 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 Apr 29 02:50:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengjiu Wang X-Patchwork-Id: 12230353 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.0 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 2A699C433B4 for ; Thu, 29 Apr 2021 03:09:12 +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 BBE9961448 for ; Thu, 29 Apr 2021 03:09:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BBE9961448 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=ykRQxKVZdM5WW5wuxi7yUzoORlGPUvEqjgLfSLwFI/k=; b=NHf1MUFEqlspeip281A56butXG wxwxZsAJbUbH7uZv4DkyX7+DBsnn3kKdlPiZl1s37TbRmD7wrtAll+LT3FK8YfKT1zj/elut4f5MG kgN5J6GCDeouZYQ+o5a04SMb9ikuRsotyU6gzL72CN8IHVucj0gLE31fJAzUUcALbQP3s/0QXedxX g8/JgDIaUPD4y9DxjCdTKykbm6nwC6FJnc//HCmCJQrsvKPGcmcCjkiF7974bWUvzuAF4ei7Mv+Qv Zac8gUyXmkR2ZPlhM0UZs6NRRCyNOeNjtrf2NFMvj6Gx4O5k2rQkxzV9uFeRmk4CDsJDmdsHpPdaB EFiJkGRg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lbx0Y-004jeb-Ss; Thu, 29 Apr 2021 03:06:31 +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 1lbx0P-004jdE-KW for linux-arm-kernel@desiato.infradead.org; Thu, 29 Apr 2021 03:06:27 +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=Lvx/QdXekOBJ5oDRQAiSmSEyLOX+Uzxwlaq1/QIVoxQ=; b=Zcqq/gjbaXpzTLF6FX4ABVMpWp agbKAKVanpbifiQBU6c1GzUBXHSRAxqOXM+2foFbU2+azG+WvP3pkSjcaHn/1nq5hcboSEUcwDvGW UwTbEFcYveqkOKeQ7Mp8WpwS2LfZ02d5AtGijjgdmzUzGgTigBZu/tW5glYIpX1gQ8AyhLvw5gket Ev4/NKbblWHucxr4e7aQe6UuD+3TpSeJPEmBF5hK4oAPKkVaYZfN8W1tFLKbXVSvPUqg99bN0BB6i IagiHXJAD37q87b6rB2XvaoAfogDv/hA2lQft2m4SA6qCAPBidbuKpr02HMldaLvnZUqYjHcGVyZW HMCykC9Q==; Received: from inva020.nxp.com ([92.121.34.13]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lbx0L-000Kmi-Jh for linux-arm-kernel@lists.infradead.org; Thu, 29 Apr 2021 03:06:19 +0000 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 24DBE1A047E; Thu, 29 Apr 2021 05:06:13 +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 BEBDF1A11E2; Thu, 29 Apr 2021 05:06:08 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 0986F402D2; Thu, 29 Apr 2021 05:06:02 +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 2/2] ARM: dts: imx6qdl-sabresd: Configure the gpio for hp detect Date: Thu, 29 Apr 2021 10:50:27 +0800 Message-Id: <1619664627-12470-2-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1619664627-12470-1-git-send-email-shengjiu.wang@nxp.com> References: <1619664627-12470-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-20210428_200617_802778_E7FEE2B6 X-CRM114-Status: UNSURE ( 8.14 ) 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 --- 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..4728dc612912 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 0x80000000 + MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x80000000 + >; + }; + pinctrl_i2c1: i2c1grp { fsl,pins = < MX6QDL_PAD_CSI0_DAT8__I2C1_SDA 0x4001b8b1