Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1972949pxa; Mon, 24 Aug 2020 00:57:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjH+ITSTqaWXXqmkEFGhIOZIF/8oOUIMFti6T4vx2rHbmx57JZefuW2Gp41AMnvMf/G2tJ X-Received: by 2002:aa7:c4d4:: with SMTP id p20mr4105393edr.154.1598255848737; Mon, 24 Aug 2020 00:57:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598255848; cv=none; d=google.com; s=arc-20160816; b=MMBMqUXjL5V4zAlkQA9MGIF/3/0GfzflWk16mtpSz8PkrcAyKNfLbBe7W5hpDSaT3o jxGEKktL6WQb2jveQTR24P5zOGwY4lDC0N0R/2iBy9ArOgU+IV41VOJ3rD30TbQrzANc uGVzj1NSCC68djQ0P+LL/gAWAdvBtsMPKu4NCOCwqr2jFUDXDLiPgVRX0YuEMKb+wlUY 293PFL+LCEQrORim/+ja5m3qKE/pRzWDK5XTjbCgb6NncYv7Fc8DWDPh9ERNVTluN5ud ELScXQnOCnvlegG8NnJRlcD9T1FFedps6ahHlETy8sjbPYuNjD5cCyHhc91D9CU43h3L vtOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from; bh=Xf+d3YA2JU5x8FMz9vg7hgtWgvihQw5D0UbkIJS1890=; b=GYlJ0omu1gTCzKUnYX4MqP1BNyiVt9Mie7G5JA5bUiAL63ylfFBXh8+BTM+U2cpzPX EtZyvSROcqc8PcLuE69pR+Ac7h1DS4soPvhGsrdx/EMebHTmrgfrWRCln4BK2lyAkKr5 tolSiFKGrO0/g/9GCwRpirffBnLsQLiEPyTq16GD/OsI71/9TRn8+6j5XQEjbEETxgYb Su/PZN+7NKKd1GUarK1OTtD4jETEf2j4nh2BwW3WxqVj2yU9AGwS8DTnasJrAta1Ht0Z swx/H+cUW9TiVRTQUTZ/hDsCnITsRAwsxlV+Yf93awcaXVrsbujYZsSK9w7LIf+quG93 naaQ== 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 r24si6068509edy.160.2020.08.24.00.57.06; Mon, 24 Aug 2020 00:57:28 -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 S1726635AbgHXH4Z (ORCPT + 99 others); Mon, 24 Aug 2020 03:56:25 -0400 Received: from inva020.nxp.com ([92.121.34.13]:39318 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726024AbgHXH4V (ORCPT ); Mon, 24 Aug 2020 03:56:21 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id C13D21A17BD; Mon, 24 Aug 2020 09:56:19 +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 02BC71A0309; Mon, 24 Aug 2020 09:56:16 +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 0B469402E5; Mon, 24 Aug 2020 09:56:10 +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 v2 2/3] ARM: dts: imx6sl-evk: Add headphone detection for sound card Date: Mon, 24 Aug 2020 15:50:38 +0800 Message-Id: <1598255439-1193-3-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1598255439-1193-1-git-send-email-shengjiu.wang@nxp.com> References: <1598255439-1193-1-git-send-email-shengjiu.wang@nxp.com> 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/imx6sl-evk.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/imx6sl-evk.dts b/arch/arm/boot/dts/imx6sl-evk.dts index b1b069e723d2..ee6e477bfe82 100644 --- a/arch/arm/boot/dts/imx6sl-evk.dts +++ b/arch/arm/boot/dts/imx6sl-evk.dts @@ -94,6 +94,8 @@ reg_lcd_5v: regulator-lcd-5v { sound { compatible = "fsl,imx6sl-evk-wm8962", "fsl,imx-audio-wm8962"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hp>; model = "wm8962-audio"; ssi-controller = <&ssi2>; audio-codec = <&codec>; @@ -106,6 +108,7 @@ sound { "IN3R", "AMIC"; mux-int-port = <2>; mux-ext-port = <3>; + hp-det-gpio = <&gpio4 19 GPIO_ACTIVE_LOW>; }; panel { @@ -343,6 +346,12 @@ MX6SL_PAD_FEC_REF_CLK__GPIO4_IO26 0x3080 >; }; + pinctrl_hp: hpgrp { + fsl,pins = < + MX6SL_PAD_FEC_RX_ER__GPIO4_IO19 0x1b0b0 + >; + }; + pinctrl_i2c1: i2c1grp { fsl,pins = < MX6SL_PAD_I2C1_SCL__I2C1_SCL 0x4001b8b1 -- 2.27.0