Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp394870ybg; Wed, 3 Jun 2020 03:40:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoNAjx9hRJIlBb47idKK9eMFkg+m7AX+Tt+wGJ+XGfC/oqZk8qTWyeJV4ttP7XkobZq8HM X-Received: by 2002:a05:6402:1243:: with SMTP id l3mr1507460edw.64.1591180826797; Wed, 03 Jun 2020 03:40:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591180826; cv=none; d=google.com; s=arc-20160816; b=Va4OuOph8oTNt8NEin7nDI0O3/7dwIT/vVP4DabqkVAB5A+UtVC6ulYIn7ktpDBfN1 Bx8+Qk3lWVraXGvxLRBKg6mCDHkVUDsyEudwFvzRCVhMBRA3vQT9CxN0q7pL2nf5UiZ6 YNM7FVnnbNYJ8uZtVObn0yVfm9erHX4ChEAP3du3XCU0ZztRf+OvOVrVF3QCQZSvsovB N+mW54yGrDZxFsn+Q8mmDvjqdrdfS5xxxHUSmP4fdOqCyCEk7No925OnAlS9R14GKt/j SLW1wIYd0a/hJDZGU8OwB5inJYEsqriUnGqiAEHuo7vYPbqidlvstktKeAVJD6SDT/HK txPw== 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=lYpQHRVpZx4Z2aBmXiAjxEHmI8w7eknoZR+A8iRIby4=; b=NWEvi9LnuDyz0SXk1bR1eddYXqL3OzlaZPDBz2mfxgmIn2TxGcNojj1GM0sInyoVtG BdTFjfjlXv7uZKeeWnOpUZCkL/RON46pXZGr9ZlQxugqNiEtw4E+HMlF6e3j2XBcHyNa 7MD+Qv5CPU7rLmmQNrql8jcgABnbqHuv1TnNAhjpgCIB6wPPq6SDsLFUeI1SWA/hpBiD yQAahW5GNymaGTJyO1NAHI9kRhwprZiwdp6YoJ2Gh2azXeobLa9s+7q77Ijh13eLr6MN 7mcr7c3x7s5gotiCBCw4vfaaC5w+3FjC5w8G/gn6TYhmmt7AvuarwZlqKW60mJ3AON9i cmiA== 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 n7si899231ejk.2.2020.06.03.03.39.46; Wed, 03 Jun 2020 03:40: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 S1725975AbgFCKhf (ORCPT + 99 others); Wed, 3 Jun 2020 06:37:35 -0400 Received: from inva020.nxp.com ([92.121.34.13]:43808 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbgFCKhe (ORCPT ); Wed, 3 Jun 2020 06:37:34 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 40D181A0101; Wed, 3 Jun 2020 12:37:33 +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 0588A1A00FE; Wed, 3 Jun 2020 12:37:28 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 408FA40299; Wed, 3 Jun 2020 18:37:21 +0800 (SGT) From: Shengjiu Wang To: perex@perex.cz, tiwai@suse.com, lgirdwood@gmail.com, broonie@kernel.org, ckeepax@opensource.cirrus.com, allison@lohutok.net, info@metux.net, tglx@linutronix.de, patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] ASoC: bindings: wm8960: Add property for headphone detection Date: Wed, 3 Jun 2020 18:26:52 +0800 Message-Id: <1591180013-12416-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 two properties for headphone detection. wlf,hp-cfg: A list of headphone jack detect configuration register values wlf,gpio-cfg: A list of GPIO configuration register values Signed-off-by: Shengjiu Wang --- Documentation/devicetree/bindings/sound/wm8960.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/wm8960.txt b/Documentation/devicetree/bindings/sound/wm8960.txt index 6d29ac3750ee..85d3b287108c 100644 --- a/Documentation/devicetree/bindings/sound/wm8960.txt +++ b/Documentation/devicetree/bindings/sound/wm8960.txt @@ -21,6 +21,17 @@ Optional properties: enabled and disabled together with HP_L and HP_R pins in response to jack detect events. + - wlf,hp-cfg: A list of headphone jack detect configuration register values. + The list must be 3 entries long. + hp-cfg[0]: HPSEL[1:0] of R48 (Additional Control 4). + hp-cfg[1]: {HPSWEN:HPSWPOL} of R24 (Additional Control 2). + hp-cfg[2]: {TOCLKSEL:TOEN} of R23 (Additional Control 1). + + - wlf,gpio-cfg: A list of GPIO configuration register values. + The list must be 2 entries long. + gpio-cfg[0]: ALRCGPIO of R9 (Audio interface) + gpio-cfg[1]: {GPIOPOL:GPIOSEL[2:0]} of R48 (Additional Control 4). + Example: wm8960: codec@1a { -- 2.21.0