Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1046500pxj; Fri, 4 Jun 2021 04:56:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpN2kL7WL168OyWVKhOzauQt0V16zWeom0kiip6hOYQRq/KEA0liwsEVoGiItgYrGxVqaC X-Received: by 2002:a17:906:6156:: with SMTP id p22mr3855750ejl.242.1622807818437; Fri, 04 Jun 2021 04:56:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622807818; cv=none; d=google.com; s=arc-20160816; b=mn6rn7EfrQp1evo59KFvr7LvRIdhmCGHwENHm3n0TwrJqmf6m65dr483PgrEPhojN3 3Xuxok1kEFGDOgWH3W1ml8s2uVXEWjkzFQ5eM/teF0xr2nib4bzYg0Yr1eA8FMYIHHjM yD77gq9iXHwpbKoh56UPf86OXKQaXRu/z7O5oRKkvwTEwef+7E5Uyo4rFp/j7sGVGgm7 +ejzqdRHbZwr/qb+YI/GE9zmOIS5qouwfrV9ewoVxWtiQsu2VjUlEXqQF/qPSyWwjiSM 0d+8ayQ8GRC0vGOsZR9neyk5gGOcVfG3j5i94WGZwclDSifK2QXhgNe+T6cV4YGeE988 AGpQ== 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=5j5rgBC9lX13jha0n88LekB5zZqgucGPLSnMQ3bIh4o=; b=GvhRKUj1u4SHh9y4/lO5r/n5drFTKx9UPKXW0W1+MxeO9pkxOHUuiC7DOjRPraYkAA KrJ3XnLzn19G055RpgBOYETk15CNvbJsgN+0yCpDYZYXBHLJNrr4NzO+yv4wJgYls/AV Ck6Agc++lgF4geZqW4sQOrHFHC9Sj8YhoLeOKNHo72MdxsnLsvZMDsk6EZHWwHkz2+Qg MMf1TtO1oPXyifX0uPhQRtQl4G99jzqDlnjluPwzEqCOMLKK8Yaxf+iNKsHgs5NjzGB8 Jf+d3II5j4c9pGezHbZphMUCON3gfVilAuxtKx/hLWifLh9M1klKhTzghlYOZvbsnwGe xZ8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J1Ee5tPz; 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=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 e21si4487038ejl.255.2021.06.04.04.56.35; Fri, 04 Jun 2021 04:56:58 -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; dkim=pass header.i=@linaro.org header.s=google header.b=J1Ee5tPz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230322AbhFDLzh (ORCPT + 99 others); Fri, 4 Jun 2021 07:55:37 -0400 Received: from mail-ed1-f54.google.com ([209.85.208.54]:44022 "EHLO mail-ed1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230072AbhFDLzh (ORCPT ); Fri, 4 Jun 2021 07:55:37 -0400 Received: by mail-ed1-f54.google.com with SMTP id s6so10778440edu.10 for ; Fri, 04 Jun 2021 04:53:38 -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=5j5rgBC9lX13jha0n88LekB5zZqgucGPLSnMQ3bIh4o=; b=J1Ee5tPz44E+NWe276Ludx6VS/UmQV+jX0PZA9EUalZ6leSqTpMNFdLfYH9tfl15pp zdoC6/GY9VwOqLvYk2fbrleNvXwVcMrzaJJ2JQP9r8Bl+dcHCz33d2kROHkJ9mkXhGpA Y7y5EV+iQYVkLiJMkJ/VWVI+20eUK0TWgF0ZWLNhswi8EF4U+wlrJMtzNyZ+k03lvtXq 3N+Asj0K0AEefwndf0XskBVsKKGICxKl5cg3FjqyaYSwfb5HbdeDR4qtfVft5ixUBx8y Tow9s+mChO5ORadFP6ZpE1vAvLmziJR4ZaMOGlcHh4oIqoYv9TOxJdkG8F5nkoBMtgrm 1CZQ== 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=5j5rgBC9lX13jha0n88LekB5zZqgucGPLSnMQ3bIh4o=; b=uUVluHwlqFUJVg6ZzNVoYg53Bq8bG1Ye6bN++HRXf0O1yIJQX03MBJLaiRD3m5tLlC i9CNCd9BEbLoyn9cmCd0ZNh96L3e88ivm2GrZCh6WmHgwGkqg63gbvfZ5yHxdo+OJLCe baGNGuvz+8CU2jSQf/B7o1xuTst87H+1+qOGDaQdYn9Ssx4CXdHnQQVS3QUfTsG3cvR9 vN8Nx4DT4BgWOmPuehaGnB1vqOsEdDVHjtRa8Y7zLymZ4pnaLc7VpoI3Isl/tXiRkjHe FHbRE0o/IQJicMwF5pDODPOPMB3rfTtvcLHQ2Uif/RZv6wO5x9B5wqfp1aMdCHqV81kn 28hw== X-Gm-Message-State: AOAM532qw2+QvohZNmZlBQ4bYCcp6MI4FjpxKs3ugcTXo46Yz+mmEJ6/ VKRAXElpWHeTLCwTPOWYLkAnTQ== X-Received: by 2002:a05:6402:424c:: with SMTP id g12mr4224119edb.145.1622807557673; Fri, 04 Jun 2021 04:52:37 -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 x9sm2805527eje.64.2021.06.04.04.52.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Jun 2021 04:52:37 -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 v3 1/4] ASoC: dt-bindings: wcd934x: add bindings for Headset Button detection Date: Fri, 4 Jun 2021 12:52:27 +0100 Message-Id: <20210604115230.23259-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210604115230.23259-1-srinivas.kandagatla@linaro.org> References: <20210604115230.23259-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 Reviewed-by: Rob Herring --- .../bindings/sound/qcom,wcd934x.yaml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) 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>; -- 2.21.0