From patchwork Mon Sep 17 00:57:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10601963 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9E1BF112B for ; Mon, 17 Sep 2018 00:59:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 900E129497 for ; Mon, 17 Sep 2018 00:59:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 83C13294CD; Mon, 17 Sep 2018 00:59:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D9B9B294B5 for ; Mon, 17 Sep 2018 00:59:19 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 39BA62678AD; Mon, 17 Sep 2018 02:58:28 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1B5482678C9; Mon, 17 Sep 2018 02:58:21 +0200 (CEST) Received: from mail-it0-f67.google.com (mail-it0-f67.google.com [209.85.214.67]) by alsa0.perex.cz (Postfix) with ESMTP id CA2DD26789F for ; Mon, 17 Sep 2018 02:58:15 +0200 (CEST) Received: by mail-it0-f67.google.com with SMTP id d10-v6so9045625itj.5 for ; Sun, 16 Sep 2018 17:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zB8Jcp/mlbxi5uhj/a+RaYV9WoQKeS679GNjqNj80tA=; b=gB36B9li12NczVqQHD5LYzfwpoA4QMXRVwKdn6xYF6raTMsU56f54FX9mIstzlYK8I w3Zi6OLHTiyPf/5nPZq7dwGygmeFaVDF2toPBGxevzYCeCRYDTj4yvuKI1pINrod0ygc 7duoPq19MXWEqXlwXYeBXny4ZM/150P2oQw24= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zB8Jcp/mlbxi5uhj/a+RaYV9WoQKeS679GNjqNj80tA=; b=DLKqO+lGNn/JSjMjK+e/E/Lyw7PqSzVv0Ma2DQnneEoLN7+ccJk7wjN6ekHhVfKqcn hc4ggEGq2aV4Qyg3qZaYKLQKMgoFzXfP5zRd43QVXE5GSSmo8P33oiKXezvW30NBsp33 I1lpooZ3caO4C3x1wcbMfjL5vol0QCB9jyz9z8yw3V0HdCtQ0AN/C+i4plwA/4tg/UXj CYL2rKLhffh/NpNjtsl2PfLy3/Z3gawo8N9X28OBPeOYrnbMYqMbr+o5Whv22KsDKw1U BhsZoLBWvScz/2MYpDxT7IlnPQZMNID3FcfBKjXSDcGW+VZC8w6csc51yis4cR72fKoo M6KA== X-Gm-Message-State: APzg51DYOPU8Hku/LLzg04LNL8xL2rNRPMSNRF4duKS6XI5EA4hn1X/H W1YxxsK4IJx7noCgdQaKe4X9+g== X-Google-Smtp-Source: ANB0VdYGTvDHjFxRsbPZkbxqTMhxu3+pq8IZ/vwnM/VnzpntfCfOm6JZjlxRbLHKp/6BLAow/IRM+g== X-Received: by 2002:a02:4306:: with SMTP id s6-v6mr20655931jab.140.1537145895018; Sun, 16 Sep 2018 17:58:15 -0700 (PDT) Received: from localhost.localdomain ([209.82.80.116]) by smtp.gmail.com with ESMTPSA id f64-v6sm829972ite.4.2018.09.16.17.58.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Sep 2018 17:58:14 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: lee.jones@linaro.org, robh+dt@kernel.org, broonie@kernel.org Date: Sun, 16 Sep 2018 17:57:23 -0700 Message-Id: <20180917005727.32728-11-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20180917005727.32728-1-srinivas.kandagatla@linaro.org> References: <20180917005727.32728-1-srinivas.kandagatla@linaro.org> Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, bgoswami@codeaurora.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, vkoul@kernel.org, Srinivas Kandagatla Subject: [alsa-devel] [PATCH v4 10/14] ASoC: dt-bindings: Add WCD9335 MBHC specific properties X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Srinivas Kandagatla This patch add new bindings required to support MBHC (Multi Button Headset Control) block in the codec. This block is used for jack insert/removal detection, headset type detection and 8 button press/release events. All these properties are very much specific to board. Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/sound/qcom,wcd9335.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/qcom,wcd9335.txt b/Documentation/devicetree/bindings/sound/qcom,wcd9335.txt index 5d6ea66..a95a8b4 100644 --- a/Documentation/devicetree/bindings/sound/qcom,wcd9335.txt +++ b/Documentation/devicetree/bindings/sound/qcom,wcd9335.txt @@ -55,6 +55,26 @@ Required properties with SLIMbus Interface: Value type: Definition: Must contain "mclk", "mclk2" and "slimbus" strings. +- qcom,mbhc-vthreshold-millivolt: + Usage: Optional, only required if headset button support required. + Value type: + Definition: Must contain an array of 8 threshold voltages in mV for + 8 buttons detection on headset. + +- qcom,hphl-jack-type-normally-open: + Usage: Optional, only required if headset button support required. + Value type: + Definition: present if hphl pin on jack is a NO (Normally Open). + If not specified, then its assumed that hphl pin on jack + is NC (Normally Closed). + +- qcom,gnd-jack-type-normally-open: + Usage: Optional, only required if headset button support required. + Value type: + Definition: present if gnd pin on jack is NO (Normally Open). + If not specified, then its assumed that gnd pin on + jack is NC (Normally Closed). + - vdd-buck-supply: Usage: required Value type: