From patchwork Fri Oct 27 08:21:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: WTLI X-Patchwork-Id: 738720 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 5443CC25B67 for ; Fri, 27 Oct 2023 08:23:38 +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 73661AE9; Fri, 27 Oct 2023 10:22:46 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 73661AE9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1698395016; bh=cYKnpEp7d6aLoMZuQpZbbMS1TgNujtcL2qAOl39D4cI=; 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=VhF1hJzdMY1rzPXPrzf8eEVctKzCuhbcPjn14BHUxH9vfjw22JjJ3VXE9GGJzDK8m OT1/GpT6OMbJRIIQN7wRMJWlI4ZDC7vq/5LAhQE3B9WB1TJJ6SqqjEsd563iSzUMZ8 SEj9PUk1c1Ws23A5fgwHYTSRexicdJSQhrB7bKo4= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 58E0CF8019B; Fri, 27 Oct 2023 10:22:18 +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 D86C5F8019B; Fri, 27 Oct 2023 10:22:17 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 62949F80224; Fri, 27 Oct 2023 10:22:12 +0200 (CEST) Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01hn2231.outbound.protection.outlook.com [52.100.164.231]) (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 C7A64F8014B for ; Fri, 27 Oct 2023 10:22:03 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C7A64F8014B 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=fGw7LAOF ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ID0oWwjR8p4jaVwbziCM9AiMxtABnVNzAkIv/M6EkxKThpK9ylJAA8czxZ4lRRgShaXej0xeoyJzhhPZt/HapKpxqZ+VEU4M3ivcPr57X4d39d8hEIWnZ0yUa6Qg1b4yYHW6xQ33NjH/GNn2bo7RrCA8YOsNcNNictNui3Mw9D4Dx8YS97a28ppz3kuG+HA4qaFuUBKGQqqBTprV6W8gQ5iX/o6DZbPN0p8G48Vf1CBKJJ4Qq/uzS/yTdOCiTEo9OasalTjSuJJYdMYiyA5yO8V/w/hDX669UWPktRZpUVbAn6odppqOLUrpxZOr5PG6RsS0eLFMhGDFfYqAKHiqTg== 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=wX2jBTP5sV1ADRwrexOSmKBqHTLl6/PX36w7GH0BnrU=; b=XfWUYC7y714ijYlXLRHGDE5IUiSKw+eMeaxtwlxDl+qqVI6QVHkLwhANigURkdbmJYuKfhHLK4PYOz6/GMtfHEFGPsbyVOe4f3rCoZpruU8cDP8Ygu2ef3CZMyiBTpwPjyohwfpfkcJyOUrCxKT6aP8CAJJ8HqSn7NvhcglDvQDd1RPb8E0K7LWCE/R05KDixK8duOi/bik/SsdzXyiOarN1xzOsDbKq4lvjqcP5yEnwR6XGidIRr+nK4ai3xhTX2rkWJcQFInmIPj7zaRsK8WZE1UXvri9KlwlZicVEEBytwPWrHuKtVvX+4B2kW602ZQX9ZWS7dmnwJbi3xw6Syw== 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=wX2jBTP5sV1ADRwrexOSmKBqHTLl6/PX36w7GH0BnrU=; b=fGw7LAOFOwUEqwIvgVobOzH5Vi+tCT7tf1jXtqmiw87fbAiW8fUdx84Xm0eanV+PSzXaeN8rrJnvgn3c9Z8Z1bqr3FGon+a95km4ElBhfGmQSs9Tblf+tRjUQG4pM1P03WOuw0ccLD7VzYnHBoM6NA3FvIId+AcoBAPa6Mnx2Bw= Received: from SG2P153CA0050.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c6::19) by KL1PR03MB7598.apcprd03.prod.outlook.com (2603:1096:820:e0::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.19; Fri, 27 Oct 2023 08:21:58 +0000 Received: from HK2PEPF00006FB5.apcprd02.prod.outlook.com (2603:1096:4:c6:cafe::95) by SG2P153CA0050.outlook.office365.com (2603:1096:4:c6::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.11 via Frontend Transport; Fri, 27 Oct 2023 08:21:58 +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 HK2PEPF00006FB5.mail.protection.outlook.com (10.167.8.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.6838.22 via Frontend Transport; Fri, 27 Oct 2023 08:21:57 +0000 Received: from NTHCCAS01.nuvoton.com (10.1.8.28) 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; Fri, 27 Oct 2023 16:21:56 +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; Fri, 27 Oct 2023 16:21:56 +0800 From: Seven Lee To: CC: , , , , , , , , , , , , , Subject: [PATCH v2 1/2] ASoC: dt-bindings: nau8821: Add DMIC slew rate selection Date: Fri, 27 Oct 2023 16:21:43 +0800 Message-ID: <20231027082144.639369-2-wtli@nuvoton.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231027082144.639369-1-wtli@nuvoton.com> References: <20231027082144.639369-1-wtli@nuvoton.com> MIME-Version: 1.0 X-NotSetDelaration: True X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FB5:EE_|KL1PR03MB7598:EE_ X-MS-Office365-Filtering-Correlation-Id: ef874de0-f1e8-4f4f-778a-08dbd6c5c96a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qxUosP54cmCwcQD/q/P3EKUJYHwb13Kg1uyGSfJlID+wVOjo/zc6u1+vSEzk3UzkF9mDB92+zdKDAlWs8GkTV0YunjeDIDNHp4yAzkBo3i3UGKYVl8zc+3ecaTRVO9IvhNyiXttSXFUN4Z0VB87Kbk8y/KGHCZdXTEttLkthjwcGxuMInAKAtoBFwN7WlQmKcbhw33rCi2o5XpBEu6+/OwooV1yt453jAcSi9KmhMzO9BGap4NkfBMhylgfAO+TY5XdE/2sOw3Dc+LiPYeIiY8LY7Di22E7+B0ht+eZhLtUoAmGnB6Wg8Td/VWm4dv4Kh5E9Urq5rxUQe8yrFPszisCupkbitBI5EZOnLDVAnOlgIrrpllCT4pMus+ONXR4/FLBwXsXYEYXORslaq5OyGvDWVs7d/PEdMFG9do/9z9WYovjroUd+9yt2GVRfSLCdjjBZt1xTHFgAImZgA+uc/ZgYWnbWtnYAIEgO7KZ7xiCrFIHPkYXXTK8YpGmG4P/OPy9tFQO3h0Km7uTL9uLGd5i6seqrjtqlqgRsFCk/0e205JMteDM2mrX17OE9J1grrydAzalxMT75balFbIFafyL7Uggjgk2NPEgMsnEDlxVOLaJ84cjkypUeaWkkdP2St96aGJJWH9JTHmxf5vH5V15y1KLvo0Pcmoty2QvUvxPj9wc9VcqeRErDUelIZ52r7X6aaxcQSZB0YjauLXj/WpXjQ02M/2unpFg50a9zkJOQRgXjTW/S/qI6PEJz6f90O2z9/+qmp1gL6liu7nM3oK8k55Tn58b9OJ+nO3Lu6XQtLXaCLC0ijWpmX3PiuydsxMfmchryI1FcUBnJWkz7csnLZkQHeYZyJp25aBv1NDk= 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)(39860400002)(136003)(376002)(346002)(396003)(230922051799003)(186009)(5400799018)(64100799003)(82310400011)(451199024)(1800799009)(40470700004)(46966006)(36840700001)(26005)(336012)(34020700004)(426003)(1076003)(107886003)(2616005)(47076005)(356005)(82740400003)(81166007)(36756003)(86362001)(36860700001)(40480700001)(40460700003)(8676002)(4326008)(6916009)(8936002)(54906003)(41300700001)(5660300002)(7416002)(2906002)(316002)(6666004)(70586007)(70206006)(478600001)(12100799048); DIR:OUT; SFP:1501; X-OriginatorOrg: nuvoton.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2023 08:21:57.8843 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ef874de0-f1e8-4f4f-778a-08dbd6c5c96a 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: HK2PEPF00006FB5.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB7598 Message-ID-Hash: IJXV3FCEMUFLRRDKGY6JW224Z2MPAR4A X-Message-ID-Hash: IJXV3FCEMUFLRRDKGY6JW224Z2MPAR4A 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 --- .../devicetree/bindings/sound/nuvoton,nau8821.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/nuvoton,nau8821.yaml b/Documentation/devicetree/bindings/sound/nuvoton,nau8821.yaml index 3e54abd4ca74..01028b7ff85c 100644 --- a/Documentation/devicetree/bindings/sound/nuvoton,nau8821.yaml +++ b/Documentation/devicetree/bindings/sound/nuvoton,nau8821.yaml @@ -89,6 +89,13 @@ properties: $ref: /schemas/types.yaml#/definitions/uint32 default: 3072000 + nuvoton,dmic-slew-rate-selection: + description: the number from 0 to 7 that sets the DMIC slew rate. + The unit is mV/ns. 0 is the slowest, and 7 is the fastest. + $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 +134,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 Fri Oct 27 08:21:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: WTLI X-Patchwork-Id: 739087 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 9D13DC25B67 for ; Fri, 27 Oct 2023 08:26:10 +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 4390AA4E; Fri, 27 Oct 2023 10:25:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 4390AA4E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1698395168; 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=rPmg2IdDwHetKt/+b+krFrH2y6SJgTFZgOIgubX+eeGoDuCPwWQPsMeju+fMZFhQf muq01648Yj48iio1V27XIiNzapI0DiE3nCv9Q9zZFRd/VHGjMaVNw+F82Fj/0XMYjY 9Q+vLpZ5qlPCTYtQS3DijXIarT15SzHxCznteojI= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 20261F8019B; Fri, 27 Oct 2023 10:24:49 +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 AFA87F8019B; Fri, 27 Oct 2023 10:24:48 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 855F4F8020D; Fri, 27 Oct 2023 10:22:15 +0200 (CEST) Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01hn2229.outbound.protection.outlook.com [52.100.0.229]) (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 7E64FF8010B for ; Fri, 27 Oct 2023 10:22:05 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7E64FF8010B 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=BwXbQ6TF ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fQKoor+KXVzbXC05FheiJRCwyz2In90f182d8cfCZsMjwvafrwga3EsBrBz8OFcqx1qezr5OcJUqVv/YnMZzQe9tlypjvTnhwR4NNBLX112bYLidhOFrY+2FuiqXOnD/YTXvFrMEO0vsOcuLPGuKkPTD+6vERAd4oFeip7/Q4BOy5wtzFWwVucDzUIbnguTV3KCmtCmeYdMRvK+LgzDj9DSgPN2mKxGkmtsyCZFsPpS0MPH4vUKeJ+z1MUgSy/3LHSba2Vjk+i5fKwfcHk878gWfLCBOXQ05J+G46taadxi1LgtQE+TIPyqsnwZHnmTkhlUeZ1QG5t9sRUEfNWkeqw== 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=debyMk+IJD5qR+emSDhr5aaqlapozZ+6ptlx1iNx3NHEiaNbhCxb/BYyvXi6AocZepkRmUpUmhMJajIMMGnFfjciuYSCgHYVhl2tZV/GAi49r2cwLIqhzn/SkMxMW9A3qaKnFVXzway9CM2U1QDFobujQ6SNSWqQpF91C8yYphe2Z4S4CQ4ZiXD5Gv1WHJSKoCcI3zdP5/h3ZGPTFVrCozQp5kFhpqTM6YIxIQs5JKawO4aIxKRY3pen8IWcQTaD2hAlR7X5GldRHj0RhqSonJcpoJ9S/2JI3LFdAAzqcd01WGTiviBbDkI0cWIur2z5+38j2DvO1JU/qBLZCuBpCw== 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=BwXbQ6TFt7CUvFgkWvpMpzxI/RujWw75rRljfgJaW6p3v3iqI9rEOVlaEY0mTk2ot9ogeFR2x6Y1MReW5J4h6udMF/nYl2zYdGlUKYQw5aRb7rX87BtTb3iLv7RJGi5gfZBNTf2a0fpMY2oMDTUGygj32Er27Z/Z0tc0Gg1LDNA= Received: from SI2PR06CA0015.apcprd06.prod.outlook.com (2603:1096:4:186::7) by KL1PR03MB7257.apcprd03.prod.outlook.com (2603:1096:820:bd::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.23; Fri, 27 Oct 2023 08:22:00 +0000 Received: from HK2PEPF00006FAE.apcprd02.prod.outlook.com (2603:1096:4:186:cafe::bf) by SI2PR06CA0015.outlook.office365.com (2603:1096:4:186::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.24 via Frontend Transport; Fri, 27 Oct 2023 08:21:59 +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 HK2PEPF00006FAE.mail.protection.outlook.com (10.167.8.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.6838.22 via Frontend Transport; Fri, 27 Oct 2023 08:21:59 +0000 Received: from NTHCCAS02.nuvoton.com (10.1.9.121) 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; Fri, 27 Oct 2023 16:21:58 +0800 Received: from NTHCCAS01.nuvoton.com (10.1.8.28) by NTHCCAS02.nuvoton.com (10.1.9.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 27 Oct 2023 16:21:57 +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; Fri, 27 Oct 2023 16:21:57 +0800 From: Seven Lee To: CC: , , , , , , , , , , , , , Subject: [PATCH v2 2/2] ASoC: nau8821: Add slew rate controls. Date: Fri, 27 Oct 2023 16:21:44 +0800 Message-ID: <20231027082144.639369-3-wtli@nuvoton.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231027082144.639369-1-wtli@nuvoton.com> References: <20231027082144.639369-1-wtli@nuvoton.com> MIME-Version: 1.0 X-NotSetDelaration: True X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FAE:EE_|KL1PR03MB7257:EE_ X-MS-Office365-Filtering-Correlation-Id: 29522e1f-2fcc-4659-3398-08dbd6c5ca55 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: El/zRx0V164DJIhuD6XyD/Y+/KeA1eXPZ1oBohk+tzMdHpqVcj9hMLa96mRxiSOE5swvvZQq2DQOI3TFgn7oMSONeMCmC96XTgfTI/yOtnYLweJI9B9oR7jsigkD/Y33hei5x1AueOnEoqvmGQGGXriDEK011qmxnMzAY647ahdh8DC5aH7mE0Gkox2bKaRnb989JsJjKyn8a/jSLYK+1+txBxBYtCybSAWYDbMnHRw4IULLYozYOolAANc3Hg51WqGfzMVsIxLPGwhcQ8dhX66SZYtXNBxF3EbzECVt9wxdSelcGVKxvWBWMtpB1yW521y4vnFVVAsHaB4EjxS0TGo85AEZJEvCVDlbUNXO2eroPrhCHrd0MOm5Jk7RJlmIBMvSKvfvrf5QvcOhViIFl27qmtxTCEYI0AqowPM2+dhScbf/tFahs8PJEd8vahGZ3j4jjc8NnEiHTe3VZf/5qGRRPq1hZ/w/nJSAwWQRZxHmP2iRICwPdpUt6RcRWCU4/RhQQJpqMQzj274a7f7YpJm1LlI3liwJiVegUf3wdr2AlxoysIYzZAM0nRjWmCPxGT0wQz9XF+QmUBQzEuviSoi8SSCbFeOcb658QZGYtN7dqPgxsjbOFx4RpGo/bZezABInyqDOjk6zQ5BWC6mPU5S+nl5Sf4ovq5ZfvIloxwU6ZeSuYoqqm96rZdeSBfTFXEadDfkA+T6OzT+NzFJB0hd6RkkHqcEakysp8FVdvcdJVNI+7Vi9/5vdp2WNw0mZNJEVeLzooh8m8Q24KwdS1JGyKzOxZg7rfiMKWB0RrnkQQejfOGp6nL9ahsTzhzKbckoTl4xCdbEI40jlHD+qib+iGVm9lCRsnJepH9R8wkM= 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)(136003)(39860400002)(346002)(376002)(396003)(230922051799003)(5400799018)(186009)(64100799003)(451199024)(82310400011)(1800799009)(36840700001)(40470700004)(46966006)(426003)(40480700001)(478600001)(336012)(83380400001)(6666004)(86362001)(40460700003)(8936002)(8676002)(5660300002)(7416002)(4326008)(107886003)(2616005)(26005)(1076003)(41300700001)(36756003)(316002)(6916009)(2906002)(82740400003)(34020700004)(54906003)(356005)(36860700001)(70586007)(47076005)(81166007)(70206006)(12100799048); DIR:OUT; SFP:1501; X-OriginatorOrg: nuvoton.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2023 08:21:59.4071 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 29522e1f-2fcc-4659-3398-08dbd6c5ca55 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: HK2PEPF00006FAE.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB7257 Message-ID-Hash: B4AUPJAUD752GAG34YE7TXMQ7MAA7OL2 X-Message-ID-Hash: B4AUPJAUD752GAG34YE7TXMQ7MAA7OL2 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; };