From patchwork Tue Sep 4 10:24:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 965847 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ElU/KFdw"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 424NMl3yfMz9s7T for ; Tue, 4 Sep 2018 20:28:19 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726222AbeIDOwq (ORCPT ); Tue, 4 Sep 2018 10:52:46 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:56059 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727574AbeIDOwN (ORCPT ); Tue, 4 Sep 2018 10:52:13 -0400 Received: by mail-wm0-f68.google.com with SMTP id f21-v6so3810061wmc.5 for ; Tue, 04 Sep 2018 03:27:44 -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=+PVCKznci0AHT6i8Z02ot2xaPHWn52lA5413+yAK5nQ=; b=ElU/KFdwiv+VEO8+hgqr6As7g+5FOuYecqHjOuRmQjppkJK3ae3dkSWMps4ZjM8VDp D2x6BZAHLCBqD+KWGneMLlIkdD9ToVfmBK7AJ2hQiLxluxSd+WsQ+TehpETmjyVlbMk3 M7MugfHjdNpse2lIv6LM/kL15/mB6H2SnFCn0= 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=+PVCKznci0AHT6i8Z02ot2xaPHWn52lA5413+yAK5nQ=; b=spm2oZq00+ZjOYhhRxbYYc/QiiSO+/q1wt0zyBcehYj1+C+x9sEwO6/HGRFPw9RzmZ qb2kDG3daaXGT4BxOyzgdQ29x+HqtX+TlYydFrisDflwjKvjufF/pEV2AKJx9TjaB61u Qe0/rqrXiK9qPF5kJsXjA4O7jlll0KTZX7/LeNQ7bGanEcSvoYP5OE/uMGvz+EFxib+G wHrc7VMQzhk+NFOg6ACpHTv0Qp/Ojqeb4NunYPNl8CjSEpDtNfmeFsbI9+PAn+CA64Ta bJsnoeclHHozlC/dnor19BrY5yO2UikH92PNLaIgyybMwxmfrI5l2qyN4YPQCWZ3bKA1 N3rw== X-Gm-Message-State: APzg51C7i/5EUs4UZLBxA/TJHWsAHZ9msYfZ+j1uv0Dc/T5vF03Aqwdr yUIMJ5VNAUvP2x5sNZNw2hNGhQ== X-Google-Smtp-Source: ANB0VdZZUAHey2wpMEwyBOypdJwJc4QgdKmdwZJWD8WAlpVyPLSPAbjE2ewk9PEN6msw9YImoX3bEA== X-Received: by 2002:a1c:7f93:: with SMTP id a141-v6mr1935562wmd.45.1536056863739; Tue, 04 Sep 2018 03:27:43 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id g129-v6sm16903325wmf.42.2018.09.04.03.27.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 04 Sep 2018 03:27:43 -0700 (PDT) From: Srinivas Kandagatla To: lee.jones@linaro.org, robh+dt@kernel.org, broonie@kernel.org Cc: mark.rutland@arm.com, lgirdwood@gmail.com, bgoswami@codeaurora.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, vkoul@kernel.org, alsa-devel@alsa-project.org, Srinivas Kandagatla Subject: [PATCH v3 10/13] ASoC: dt-bindings: Add WCD9335 MBHC specific properties Date: Tue, 4 Sep 2018 11:24:57 +0100 Message-Id: <20180904102500.30318-11-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180904102500.30318-1-srinivas.kandagatla@linaro.org> References: <20180904102500.30318-1-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- .../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 5d6ea66a863f..4d56c3ca9fa8 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: + 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: