Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp792703pxa; Wed, 5 Aug 2020 12:54:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQwJGlXcGNvyfkuucGV/lPOM5qatoVZhnqZzdsqhEvF7tcdgoYii0qutnVf3YUBAv8NESX X-Received: by 2002:a17:906:b248:: with SMTP id ce8mr902016ejb.85.1596657294340; Wed, 05 Aug 2020 12:54:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596657294; cv=none; d=google.com; s=arc-20160816; b=kTuk6h29tfDv1jGpQUXT8l/ZRIonuLCveNJGXl956lMdmM/s0bfO/ScnMEqEsszOD2 oHvAYQ80LURCiQ029rtRusFDT+yOVAQFJOiH3ftUrqvbxdThM99W9PkZ1Sr+Ai1Jxy2Q uRP70GRE+M7GI1W+xG8wEw5ElPpZQumkDhPKUfoXtlzKB1B6FSxKeXakAClaDboh8/ls ZjiOBY7IenmteTcKq7HBtN/FEwgu9Awdnhkuv8aArGS+HVpXUEW3K8ASMtpzjNleZSEn mau/Rm3+Pchsi2PJgH+OakGJBgFXvFXMcooFTLgBb0/vg/uRbR7Q8RXZo26VjVPJMB6S /T5A== 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=gdYg1sxuL1lGDygfLXxKrHkeWOs5Gd4bPtNH5Pn0L48=; b=kHb8rT8S1qSnu7huWmHXsH68kdc6EEWYKUvpX9Y16msDoi2tDP5+G2bspIZCEqn35s aVh/Rxolo/8jPFYOMFh+lvrrhWK75QxkDBCWVn+PDGojjaUHNnsJWxLBsHA/XS75Tt1T 6jAJ/FILeTY44zkTgc3r/452VL4IDewzfesSRQwy12VzN8UP54vu6TBlRSh631vynPXd NzJScviXTPcsIZh2u0XJzRxQ54bxfO7uKapvXVfmT/nZqhkf11Kaj8lW5OsaPs0ENCYs xvDbi6jZXCkExW8VV/ekWl91ufrL+yA8ThYvCCTUa1P0g9ktM7+dOgt0aM6ZhGzMv+3J 9ASg== 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 k22si2071682edv.26.2020.08.05.12.54.31; Wed, 05 Aug 2020 12:54:54 -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 S1728557AbgHETx0 (ORCPT + 99 others); Wed, 5 Aug 2020 15:53:26 -0400 Received: from inva021.nxp.com ([92.121.34.21]:45384 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728158AbgHEQuU (ORCPT ); Wed, 5 Aug 2020 12:50:20 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 434B1201463; Wed, 5 Aug 2020 12:43:57 +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 680AF200431; Wed, 5 Aug 2020 12:43:53 +0200 (CEST) Received: from 10.192.242.69 (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 5282A402D0; Wed, 5 Aug 2020 12:43:35 +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 Subject: [PATCH] ARM: dts: imx6qdl-sabresd: Support headphone and microphone detection Date: Wed, 5 Aug 2020 18:39:04 +0800 Message-Id: <1596623944-3104-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 "DMIC" rounting, headphone and microphone detect gpio for sound card, then output sound can switch between headphone and speaker. input sound can switch between DMIC and AMIC. Signed-off-by: Shengjiu Wang --- arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi index 28b35ccb3757..d933b5384a96 100644 --- a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi @@ -105,9 +105,13 @@ sound { "Ext Spk", "SPKOUTL", "Ext Spk", "SPKOUTR", "AMIC", "MICBIAS", - "IN3R", "AMIC"; + "IN3R", "AMIC", + "DMIC", "MICBIAS", + "DMICDAT", "DMIC"; mux-int-port = <2>; mux-ext-port = <3>; + hp-det-gpio = <&gpio7 8 GPIO_ACTIVE_LOW>; + mic-det-gpio = <&gpio1 9 GPIO_ACTIVE_LOW>; }; backlight_lvds: backlight-lvds { -- 2.27.0