From patchwork Mon May 24 11:06:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 446442 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp3241225jac; Mon, 24 May 2021 04:07:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoNjmbkCn3VTKDIVAPTr43cuWP1mhM75vkMLohxCGNjEVYWHe5Cbg7COVG6Mt6dQZXeras X-Received: by 2002:a02:5142:: with SMTP id s63mr23523936jaa.82.1621854439560; Mon, 24 May 2021 04:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621854439; cv=none; d=google.com; s=arc-20160816; b=qL6bR26uLGWtajVcIsAyvL18xppBRfd4yD9CJSl5Fmsulc+0pfYR/kWmREKq6SVFFC Qs0vf4sSYpiQsXs7znIXI0sXBboV54NT1yZEHOca7CTsERI8W7ByIyDhrrliPu3n/eVX r4X3eFE40rfZ3SApQorQpyoDfdvaXdXwYTq4kfSOAONSwYciuFRUh+UU7MckK9mOIc+K LW5gOC+XItOj6zm1LvXB4ybNrFLESi9OS7Vr7XDN2k08UEo9SxaQaIWNAILNr8b1/mAU pSd7XEjifrZOIVyJQ7exz6+7t29ZJafJ16BRR3h4WETV7/gZsy5FhyTX5K1rl1PshHR0 Hygg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=c8u1uKiF4cwNsy2YewN8Mgn0CBiEVyeAerYkNkO3g7c=; b=hp3wwTO5zCY5hb9qta91V5O8Cxva2fhMte1U/w4uImRXmFJuV5BeGkZ5Elt1R7toKL KzxTTcIejHUSFl3ygzsigKRIE6leHODx5nZz4zE//eCKaTk099ClyvxC01+wSnx+dZ2y MQuB52HEQ53CjnjeK3moBUb/wOm7tNxlQ6MIQbEz+oPwtvSBDysqZIzzjos65U6Eo2NU SfCbYA1bEj3iom/gAzvYUZ2IxkOsxMlJ05D69PVslua9GvQGkHmKMjB7RsvuB23CPhL5 icIdYZa2e2PYy3H+IDKORBh+S7dmrm0dQj6DhU4gaJqoY9nvC0u6WBsZXDkR7e4EfWo3 wSrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="tKvdQ/FR"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j18si13648478jaq.76.2021.05.24.04.07.19; Mon, 24 May 2021 04:07:19 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="tKvdQ/FR"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232655AbhEXLIp (ORCPT + 7 others); Mon, 24 May 2021 07:08:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232643AbhEXLIo (ORCPT ); Mon, 24 May 2021 07:08:44 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A679C061574 for ; Mon, 24 May 2021 04:07:15 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id s5-20020a7bc0c50000b0290147d0c21c51so10759172wmh.4 for ; Mon, 24 May 2021 04:07: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 :mime-version:content-transfer-encoding; bh=c8u1uKiF4cwNsy2YewN8Mgn0CBiEVyeAerYkNkO3g7c=; b=tKvdQ/FR4p6VLgPqIWJrvCMpOywStOt1QnT/nHDbjnQBQXqYdOglN7uVbeLK5mvL2I OlhFjD22TsWDv5ISaoct0RTAfOGVMxb1RSuxwEueoZSN2269MPtiXU85EZ5AFYTAQ0K6 j2FULpjZ5tdwU427vCvOqAvRuob7dD4XPtu8HqZQGfhk7XY5VNkyao4AnRC+O9qZl9T9 7SeOs6uHd+979UGzhfCq3Kkt2XErJuTsHfEwmCXUjC5aFH4EXuL/53CBOj6trqIqxein 6EpzSgkMebSQN51fhyD9+qb+sMBGnlhaE0APPpMSTqzYGF4PBtnOhsLHZVOfCVbSxi6T UX1w== 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:mime-version:content-transfer-encoding; bh=c8u1uKiF4cwNsy2YewN8Mgn0CBiEVyeAerYkNkO3g7c=; b=SsZhQHIYkowPKqEHnTRLZvl3NDxpAu06bH9m046asy3qnCc8z4xmQNpR7zzcTq6RXy 4ypf7wuYCiyL+o46uXZowABYiveMarpoR3I+NMNAKSrstRVw1ZCYwRa4Bv75NqRNQA0T s4+t/uyUdeZrPrhh/M7loptfP+eE5DZ3fzuRxNaqOl877S9uBlCtj+Fn149oDUAbEJCP HVGRGk7RJJZmoMetAB6zSOnpRa8CpVYLn7cylhzg0RCUQIitEdskWU2yrKyYQWBJ6yg9 HWEN8iyQ61Rc+FvRzWk1qnhXn1gbbMBq5qi6agwA3uhwYEm8NKaNf8NLLwQuo1RXRXeI kkag== X-Gm-Message-State: AOAM532A46EbM9ThSa+SMuQiChB2hWdF+JmcjM1IDPITKCxBU9KBJkGY l6gIU3JW+M5JGGwmJZE4Ntug7A== X-Received: by 2002:a05:600c:b58:: with SMTP id k24mr19331110wmr.155.1621854433853; Mon, 24 May 2021 04:07:13 -0700 (PDT) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id x4sm7590978wmj.17.2021.05.24.04.07.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 May 2021 04:07:13 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org Cc: robh@kernel.org, devicetree@vger.kernel.org, perex@perex.cz, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, Srinivas Kandagatla Subject: [PATCH v2 1/4] ASoC: dt-bindings: wcd934x: add bindings for Headset Button detection Date: Mon, 24 May 2021 12:06:57 +0100 Message-Id: <20210524110700.27077-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210524110700.27077-1-srinivas.kandagatla@linaro.org> References: <20210524110700.27077-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add bindings required for Multi Button Headset detection. WCD934x support Headsets with upto 8 buttons including, impedance measurement on both L/R Headset speakers and cross connection detection. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,wcd934x.yaml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) -- 2.21.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml b/Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml index e8f716b5f875..9b225dbf8b79 100644 --- a/Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml @@ -77,6 +77,31 @@ properties: minimum: 1800000 maximum: 2850000 + qcom,hphl-jack-type-normally-closed: + description: Indicates that HPHL jack switch type is normally closed + type: boolean + + qcom,ground-jack-type-normally-closed: + description: Indicates that Headset Ground switch type is normally closed + type: boolean + + qcom,mbhc-headset-vthreshold-microvolt: + description: Voltage threshold value for headset detection + minimum: 0 + maximum: 2850000 + + qcom,mbhc-headphone-vthreshold-microvolt: + description: Voltage threshold value for headphone detection + minimum: 0 + maximum: 2850000 + + qcom,mbhc-buttons-vthreshold-microvolt: + description: + Array of 8 Voltage threshold values corresponding to headset + button0 - button7 + minItems: 8 + maxItems: 8 + clock-output-names: const: mclk @@ -159,6 +184,11 @@ examples: qcom,micbias2-microvolt = <1800000>; qcom,micbias3-microvolt = <1800000>; qcom,micbias4-microvolt = <1800000>; + qcom,hphl-jack-type-normally-closed; + qcom,ground-jack-type-normally-closed; + qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; + qcom,mbhc-headset-vthreshold-microvolt = <1700000>; + qcom,mbhc-headphone-vthreshold-microvolt = <50000>; clock-names = "extclk"; clocks = <&rpmhcc 2>;