Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1972926pxa; Mon, 24 Aug 2020 00:57:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8l6iESh1KEfSYn9bDQhe751Emm5iXftQ1ShQ1KNlmxzrLaMK9EuRPKnREpffbpUqk5McV X-Received: by 2002:a17:907:41dc:: with SMTP id og20mr4544924ejb.183.1598255846350; Mon, 24 Aug 2020 00:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598255846; cv=none; d=google.com; s=arc-20160816; b=Hnt1diNLQkxbCB496+rasGXD0ZfLL1TFTqU5i7iYjlRJfamu2b5bMjg/WBgT052pkO c8pkGTQwj+NBdqCQ9IP2E4YeBF1g6hLz34a4M4gIxGvVZZrV+VD34So5a7LBbGz9rLxV GtYXdTzkBVq5slVRkVnHZWlyH7NftO4mKbQcBOhrqdgOwnOjaHwkyshQ5Ol7jIPxY0AU uyFzOQIqrQSGT6xb0NAWevZJDx/z9wN4N5UcWFOwga0tWcrYaxRVzmlKrfjS6j+Se1co re8GqE/OHEHRbsvudadCFtW7gR2pBf5xasd9OYSvVNc3SZ1J/s6JBCQhWY8L4Yix3qjj L/Jg== 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=yUSlR8mlG1gcIInsGRXRVYNByPVAhBJlB3mcDF5Lq18=; b=staEPa3E9oEqQ4++y6IS2Ji23lAlL/R92nNPQ4C7O0X7DXpRlG+yhdHDPxiFH9soM3 ZUK4N3JGIx/8+QaRavfa0Ga0BLaX8R+pr0BHFjAEai0bhvo3E6V5naVuMNYbov2jb6sH fu+53FUnZRMyfVWoudqUfAgkf6u4ZKD7okEWzNmMqRceZNg7qa6yMTXxpZsL1tbq2x9r 04eMj+Ia+KgOrKS4+I7GraT5leOLogmu5y1HQjZmqCob5gAS/F8RlSCeV/n2+yv6Txjp EuXAKvRHYSacFL1eoXsCEb7J0+SihzpYsRuJEZekw9qHrpXhzQwpr9Sl7lPmzgFM2NJF YB/w== 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 s18si6706017eji.430.2020.08.24.00.57.02; Mon, 24 Aug 2020 00:57:26 -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 S1726599AbgHXH4W (ORCPT + 99 others); Mon, 24 Aug 2020 03:56:22 -0400 Received: from inva020.nxp.com ([92.121.34.13]:39186 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726241AbgHXH4U (ORCPT ); Mon, 24 Aug 2020 03:56:20 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id B34051A11C6; Mon, 24 Aug 2020 09:56:18 +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 079B71A0313; Mon, 24 Aug 2020 09:56:15 +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 11B59402E2; 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 1/3] ARM: dts: imx6sx-sdb: Add headphone detection for sound card Date: Mon, 24 Aug 2020 15:50:37 +0800 Message-Id: <1598255439-1193-2-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/imx6sx-sdb.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sdb.dtsi b/arch/arm/boot/dts/imx6sx-sdb.dtsi index b8c23eba9dc7..1351d7f70a54 100644 --- a/arch/arm/boot/dts/imx6sx-sdb.dtsi +++ b/arch/arm/boot/dts/imx6sx-sdb.dtsi @@ -153,6 +153,8 @@ reg_can_stby: regulator-can-stby { sound { compatible = "fsl,imx6sx-sdb-wm8962", "fsl,imx-audio-wm8962"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hp>; model = "wm8962-audio"; ssi-controller = <&ssi2>; audio-codec = <&codec>; @@ -165,6 +167,7 @@ sound { "IN3R", "AMIC"; mux-int-port = <2>; mux-ext-port = <6>; + hp-det-gpio = <&gpio1 17 GPIO_ACTIVE_LOW>; }; panel { @@ -468,6 +471,12 @@ MX6SX_PAD_CSI_DATA05__GPIO1_IO_19 0x17059 >; }; + pinctrl_hp: hpgrp { + 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