Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1546897pxa; Thu, 6 Aug 2020 10:00:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8n860bc++v2GJJKmN+Whk2XxEYB9xN7nntDiVGGk7GuChQ4sz1Jx6YIhxY3/BlXQR9Jwr X-Received: by 2002:a17:906:b6c3:: with SMTP id ec3mr5170679ejb.101.1596733205962; Thu, 06 Aug 2020 10:00:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596733205; cv=none; d=google.com; s=arc-20160816; b=Hpihla2QbFt/FTm7Z27fdAYIdfXxlAZsD3XK1edTU2M1T2gxC58yCuV4PWiCjU97Px I243xELhtLqnqzkS5wV42YVgcMWQL8hPKebIcT3fcyfaW+OGi+OIZzou83PXJamcJRyU ziaZZA6Avz/dzLkGu9KdXIs4Tr4vM+n1FEYKdxvMrTVnMj/EZXvMYSD+ea7P2Ma1y1rf 7sb6zjxNUg+PUFEfCUdpghH3yQbAFfS2f650lgRxMDhoOzUKRk3HnL65Hfw0jAhAIqQ0 a3zgySICZiCcrXkne0/jDsWyJN9SUfuzNnRSomSLpjVWS/A0aVIo+jQbe4DjA9QToCCT JWjQ== 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=Fut8ojkTIWgTip6j3yLAby9ogRy3oTnWAWywEslE5Jo=; b=wylP84QmJKgAv248wq8rm9ykq78kmygQItVBTUC6GyDJ7FVvpOI1FFQo8H0u1WmZNA OnZuwaahhDsaFE6glBgOLjHdzjxZXctV+jow9Qehqt9qyAc680CsJKdnOwAWb5WbIbYD 0ApdJgHDbSJvw8B9I7cHh7S2y8SXqZITNGujmQfJAUKflmEISbEavTA+Dah7DOv2QeSt Y799DZdWAmRAF8vUiCOVKKKVmhHIQvu7ljGMnJPBx96KfeSvyk9ZMog33Xoe3n6kgDag +7MttFRjDx7lwN0wK13Lmcdus3kJ7JaCzxhfyf/+M7998nOCDF0M6KIZR84ii5a9XBVQ pILQ== 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 a13si3551203edv.545.2020.08.06.09.59.44; Thu, 06 Aug 2020 10:00:05 -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 S1729792AbgHFQ5C (ORCPT + 99 others); Thu, 6 Aug 2020 12:57:02 -0400 Received: from inva021.nxp.com ([92.121.34.21]:36064 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728903AbgHFQkn (ORCPT ); Thu, 6 Aug 2020 12:40:43 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id DAB18200873; Thu, 6 Aug 2020 13:55:00 +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 0B7ED200869; Thu, 6 Aug 2020 13:54:57 +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 E7BAC40252; Thu, 6 Aug 2020 13:54:51 +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: imx6sx-sdb: Add headphone detection for sound card Date: Thu, 6 Aug 2020 19:50:17 +0800 Message-Id: <1596714617-16387-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 Headphone detection is triggered by GPIO, then driver can switch between speaker and headphone. Signed-off-by: Shengjiu Wang --- arch/arm/boot/dts/imx6sx-sdb.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sdb.dtsi b/arch/arm/boot/dts/imx6sx-sdb.dtsi index 3e5fb72f21fc..15f486a15f24 100644 --- a/arch/arm/boot/dts/imx6sx-sdb.dtsi +++ b/arch/arm/boot/dts/imx6sx-sdb.dtsi @@ -165,6 +165,7 @@ sound { "IN3R", "AMIC"; mux-int-port = <2>; mux-ext-port = <6>; + hp-det-gpio = <&gpio1 17 GPIO_ACTIVE_LOW>; }; panel { @@ -374,6 +375,9 @@ &wdog1 { &iomuxc { imx6x-sdb { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hog>; + pinctrl_audmux: audmuxgrp { fsl,pins = < MX6SX_PAD_CSI_DATA00__AUDMUX_AUD6_TXC 0x130b0 @@ -450,6 +454,12 @@ MX6SX_PAD_CSI_DATA05__GPIO1_IO_19 0x17059 >; }; + pinctrl_hog: hoggrp { + fsl,pins = < + MX6SX_PAD_CSI_DATA03__GPIO1_IO_17 0x17059 + >; + }; + pinctrl_i2c1: i2c1grp { fsl,pins = < MX6SX_PAD_GPIO1_IO01__I2C1_SDA 0x4001b8b1 -- 2.27.0