From patchwork Mon Oct 23 02:15:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seven Lee X-Patchwork-Id: 13432278 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 9CA67C0032E for ; Mon, 23 Oct 2023 02:17:24 +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 A81C5852; Mon, 23 Oct 2023 04:16:32 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A81C5852 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1698027442; bh=Z0uyhO5psE0XcKiDyV9xzRWhC+/eliSFDaaO/qFL/+0=; h=From:To:CC:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=gg3e/20ZVfx2wi/VfXo4GlfSDL6eJS8k88LVTB+Bm1U/zAgfO3Zcua9tlaMj1sGSz J/j9VvryrJ+MsfkAQ+bE/84PKK2o62/LRm77raSDt33OaRehjQKC34ETLz7aj8YY75 SQkUfrQDYLd/KJz3DLr6OvoZJUvhruX6WKylup6I= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 88A2EF80557; Mon, 23 Oct 2023 04:16:10 +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 CC444F80537; Mon, 23 Oct 2023 04:16:09 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id DA36BF80527; Mon, 23 Oct 2023 04:16:01 +0200 (CEST) Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on20614.outbound.protection.outlook.com [IPv6:2a01:111:f400:feab::614]) (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 10ED6F80053 for ; Mon, 23 Oct 2023 04:15:51 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 10ED6F80053 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=nuvoton.com header.i=@nuvoton.com header.a=rsa-sha256 header.s=selector1 header.b=NxUivNus ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nXuZz74++AdIhkc5X1N3RelCitxwBFF2Nj8yyqMLkA3oPrYrh0KNv6QK2dwL2QsWfFP8czizpeR9ytJllG4s5fxhyDbXD4UPdv2GVg3V/N3JPiOosIAxJG1Ek+xIGsNVG/blGThnyl1FGAbem0fcyYfDruhkkOu+FhkNCQcbhz66mw5lcrl96n9KjRImxMF1bezYLCLdFuWZuWlRIZm5RjoPdmZd8wr7c5uF48lB1+6rylAqx0iEuQGWdyOWSEkO96c7uhiHQ9x5Xy6ciC3hYpmzkptGTWuvHP5XJ7XH/zAiBzw2JoU0OFDaQcCALTUECltq/vvT1K1QSlvGgeADMQ== 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=p0B6YPQjXsiydo8BAkiftkLvXJ1z6BjLQPPkrd+sWvA=; b=L8zpM+JW+OsXzR8blywPP3P3WTk4ziqCACidPAV9SzonoxNf/XkBPL1CQgGdRxDCwnxf9oL9VXM/ypgpXybFWn9FtxQHEzb0L3lhGVmCqo0xYSe+K86ClvZTgneXVjrFsBVi+cGAtrqIvyqX+3zI4d0eIUY7kYm2roMaSx2E9S3g4D5wtGbu+kajfoWoUBZoiB+Fue+L9Na6asWTozXdbJ9c4po6oBiNnPrhGi422Dt3zO4w0R9DAqX+Jl8dI4UQxbXyBJ9mOtxZfMj1HA7Oo241BNAPVOR1f9jkjT1luV9H4FSuHNFToOCYMrq05Y6OKZTfQCY2M29g62H99Eluhg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 211.75.126.7) smtp.rcpttodomain=kernel.org smtp.mailfrom=nuvoton.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nuvoton.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuvoton.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p0B6YPQjXsiydo8BAkiftkLvXJ1z6BjLQPPkrd+sWvA=; b=NxUivNusgWwuRfMJ6a0423QjO6Py5THyCmP8Vp3GJn8BvkL1mnyMlAopKK86HVSQnJv1eyhxNMqg8Pchflib9uTSezWVxHBjDLiUTvNysgkrE727LhBh0NC+DJsPpbylYnC4dtHF0dMM23/S7f9yK1/CHSFuUXt5gEulGCc3iks= Received: from SG2PR02CA0033.apcprd02.prod.outlook.com (2603:1096:3:18::21) by SEZPR03MB8265.apcprd03.prod.outlook.com (2603:1096:101:19c::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33; Mon, 23 Oct 2023 02:15:44 +0000 Received: from SG2PEPF000B66CC.apcprd03.prod.outlook.com (2603:1096:3:18:cafe::6f) by SG2PR02CA0033.outlook.office365.com (2603:1096:3:18::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33 via Frontend Transport; Mon, 23 Oct 2023 02:15:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 211.75.126.7) smtp.mailfrom=nuvoton.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nuvoton.com; Received-SPF: Pass (protection.outlook.com: domain of nuvoton.com designates 211.75.126.7 as permitted sender) receiver=protection.outlook.com; client-ip=211.75.126.7; helo=NTHCCAS01.nuvoton.com; pr=C Received: from NTHCCAS01.nuvoton.com (211.75.126.7) by SG2PEPF000B66CC.mail.protection.outlook.com (10.167.240.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6933.15 via Frontend Transport; Mon, 23 Oct 2023 02:15:44 +0000 Received: from NTHCML01B.nuvoton.com (10.1.8.178) by NTHCCAS01.nuvoton.com (10.1.8.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 23 Oct 2023 10:15:41 +0800 Received: from NTHCCAS01.nuvoton.com (10.1.8.28) by NTHCML01B.nuvoton.com (10.1.8.178) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Mon, 23 Oct 2023 10:15:41 +0800 Received: from localhost.localdomain (10.11.36.27) by NTHCCAS01.nuvoton.com (10.1.8.28) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Mon, 23 Oct 2023 10:15:41 +0800 From: Seven Lee To: CC: , , , , , , , , , , , , , , Seven Lee Subject: [PATCH 1/2] ASoC: dt-bindings: nau8821: Add DMIC slew rate selection Date: Mon, 23 Oct 2023 10:15:36 +0800 Message-ID: <20231023021537.617980-1-wtli@nuvoton.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-NotSetDelaration: True X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66CC:EE_|SEZPR03MB8265:EE_ X-MS-Office365-Filtering-Correlation-Id: c73590e9-cde0-45d2-6fd0-08dbd36df6ab X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8tGyU1szvFinj9vSEmQjA+OsdbvGWoobJhZJLkDB/3M14QXu9qAjtGb0Wt2FVhrCtGKp35zavwPdXUJGvbyp9tY4jJH36/qYfV+cxToq+4HV66QfjsQtFg1yyKELf/tBUhRjq8wL8v8eX8xQFt7kIBZwXUq+VVYSQ7d40BiiQWY8TJ9aWI73eKgT+CokulFD7Cmb9bGVJYf3TWTSfNwYjuaUf/fNVYErysPX9CPcO6sR9WFWS3yZY6VcJSnVlnhpfAQ4+njq5BgjUoFKMCHFG3nrG6bDQwuTur8mha4JEv8i3avjDkQosMOwLYd3YgKBbrlt64H9qWfjSq8nPxwITvpy6/c8S/Wo9p7+5FLkERish8R7gTNjI09GCvNDrtcCT2FK3WmFP4MqzCvns2/B/W9rYr0jqiJMraOF6cRpjZ7Sws6rFRYDA30sL91rdDT1/722VAv8iKuvE7m8uax4lq5mK49mBIb+qzmsyMs4neQzl1wcYo3f9MRqjgm5ImiU8V8EK0ih1CsF1nbZLKkAlPVFBE+g9JTyP0Mw9H0eTAL00gcvJT5D8GqzeYUQeN5aamIoWvQbko2gAIhO+qMrWQiZnelQQpnlJ90MfYF7y/v7nQF7yY1CYtfy8IGmhRFabu8cio6KuBnMOrtIkBB7Eq9WjMmWvFax7qSyzpLJMQWpWOI04Addlp4jBgGeevf5W/sXSLaecINW/PMuw3IiS56SQ/QB1TOlhAAV9b8h7WOhf9PjCwhk9ib08JRP6+NMtNEONAeaj6b7IdtBQX6u/uOafMAY1vFa6ENcmy5LLB4= X-Forefront-Antispam-Report: CIP:211.75.126.7;CTRY:TW;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:NTHCCAS01.nuvoton.com;PTR:211-75-126-7.hinet-ip.hinet.net;CAT:NONE;SFS:(13230031)(4636009)(136003)(39860400002)(376002)(346002)(396003)(230922051799003)(186009)(82310400011)(1800799009)(451199024)(64100799003)(46966006)(40470700004)(36840700001)(2906002)(41300700001)(40460700003)(86362001)(5660300002)(7416002)(36756003)(36860700001)(4326008)(8676002)(8936002)(107886003)(478600001)(6666004)(26005)(1076003)(356005)(82740400003)(81166007)(2616005)(6916009)(316002)(54906003)(70206006)(70586007)(40480700001)(426003)(336012)(47076005);DIR:OUT;SFP:1101; X-OriginatorOrg: nuvoton.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2023 02:15:44.5289 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c73590e9-cde0-45d2-6fd0-08dbd36df6ab X-MS-Exchange-CrossTenant-Id: a3f24931-d403-4b4a-94f1-7d83ac638e07 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a3f24931-d403-4b4a-94f1-7d83ac638e07;Ip=[211.75.126.7];Helo=[NTHCCAS01.nuvoton.com] X-MS-Exchange-CrossTenant-AuthSource: SG2PEPF000B66CC.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR03MB8265 Message-ID-Hash: EH2XTS2LLEUINQMHGGHWRCYIX72H4ZBY X-Message-ID-Hash: EH2XTS2LLEUINQMHGGHWRCYIX72H4ZBY X-MailFrom: WTLI@nuvoton.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: Add input with DMIC slew rate selection Signed-off-by: Seven Lee Signed-off-by: Seven Lee --- .../devicetree/bindings/sound/nuvoton,nau8821.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/nuvoton,nau8821.yaml b/Documentation/devicetree/bindings/sound/nuvoton,nau8821.yaml index 3e54abd4ca74..5f7f2eed4834 100644 --- a/Documentation/devicetree/bindings/sound/nuvoton,nau8821.yaml +++ b/Documentation/devicetree/bindings/sound/nuvoton,nau8821.yaml @@ -89,6 +89,12 @@ properties: $ref: /schemas/types.yaml#/definitions/uint32 default: 3072000 + nuvoton,dmic-slew-rate-selection: + description: number from 0 to 7 that sets DMIC slew rate. + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 7 + default: 0 + nuvoton,left-input-single-end: description: Enable left input with single-ended settings if set. For the headset mic application, the single-ended control is @@ -127,6 +133,7 @@ examples: nuvoton,jack-insert-debounce = <7>; nuvoton,jack-eject-debounce = <0>; nuvoton,dmic-clk-threshold = <3072000>; + nuvoton,dmic-slew-rate-selection= <0>; #sound-dai-cells = <0>; }; }; From patchwork Mon Oct 23 02:15:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seven Lee X-Patchwork-Id: 13432279 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 2D10DCDB474 for ; Mon, 23 Oct 2023 02:17:54 +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 C76F7A4A; Mon, 23 Oct 2023 04:17:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C76F7A4A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1698027471; bh=Wo99pV60CA3z8UX1BUbpMqczKLogPxmYz2rDM9iCWuQ=; h=From:To:CC:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=m2+zbA8etzwjwmuS15pe0IM8x/kpefwX7uJcJApPmnQO3XlaNpU+7ntXX9+XOpNj+ hvJ9fAChCOxI0C0hiYmYd/yyHcZR/IRPgGPfDZRrMUZ8ti8//HtBDuGjwrmt6Pdi7x Qc2TG5+qTOOhvV1NGXPkYiprb/D+A7fFb640gMoc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 438C6F80568; Mon, 23 Oct 2023 04:16:11 +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 4F430F80567; Mon, 23 Oct 2023 04:16:11 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id B0A40F804F3; Mon, 23 Oct 2023 04:16:05 +0200 (CEST) Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on20600.outbound.protection.outlook.com [IPv6:2a01:111:f403:2011::600]) (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 C1086F8024E for ; Mon, 23 Oct 2023 04:15:53 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C1086F8024E Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=nuvoton.com header.i=@nuvoton.com header.a=rsa-sha256 header.s=selector1 header.b=JoIwp0qf ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PsIj9lW5656C1925alQV9T3EF6K8S/PC/oewYc3JBL6vWAO9ydA6KaOHdks80akLGTykKHHCuSLuNNjnjU4kw7fTBI5x9dXdA8zYxRB2QshoyNIeXEEF95/5kmvaaL1UXBYYMKlQ2lH5iyWQsuMGSs2OoH8FI9lktRCgEGoTp9RWSaDqwZEeShHv9u3clKVJV5hV1dAUROBhS7uQ7ANCLVHdlw8xJoydzNt/zXkHtIyBOBmmX+tXTJZyOGLwzPCifWIiwvOit8n/RygOIVJG8feNZUBjMa1k3gp5firOSqoz5W5xRBUtuRUhfyU6XyELy2UHz5Vhj5tCd/XeAH0PzQ== 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=787hQNn8Zrl4V34fsewfvHXZwHGyFnO7F/lZz3vYpDA=; b=OamKqWGrK7+regabRwN5QWny11b2gPK7EC6cGG5kllh3NcMwg+j2vUzv5ieEHZnIzpiN02PEICZa1lblsJjOZQAZS+jqqLfB4Jm++NVwgO2ksShhtKeK66CGqA+RQbyVNzQx9SZdJn6Zko7lo2S/BkUlWoTNcFPmgGsZfRgYxxnPMHKGv8Ya8IYAotnYQvHI902vXTqppWBPiTaeXL5wvKnz0YzbVJ9UmBP5m30zZp0wHiHDMilpCF3o1hZN2J0ac9tLq6i/EXAGazzvWZXG1UcpedFIArBDmbma/VxUKMKScs/e59CbvHA9b2tNZPmQxtmOb66FoFaJCGWBKmU4Bg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 175.98.123.7) smtp.rcpttodomain=kernel.org smtp.mailfrom=nuvoton.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nuvoton.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuvoton.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=787hQNn8Zrl4V34fsewfvHXZwHGyFnO7F/lZz3vYpDA=; b=JoIwp0qfkp8t0eK+Ld60jrm6CmZAnYsDLOxDKH/IUJssTLkurebtx5aQ+So1Mem1a87ii3hiC+xf0gNOCv4VR8oPPUVHGDKdZKm+X9SqXZtEOh/gFla2/B5GRGK2nP843Lax1bvtNZQbvk5+FyxiJyUBIjurDaMWpBk4DW3MUU8= Received: from SGBP274CA0015.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::27) by KL1PR03MB7053.apcprd03.prod.outlook.com (2603:1096:820:c8::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.26; Mon, 23 Oct 2023 02:15:45 +0000 Received: from SG2PEPF000B66CF.apcprd03.prod.outlook.com (2603:1096:4:b0:cafe::75) by SGBP274CA0015.outlook.office365.com (2603:1096:4:b0::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33 via Frontend Transport; Mon, 23 Oct 2023 02:15:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 175.98.123.7) smtp.mailfrom=nuvoton.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nuvoton.com; Received-SPF: Pass (protection.outlook.com: domain of nuvoton.com designates 175.98.123.7 as permitted sender) receiver=protection.outlook.com; client-ip=175.98.123.7; helo=NTHCCAS04.nuvoton.com; pr=C Received: from NTHCCAS04.nuvoton.com (175.98.123.7) by SG2PEPF000B66CF.mail.protection.outlook.com (10.167.240.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.6933.15 via Frontend Transport; Mon, 23 Oct 2023 02:15:45 +0000 Received: from NTHCML01B.nuvoton.com (10.1.8.178) by NTHCCAS04.nuvoton.com (10.1.8.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.14; Mon, 23 Oct 2023 10:15:43 +0800 Received: from NTHCCAS01.nuvoton.com (10.1.8.28) by NTHCML01B.nuvoton.com (10.1.8.178) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Mon, 23 Oct 2023 10:15:43 +0800 Received: from localhost.localdomain (10.11.36.27) by NTHCCAS01.nuvoton.com (10.1.8.28) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Mon, 23 Oct 2023 10:15:43 +0800 From: Seven Lee To: CC: , , , , , , , , , , , , , , Seven Lee Subject: [PATCH 2/2] ASoC: nau8821: Add slew rate controls. Date: Mon, 23 Oct 2023 10:15:37 +0800 Message-ID: <20231023021537.617980-2-wtli@nuvoton.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231023021537.617980-1-wtli@nuvoton.com> References: <20231023021537.617980-1-wtli@nuvoton.com> MIME-Version: 1.0 X-NotSetDelaration: True X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66CF:EE_|KL1PR03MB7053:EE_ X-MS-Office365-Filtering-Correlation-Id: f865a858-dd1a-40c6-7836-08dbd36df6f4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: G4oRNuLUic2c2TYe89bqxOok1v79tJBFTRBYj5cp7JYP6EvTtXZrx6Z6sSVDZy63sUG54OPAe7Ehy4qoQXWIsihFxN4jk3VC6sejzcEFZNE2Kn/fzlOX/8qSxPM1gb87V3B1m2VIkFMgv30ETHJxv15pEL2AkP1NrqbIU4ysl01OVDraChPqQbrJFfHASXiaZVR/N0ZW2AjVfdhLjlpqws5aJtglzzumN17b1yDpEXLzKIfGO+lz6bAHLkc3aA1F+PQMyPmlQ40il7zLY+uw1LNXv2w2bOh+OTP7ktBPjjF7SfS4XqGx/d186YZyz47PnBtcw5IMExTXV/9GsAhc37mu/DqQehAScxTCWh9OoW8hvIGuRlJ0MtIoydazpYqXo4OyaB4hLKOgHi/ZCVEQF1WAa2gSrQc3Lw1l7kOTQTjd/1OyXz0533rhj7X2hVjhLvhtfCI8S1iEsI1Drdzd8cRy2C8hzBuTjM9CNlaN/lzRPQXSH1KScSBh3l+f7m3WyiHFcMsD54SRhgPrMbYT6SO3POPO1EDFGgTWcjIQ3rSG50SjzObDY0DjB9RX52VLOOvYKE0jSZpukkydtGu4ofJpukhzlR4WIOAytah9f7uIDLKGgyV9244XHAtsnhOsQ7cdwe+p+WswZZmwu4YX7NQfuPrfsfKkabwFf8tpl4psENVYE/K+at9KM+26ttEFMrf3TBQBXhFZFIeSJBEyr9Q5WSHRoGZVVP3HWrmxM8FOa32Dl5VmfPd6IzjiYNz0HmkjZDv6ol8/ZvME+NDJIi1Hw7LqKbZXA1lPKPFh8hM= X-Forefront-Antispam-Report: CIP:175.98.123.7;CTRY:TW;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:NTHCCAS04.nuvoton.com;PTR:175-98-123-7.static.tfn.net.tw;CAT:NONE;SFS:(13230031)(4636009)(346002)(376002)(39860400002)(396003)(136003)(230922051799003)(186009)(64100799003)(451199024)(82310400011)(1800799009)(36840700001)(40470700004)(46966006)(40460700003)(336012)(426003)(36860700001)(5660300002)(4326008)(8676002)(7416002)(41300700001)(83380400001)(26005)(47076005)(107886003)(2616005)(1076003)(6666004)(2906002)(40480700001)(8936002)(86362001)(36756003)(70206006)(478600001)(6916009)(54906003)(81166007)(70586007)(316002)(356005)(82740400003);DIR:OUT;SFP:1101; X-OriginatorOrg: nuvoton.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2023 02:15:45.0076 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f865a858-dd1a-40c6-7836-08dbd36df6f4 X-MS-Exchange-CrossTenant-Id: a3f24931-d403-4b4a-94f1-7d83ac638e07 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a3f24931-d403-4b4a-94f1-7d83ac638e07;Ip=[175.98.123.7];Helo=[NTHCCAS04.nuvoton.com] X-MS-Exchange-CrossTenant-AuthSource: SG2PEPF000B66CF.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB7053 Message-ID-Hash: EFIIGRI6DZ4PWC7B4KW7DLKMGWX6QEI7 X-Message-ID-Hash: EFIIGRI6DZ4PWC7B4KW7DLKMGWX6QEI7 X-MailFrom: WTLI@nuvoton.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: The patch supports DMIC clock slew rate selection. Signed-off-by: Seven Lee --- sound/soc/codecs/nau8821.c | 7 +++++++ sound/soc/codecs/nau8821.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/sound/soc/codecs/nau8821.c b/sound/soc/codecs/nau8821.c index 6e1b6b26298a..d8190e8a431f 100644 --- a/sound/soc/codecs/nau8821.c +++ b/sound/soc/codecs/nau8821.c @@ -1738,6 +1738,10 @@ static int nau8821_read_device_properties(struct device *dev, &nau8821->dmic_clk_threshold); if (ret) nau8821->dmic_clk_threshold = 3072000; + ret = device_property_read_u32(dev, "nuvoton,dmic-slew-rate-selection", + &nau8821->dmic_slew_rate_sel); + if (ret) + nau8821->dmic_slew_rate_sel = 0; return 0; } @@ -1797,6 +1801,9 @@ static void nau8821_init_regs(struct nau8821 *nau8821) NAU8821_ADC_SYNC_DOWN_MASK, NAU8821_ADC_SYNC_DOWN_64); regmap_update_bits(regmap, NAU8821_R2C_DAC_CTRL1, NAU8821_DAC_OVERSAMPLE_MASK, NAU8821_DAC_OVERSAMPLE_64); + regmap_update_bits(regmap, NAU8821_R13_DMIC_CTRL, + NAU8821_DMIC_SLEW_MASK, nau8821->dmic_slew_rate_sel << + NAU8821_DMIC_SLEW_SFT); if (nau8821->left_input_single_end) { regmap_update_bits(regmap, NAU8821_R6B_PGA_MUTE, NAU8821_MUTE_MICNL_EN, NAU8821_MUTE_MICNL_EN); diff --git a/sound/soc/codecs/nau8821.h b/sound/soc/codecs/nau8821.h index 00a888ed07ce..480f605d5d50 100644 --- a/sound/soc/codecs/nau8821.h +++ b/sound/soc/codecs/nau8821.h @@ -236,6 +236,8 @@ #define NAU8821_DMIC_SRC_MASK (0x3 << NAU8821_DMIC_SRC_SFT) #define NAU8821_CLK_DMIC_SRC (0x2 << NAU8821_DMIC_SRC_SFT) #define NAU8821_DMIC_EN_SFT 0 +#define NAU8821_DMIC_SLEW_SFT 8 +#define NAU8821_DMIC_SLEW_MASK (0x7 << NAU8821_DMIC_SLEW_SFT) /* GPIO12_CTRL (0x1a) */ #define NAU8821_JKDET_PULL_UP (0x1 << 11) /* 0 - pull down, 1 - pull up */ @@ -573,6 +575,7 @@ struct nau8821 { int jack_eject_debounce; int fs; int dmic_clk_threshold; + int dmic_slew_rate_sel; int key_enable; };