From patchwork Wed Jan 6 12:19:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Argus Lin X-Patchwork-Id: 12001439 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=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 EE8F1C433DB for ; Wed, 6 Jan 2021 12:23:46 +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 9FE23205F4 for ; Wed, 6 Jan 2021 12:23:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9FE23205F4 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-mediatek-bounces+linux-mediatek=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:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=nd0jXKGJRab7d6jtnAuiM7ddba1EcY3VwP2M4Wyi+Ks=; b=IJXokcoBLIkdczDke2gRq9D5++ CIplO71d/lYSG3vpQFIF2HeNT+xzDAyzDrUDvOM3pVan8YTLLp5GbzMqdrCZBneAxxAxRw7pUcIbA IipGD0t8w/+PgX2VPOaFjLZ65/kBDUgy7jQjN5z7HwtCIyW8W/TC2mLHP5jHdFKo4F8sraK5EHr7B dzYVDCe9zXNz+hqfLZawFogV8NlWlNL63cDvxWQTh+mY1OaaFZR0efQ3gmhauSYnxJRuYBTsOXStq YY8PVwOeDX1tHEVb79iopwUiIIyTP/G0qvmZHblCwrDTBPmgrigRA6MiibGtSjUwZEdrclo0lA3Wk EDzRcJOA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kx7qf-0006Vl-9B; Wed, 06 Jan 2021 12:23:33 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kx7qa-0006Ub-Mp; Wed, 06 Jan 2021 12:23:30 +0000 X-UUID: f2f800b0ade44ee9aa26d209993b936b-20210106 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=Q/YxdQhwL8x6Lky3plxnukj/AU2Vx/fIu6Dv332viI4=; b=Z2EBXxUVkM2G5Dgu1u6/0jltBfugt93CUwT1i3HKk+yHIDyEqFpFjhydQvv59eaOdkHO2O6BQWUo+zavSAp2jpO1MAVNM9sew+exFIs4hI9T7QSV3f71X3XQ17x/qH/CJzJuDR2rfryR8fj8KYp9odLmikZW6+FaVTxpVxsQOvI=; X-UUID: f2f800b0ade44ee9aa26d209993b936b-20210106 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 163557317; Wed, 06 Jan 2021 04:21:18 -0800 Received: from MTKMBS07N2.mediatek.inc (172.21.101.141) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 6 Jan 2021 04:19:09 -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, 6 Jan 2021 20:19:08 +0800 Received: from mtkswgap22.mediatek.inc (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, 6 Jan 2021 20:19:08 +0800 From: Argus Lin To: Liam Girdwood , Mark Brown , "Rob Herring" , Matthias Brugger , Jaroslav Kysela , Takashi Iwai Subject: [PATCH 0/2] Add mediatek MT6359 accdet driver Date: Wed, 6 Jan 2021 20:19:04 +0800 Message-ID: <1609935546-11722-1-git-send-email-argus.lin@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210106_072328_956698_59222FF7 X-CRM114-Status: GOOD ( 10.42 ) X-BeenThere: linux-mediatek@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 , Argus Lin , Arnd Bergmann , "Shane.Chien" , linux-mediatek@lists.infradead.org, Pierre-Louis Bossart , Jiaxin Yu , linux-kernel@vger.kernel.org, Chipeng Chang , 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@mediatek.com Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org MT6359 audio codec support accessory detect features, the general features are jack plug detection and key detection. All of 3-pole and 4-pole jack are supported. change since v1: - adds mt6359 accdet binding document - adds mt6359 accdet driver Argus Lin (2): dt-bindings: mediatek: mt6359: add ASoC mt6359 accdet document ASoC: mediatek: mt6359: add MT6359 accdet driver .../devicetree/bindings/sound/mt6359-accdet.yaml | 142 ++ sound/soc/codecs/Kconfig | 7 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/mt6359-accdet.c | 1951 ++++++++++++++++++++ sound/soc/codecs/mt6359-accdet.h | 136 ++ sound/soc/codecs/mt6359.h | 1863 +++++++++++++++++-- 6 files changed, 3995 insertions(+), 106 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/mt6359-accdet.yaml create mode 100644 sound/soc/codecs/mt6359-accdet.c create mode 100644 sound/soc/codecs/mt6359-accdet.h --- 1.8.1.1.dirty