From patchwork Tue May 23 16:18:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Rau X-Patchwork-Id: 13252611 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BCBDAC77B75 for ; Tue, 23 May 2023 16:20:33 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A5AF1209; Tue, 23 May 2023 18:19:40 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A5AF1209 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1684858830; bh=w2t6+m68xT9/Dp4xtPhfAIDhdQUPjQ6gowsvR6tBEWc=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=Gl7d1CBzlmDxE/JC7x/NUV2QrTFg7cnqq4RhYYZAUaT6MvPie+lk+mWATR7RaEVSt waGGwVtid0TUqcXVTBSp6ubrgYEU65LELE6HfML3patJpyecIcmQgu64wcAPIynNKD 9jFledjZYnvgMm3rHYDKRjUMA3FxIVih2iPz1nPU= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 322DCF8024E; Tue, 23 May 2023 18:19:05 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 8CA92F8016A; Tue, 23 May 2023 18:19:04 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 494E3F80425; Tue, 23 May 2023 18:18:59 +0200 (CEST) Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on20723.outbound.protection.outlook.com [IPv6:2a01:111:f403:7010::723]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B2F32F8016A for ; Tue, 23 May 2023 18:18:51 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B2F32F8016A Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=dm.renesas.com header.i=@dm.renesas.com header.a=rsa-sha256 header.s=selector1 header.b=Oo6WCWVH ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hxOtFebtD7LTwnIvI2XmuLJd0v14aq2/gMQ2wVp1fPnXEKsMlcX4tTDei4f4aMXu54CZSL5OogVyntmzoNLad+uUxIQjjapwP9qfPg0XnHOEh1nemcTvunVzWUOY38IwFHRWvlKALwL5YDr9OZP+lLG1h7oDl4+vtS2Ll7X7t+AuE8opHGUydiSNlerXvexVQ5CgaPlMQTpRs0yuLqIxOATjYjK1BKTZzAUyPBC1Bnedveuf0PV0GwWeZJQtHNOA3q6oRxVOr0C7du9gmJl/hyCfwpiAGVkmCQ5wuXJ1TQb9gaxzvhgva60qZuc4rmeAuV6va2nNu+7PzJFBWNnOZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tRFT4XfAD+q2yRmGlT0vl0cf0uMaTKzaZPu22gcQzSE=; b=Fxg1H6utCen+U7XMelCjjIkH0+Syle+/99YZRzNJ1sQOlwAEvli8iqZ9TT4ki59c56PWPNCTPmTgefGEzlSGHmU0FHy4vuIcTvOb8Nqq8bg563EfZrMlMTntvU4uAP1K44i2/VItG2KreJ6oN6yu87wQraYXE4yqhU7l7qN2LnAaiD3bb7m9zMD7AuSSeSJHTyk2hbD4f8NFhRuobcetutqvNezWJ69vApeK/oy/jofbvuf8HlFgEUpVTeQvIwYLLhwHtceku1KWxiJNiQurbBJSHbP/bIET7yrqAidchsPay0xuUXGm6cDFjWAA57ZI4UkNZ8amy7CkX95PSXMvVQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=dm.renesas.com; dmarc=pass action=none header.from=dm.renesas.com; dkim=pass header.d=dm.renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dm.renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tRFT4XfAD+q2yRmGlT0vl0cf0uMaTKzaZPu22gcQzSE=; b=Oo6WCWVHYrRrRQCcN4nzadDr/7Wl0YSmf6O4XrhQGymVF05Qh2jUVBZ3JAp8E8uQN/enwYxqNjEgk+GmlkqaBxq+XoSEuAMZlZzA2BH8ASgnI3xZEXpkqy0FEuhO0mat5rxEX8AEenBuWeEF1IpY6/gROpQpeWtDr8B2pPUNMMg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=dm.renesas.com; Received: from OS3PR01MB6641.jpnprd01.prod.outlook.com (2603:1096:604:10b::11) by OS3PR01MB6040.jpnprd01.prod.outlook.com (2603:1096:604:d8::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.29; Tue, 23 May 2023 16:18:46 +0000 Received: from OS3PR01MB6641.jpnprd01.prod.outlook.com ([fe80::2de2:b2ee:d931:157]) by OS3PR01MB6641.jpnprd01.prod.outlook.com ([fe80::2de2:b2ee:d931:157%6]) with mapi id 15.20.6411.029; Tue, 23 May 2023 16:18:45 +0000 From: David Rau To: conor+dt@kernel.org, broonie@kernel.org Cc: support.opensource@diasemi.com, lgirdwood@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, David Rau Subject: [PATCH 0/3] ASoC: da7219: Add jack insertion detection polarity Date: Tue, 23 May 2023 16:18:18 +0000 Message-Id: <20230523161821.4260-1-David.Rau.opensource@dm.renesas.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: TYCPR01CA0165.jpnprd01.prod.outlook.com (2603:1096:400:2b1::18) To OS3PR01MB6641.jpnprd01.prod.outlook.com (2603:1096:604:10b::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB6641:EE_|OS3PR01MB6040:EE_ X-MS-Office365-Filtering-Correlation-Id: 3167ece9-4cfb-47e9-4722-08db5ba96223 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XG14iCkdW3aHTpQXhkPWm4tI8G/Ok+rcHBRkie8lKoeqKCdsPvWIaDW/Wzq0ezw9vbKmuhMULhl4KViyp6IftSJXl6p1A2IGJSdIbNZscM7Yrct41rOHWP1d1eeclV/r41zQb7jBuVN1C+hVTOM+GJD4qSJXC2UicwXq13HMcdEUyYf39dQg0058J3qgjzXzi+3oHkAa8EUfdbT/df9vg9ddtd1fATa96rkZ+LhILLhbFeKiYscPW433126Rs035OmS5cL4pNypuhtTAdVgEeIa/66u8xucrLw+MGxC4i+sq1B78VnYoyx6naanXMvQu0ywoB79u+HVdHEmMgk/u8u3ZLMSKLy6INjnaqsDpqBf/aC80NcYpy10KrKCdYZDfqyWNCA9QDMC6pmw5YUK9mGv1J8rXuBYt30ieiREd4WFVsQiz31LOdtqGsFF1eqElQi0JSggLb3bwpTRgV43bZ4wbadBvEWG02qJ+VZ5iD6LrWqcjHcI1FHvYMHxo2jgA2OV7APkXIYD+Nx8jPf99062PCRHjC3Mr+rTI7swjCCbBoJQ6AIrzU9MT2a+q5gmuq1AfWM9nvO9VP0bVK5NrHWKBACOHUkzrrxEM9O8dVzLEChmbcYCWw7TPIE9jnxMT X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS3PR01MB6641.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(39860400002)(396003)(376002)(366004)(136003)(451199021)(107886003)(6512007)(8676002)(7416002)(8936002)(83380400001)(103116003)(38100700002)(38350700002)(86362001)(6506007)(2616005)(4744005)(2906002)(52116002)(41300700001)(66476007)(66946007)(66556008)(4326008)(316002)(6666004)(6486002)(5660300002)(186003)(1076003)(26005)(478600001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JGh6FBcFewiLAdV7X97Jad7Kjv8N6xl0ZWFl/NoqUi5QhM+N1w+WX0nhJ2yR+qW4mSQptXePdCotwxfS87ffxedLHFvKFgc32nQyExeYtt1LWOYlTcJzot+Pm1fanjoygUj1mKSkvfcCWEmZDqAKIYbJjOuoxkaOG7DdedggrdNkcsKn7B9+PUvqCJbGKaDSXSKqx5Ewht8upJMQmwDtOWkxrjn0HVfjjTpgD9Q69OkjHblXu91vJ5Xj0KuHOLSefIjYXl/6CfDL7zOxpiqi3X4x9E0mNVU3TpftjSvX0hX/tycUDMTo2XE0V7DvyW80J5o1B5Em2FVexQd3k5v9XNTX5w5qQWGJQrdwJwstLuQYky6+omMw/QISLaCme7P8XqPlvlYuNQHHlna0XPKZveU8ldIAZ0JdAkPkExXJGCTdf0Pqp1apDR3n7ucCgQQCWH/UN/wjGBW2T0OAkDWYDNZjsYbMK7tLbRAfuORVFO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PLK6WFLTRwt7qge9MyS4Bq2vXFjZdSA== X-OriginatorOrg: dm.renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3167ece9-4cfb-47e9-4722-08db5ba96223 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB6641.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2023 16:18:45.8774 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: K9J6rM6Z01wt2O/H0Ynqw1Xg5dTrhkAbVdE7cU8ZqdQYgJPmfpdfWyxGCPb23wI+lYJ7tDa2Shqc6xN5h8EPkOxg9B6fHAGy0n6MtwJFano= X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB6040 Message-ID-Hash: YKTHJBWOB6ZHUIOTOQO4FKSH56RUCNVE X-Message-ID-Hash: YKTHJBWOB6ZHUIOTOQO4FKSH56RUCNVE X-MailFrom: David.Rau.opensource@dm.renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: This patchset adds the support of DA7219 Jack insertion detection polarity selection. The first patch replaces the old txt binding with a new schema binding. The second patch adds `dlg,jack-ins-det-pty` property for Jack insertion detection polarity selection. The last patch adds the driver support for this topic. The series has been verified on the DA7219 development kit. David Rau (3): ASoC: dt-bindings: dialog,da7219: convert to dtschema ASoC: dt-bindings: da7219: Add jack-ins-det-pty property ASoC: da7219: Add Jack insertion detection polarity .../devicetree/bindings/sound/da7219.txt | 112 --------- .../bindings/sound/dialog,da7219.yaml | 237 ++++++++++++++++++ include/sound/da7219-aad.h | 6 + sound/soc/codecs/da7219-aad.c | 42 +++- 4 files changed, 281 insertions(+), 116 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/da7219.txt create mode 100644 Documentation/devicetree/bindings/sound/dialog,da7219.yaml