From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7601CC433E0 for ; Wed, 3 Feb 2021 06:59:51 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1F6C764F61 for ; Wed, 3 Feb 2021 06:59:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1F6C764F61 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Date:To:From: Subject:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=TqDSE/2RntpM4IBq2YzzI6It3oNnpbFUIuMm+Ipwkvw=; b=BR96GagE+S+QI2g8kFx78Pqy7 U+3yurhKPyG1SjrEmeF4f3aq67knf9pIOpTgOcHwW1XweQg2dAXdvHEPRwFvhB6wLipDSx0dOXZNr N6t46p0kPLoBJr6NtROJ5fG3x+oaR4mhI90GW38kBo1Ygq/lVzg+jeHe70mavQd3W/CoLFx3LcgX4 EnJsOoWmKiVOyHhOXAuBq29tEtx0SrTxC5u72J7Ad2JyQzI8mjO9FjzqgFND5/KmZsBLF7A7gZLfL PmyWGORxUWB5fwTpLpK+YzFL1fbEY1cikFxReECf9UidFHpsW7eUZFGma5phlUkIEJ+/eT14dGoNe FsXYwKvrQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7C7k-0003gI-5F; Wed, 03 Feb 2021 06:58:48 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7C7f-0003e9-GH; Wed, 03 Feb 2021 06:58:45 +0000 X-UUID: 74cfa45adc4a4cd1af699ff6a67ffa48-20210202 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=CjdN8hd2DDZylVIhOx3Ho4XozyJvo82Whum33sHVPUY=; b=jDbIm8hrKuj4UdpxS6jHxgIrGlBPbwBPnqUSbn/h/Dn4nPUP9sTgMyiRYeztY7GNsRBh0Ym6ZjNGJYmW38DW0Tr/ShJruk9cSQPM268RPvCKqHc3a5O7vUsixV7ZxH47p8vaV0FA1kLm6uCRimwT3mb/giePa5oPz3VSaZG7DoI=; X-UUID: 74cfa45adc4a4cd1af699ff6a67ffa48-20210202 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 849348951; Tue, 02 Feb 2021 22:58:34 -0800 Received: from MTKMBS07N2.mediatek.inc (172.21.101.141) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 2 Feb 2021 22:58:27 -0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 3 Feb 2021 14:58:25 +0800 Received: from [172.21.77.33] (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 3 Feb 2021 14:58:26 +0800 Message-ID: <1612335506.9202.2.camel@mtkswgap22> Subject: Re: [PATCH 1/2] dt-bindings: mediatek: mt6359: add ASoC mt6359 accdet document From: Argus Lin To: Liam Girdwood , Rob Herring , Mark Brown , Matthias Brugger , Jaroslav Kysela , Takashi Iwai Date: Wed, 3 Feb 2021 14:58:26 +0800 In-Reply-To: <1609935546-11722-2-git-send-email-argus.lin@mediatek.com> References: <1609935546-11722-1-git-send-email-argus.lin@mediatek.com> <1609935546-11722-2-git-send-email-argus.lin@mediatek.com> X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210203_015843_725391_134A9133 X-CRM114-Status: GOOD ( 20.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jack Yu , Alexandre Belloni , Lars-Peter Clausen , Charles Keepax , ChiPeng Chang =?UTF-8?Q?=28=E5=BC=B5=E7=90=A6=E6=9C=8B=29?= , Arnd Bergmann , Shane Chien =?UTF-8?Q?=28=E7=B0=A1=E4=BD=91=E8=BB=92=29?= , "linux-mediatek@lists.infradead.org" , Pierre-Louis Bossart , Jiaxin Yu =?UTF-8?Q?=28=E4=BF=9E=E5=AE=B6=E9=91=AB=29?= , "linux-kernel@vger.kernel.org" , Tzung-Bi Shih , "devicetree@vger.kernel.org" , Srinivas Kandagatla , Dan Murphy , Shuming Fan , Geert Uytterhoeven , "alsa-devel@alsa-project.org" , "linux-arm-kernel@lists.infradead.org" , wsd_upstream Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Dear maintainers: Can you reply to me if any opinion? thanks B.R. Argus On Wed, 2021-01-06 at 20:19 +0800, Argus Lin wrote: > This patch adds MediaTek MT6359 accdet document. > > Signed-off-by: Argus Lin > --- > .../devicetree/bindings/sound/mt6359-accdet.yaml | 142 +++++++++++++++++++++ > 1 file changed, 142 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/mt6359-accdet.yaml > > diff --git a/Documentation/devicetree/bindings/sound/mt6359-accdet.yaml b/Documentation/devicetree/bindings/sound/mt6359-accdet.yaml > new file mode 100644 > index 0000000..fde0d29 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/mt6359-accdet.yaml > @@ -0,0 +1,142 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/mt6359-accdet.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Mediatek Technologies Inc. MT6359 ASoC accdet driver bindings > + > +maintainers: > + - Chipeng Chang > + > +description: | > + This binding describes the Mediatek Technologies MT6359 ASoC > + accdet driver. > + > +properties: > + compatible: > + enum: > + - mediatek,mt6359-accdet > + - mediatek,pmic-accdet > + > + accdet-name: > + maxItems: 1 > + description: named as "mt6359-accdet" for snd_soc_card_jack. > + > + accdet-mic-vol: > + maxItems: 1 > + description: | > + accdet micbias1 voltage. > + > + enum: > + - 0x00 # 1.7v - micbias1 volage is 1.7v. > + - 0x01 # 1.8v - micbias1 volage is 1.8v. > + - 0x02 # 1.9v - micbias1 volage is 1.9v. > + - 0x03 # 2.0v - micbias1 volage is 2.0v. > + - 0x04 # 2.1v - micbias1 volage is 2.1v. > + - 0x05 # 2.5v - micbias1 volage is 2.5v. > + - 0x06 # 2.6v - micbias1 volage is 2.6v. > + - 0x07 # 2.7v - micbias1 volage is 2.7v. > + - 0x08 # 2.8v - micbias1 volage is 2.8v. > + - 0x09 # 2.85v - micbias1 volage is 2.85v. > + > + accdet-plugout-debounce: > + maxItems: 1 > + description: For using ap gpio eint only, it is sw debounce time. > + > + accdet-mic-mode: > + maxItems: 1 > + description: | > + value as 1, 2, 6 to indicate ACC/DCC mode. default is DCC mode 2. > + > + enum: > + - 0x01 # ACC - ACC mode. > + - 0x02 # DCC - low cost without in bias. > + - 0x06 # DCC - low cost with in bias. > + > + eint_use_ext_res: > + maxItems: 1 > + description: select HP_EINT pull up resistance, default 0 use internal resistance. > + > + headset-mode-setting: > + maxItems: 15 > + description: | > + headset-mode-setting : Indicates customized pwm, debounce setting > + accdet pwm_width, pwm_thresh, fall_delay, rise_delay > + debounce0, debounce1, debounce3, debounce4 > + eint pwm_width, eint pwm_thresh > + eint deb(debounce0, debounce1, debounce2, debounce3), inv_debounce. > + > + headset-use-ap-eint: > + maxItems: 1 > + description: indicates to use ap gpio. > + > + headset-eint-num: > + maxItems: 1 > + description: | > + incicates pmic eint usage. > + > + enum: > + - 0x0 # PMIC_EINT0 - use pmic eint0 to trigger plug interrupt. > + - 0x1 # PMIC_EINT1 - use pmic eint1 to trigger plug interrupt. > + - 0x2 # PMIC_BI_EINT - use pmic eint0/1 to trigger plug interrupt. > + > + headset-eint-trig-mode: > + maxItems: 1 > + description: | > + incicates pmic eint trigger mode. > + > + enum: > + - 0x0 # PMIC_GPIO - use pmic gpio to detect plug status by setting polarity to high or low. > + - 0x1 # PMIC_INVERTER - use pmic inverter to detect plug status. > + > + headset-key-mode: > + maxItems: 1 > + description: | > + incicates key mode type. > + > + enum: > + - 0x0 # THREE_KEY - support 3-key key mode. > + - 0x1 # FOUR_KEY - support 4-key key mode. > + - 0x1 # TRI_KEY_CDD - support 3-key google CDD key mode. > + > + headset-three-key-threshold: > + maxItems: 4 > + description: | > + 3 key device detection threshold: 0--MD_MAX--UP_MAX--DW_MAX. > + > + headset-three-key-threshold-CDD: > + maxItems: 4 > + description: | > + 3 key CDD device detection threshold: 0--MD_MAX--UP_MAX--DW_MAX. > + > + headset-four-key-threshold: > + maxItems: 4 > + description: | > + 4 key device detection threshold: 0--MD_MAX--VOICE_MAX--UP_MAX--DW_MAX. > + > +additionalProperties: false > + > +examples: > + - | > + accdet: accdet { > + compatible = "mediatek,mt6359-accdet"; > + accdet-name = "mt6359-accdet"; > + accdet-mic-vol = <8>; > + accdet-plugout-debounce = <1>; > + accdet-mic-mode = <2>; > + eint_use_ext_res = <0>; > + headset-mode-setting = <0x500 0x500 1 0x1f0 > + 0x800 0x800 0x20 0x44 > + 0x4 0x1 > + 0x5 0x3 0x3 0x5 0xe>; > + headset-use-ap-eint = <0>; > + headset-eint-num = <0>; > + headset-eint-trig-mode = <1>; > + headset-key-mode = <0>; > + headset-three-key-threshold = <0 80 220 400>; > + headset-three-key-threshold-CDD = <0 121 192 600>; > + headset-four-key-threshold = <0 58 121 192 400>; > + status = "okay"; > + }; > +... > -- > 1.8.1.1.dirty > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel