From patchwork Tue Nov 7 03:52:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seven Lee X-Patchwork-Id: 13447866 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 63B11C4332F for ; Tue, 7 Nov 2023 03:57:53 +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 9DFB886F; Tue, 7 Nov 2023 04:57:01 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9DFB886F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1699329471; bh=cJk54itdah4BANgt+npSIo0veViZGtGH+K+W/Y5gbsE=; 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=T0G0RvDIm8NKD7wL+RoBVH95LDfUUMyIVsWpo6qQCi/04G9rbRf/2MknkRSowifCL V8AtSJ6YHW2UbB9fiBfulr2lMgkNleNgIoCJST9RNJVDacugXJkarFnUCGOVgxw/bM 8o4bqnIm7txpKtcKJIWRMuI3V8/+8P5yrGofuQrc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id DCE35F80563; Tue, 7 Nov 2023 04:56:11 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id DDF77F80563; Tue, 7 Nov 2023 04:56:10 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0070DF801F5; Tue, 7 Nov 2023 04:53:10 +0100 (CET) Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on20601.outbound.protection.outlook.com [IPv6:2a01:111:f403:2011::601]) (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 AF392F80125 for ; Tue, 7 Nov 2023 04:53:03 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz AF392F80125 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=g04Tt59+ ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lZEL1P1clXk/NyqCaAGfilBOPR3b2kKG6stHuoIyXorCxUHCg0wm1q9o/6StBHVOm8oHQ+Z3RKbm1ipuzaHhy9/T9+APfEsynbTvDD6grktTG9zSehq296O7thzDUpZ2e64XzFjy/cTEM0AyuuwbCsNNadjbmz+E1H3TDWqARNWgaXi/6bp4o8DbGrhK2/B6SgJJWW89Lhvq7d/mRpVDnuqNcDKWdRh89LYxv9G/ADQrm8RzK9UAdZWDUmgCLJDzE9F2iv2d6Ga/DEk6I5V+aTyRLvvLbQQIhWvdS2U7foCUOWID1HR+kEkfjDllu0y1ft0m3xSNO/3D7G8NKZKWqQ== 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=z82lfyBnK3TV+y5xeq6J4tQtgLcPKjjHTTyUCjiQDK0=; b=GYbVe5GPZEYuzSNrPpfmV3Ut4BwuywkzrtBO0MRNa9LMEPhslIJwXUZXmyitXSYCpIahBXxNxpUiaLuqacN+sVmq0pgmNX1V9dSFQog10jfWejRaGULggEHfFdwFhbkAef2jMC2lF81kejF9BuLr0iuChMBKBT8NqFtkKLHWiKzBZROZ3ly8hkVCyjH3AaYhLhIFf+MAUtLXu9xTRKdFn087344ckAbuowBEvaDl0dDRL0xVMJn2u9WBOVMSIrmSJZIUyl6LU6Cz1/0gk0rvO0Uex4RR4LnwDbagRrC0QRV1dkiLHzn7R4GwSQZLUJM4DV/FoIu0rWbF6TmQJK0tng== 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=z82lfyBnK3TV+y5xeq6J4tQtgLcPKjjHTTyUCjiQDK0=; b=g04Tt59+dlmcZngDY+0iCtfj/H4EGWMpfbApb434A6DVsS++PFesrvUom/SXr4VA2jMoru6XDT4bi9X7mGBkenP8WfqyVAAgp0VNKabUjWgh8r4pxKPmlh2/g/gWLFpAWA9U27XEFZ3KbhblbZXWpReK3w/vcNHciC8iyrchc6M= Received: from SG2PR06CA0203.apcprd06.prod.outlook.com (2603:1096:4:1::35) by SEZPR03MB7515.apcprd03.prod.outlook.com (2603:1096:101:12f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.28; Tue, 7 Nov 2023 03:52:53 +0000 Received: from SG2PEPF000B66CA.apcprd03.prod.outlook.com (2603:1096:4:1:cafe::89) by SG2PR06CA0203.outlook.office365.com (2603:1096:4:1::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.29 via Frontend Transport; Tue, 7 Nov 2023 03:52:53 +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 SG2PEPF000B66CA.mail.protection.outlook.com (10.167.240.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.6977.16 via Frontend Transport; Tue, 7 Nov 2023 03:52:53 +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; Tue, 7 Nov 2023 11:52:51 +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; Tue, 7 Nov 2023 11:52:51 +0800 From: Seven Lee To: CC: , , , , , , , , , , , , , Subject: [PATCH v4 1/2] ASoC: dt-bindings: nau8821: Add DMIC slew rate. Date: Tue, 7 Nov 2023 11:52:29 +0800 Message-ID: <20231107035230.1241683-2-wtli@nuvoton.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231107035230.1241683-1-wtli@nuvoton.com> References: <20231107035230.1241683-1-wtli@nuvoton.com> MIME-Version: 1.0 X-NotSetDelaration: True X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66CA:EE_|SEZPR03MB7515:EE_ X-MS-Office365-Filtering-Correlation-Id: 3d78a2ac-4c21-4a65-7bd2-08dbdf450504 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: s4VsgCdBXXDtHA45kt0/VdMhcL+77FBzoTw11sEUFaRRzi1x0+KwVRt0/XBDQPaKBtnnRlAYGLMctfcDfAd8Zb3k40OH9WJfPgU8IQcnQJswOlMgsod0wISQKDYwaROGUl5HP5erYrmiuwju8ejSSrvz9+5G1F437haVpVX5/B+rRqOhrgmfD+1Ofv4F3Grwhh+HRaWQQ0hi0DIaanYvkOOWP1OjFAheiDOQL/apa01VpAoOrQqK9VeSs6wV7rrvk3uTENt126JReFYsJxCodVJVsV09Eno3BvR9kVGYPwYM5xjOLlvnHB+TNowkvFfCJ5WYCcgrclUq7qhUiTUaEZDIuYzy8rpoV8eQwDHKXdhV354qdayL/qNSYDQL1AsuXAAPaYyLOSZtyBXooNSqBFXX8DCQdT+S7pvyI5xtMRQnUwBI5qn356VOxkzl7PnkkzcCDvB+lhVYuOdc9nqmZ8OuzHLlrNeEzQZPSmq6jaklu5DB6dGRnsyu4eSnsMTVmqvpicr4ZWxUAXcQ6/CBCDaPtnEYO76Mi96woHCLWqNrGReoOJIilXs3bSF/MXd8ZpM4PXz8cbdNlbIb3TBWTw2JvaeOQWkLOS+JzS3EUznreCR4SN3C+jhfUCs/NxP+F6DY0tdYSz7PgT9etn9eEikCxe8tdT23zT/oPyd82NGaQQSq05EGq4Sf5sInCLvEPZ6rdbc3bCkKxvv3xljSHEObFp+Iq+k7eG9HvGN8Zj19Jdma8Uk1AwShzvgzejJZhRKK8TcSSoUOKnyViMiwkBh9nuL+RRWjI2pPySMclTM= 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)(396003)(346002)(39860400002)(376002)(230922051799003)(1800799009)(186009)(82310400011)(64100799003)(451199024)(46966006)(40470700004)(36840700001)(40460700003)(36756003)(40480700001)(316002)(426003)(336012)(8676002)(4326008)(8936002)(26005)(1076003)(7416002)(6916009)(54906003)(70206006)(36860700001)(5660300002)(70586007)(41300700001)(478600001)(47076005)(6666004)(2616005)(81166007)(2906002)(82740400003)(86362001)(356005);DIR:OUT;SFP:1101; X-OriginatorOrg: nuvoton.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2023 03:52:53.2037 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3d78a2ac-4c21-4a65-7bd2-08dbdf450504 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: SG2PEPF000B66CA.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR03MB7515 Message-ID-Hash: 2GK4CMSMFURDWJVODAEBEFUTU5N7XLZS X-Message-ID-Hash: 2GK4CMSMFURDWJVODAEBEFUTU5N7XLZS 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 controls. Signed-off-by: Seven Lee Acked-by: Conor Dooley --- .../devicetree/bindings/sound/nuvoton,nau8821.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/nuvoton,nau8821.yaml b/Documentation/devicetree/bindings/sound/nuvoton,nau8821.yaml index 3e54abd4ca74..3380b6aa9542 100644 --- a/Documentation/devicetree/bindings/sound/nuvoton,nau8821.yaml +++ b/Documentation/devicetree/bindings/sound/nuvoton,nau8821.yaml @@ -89,6 +89,14 @@ properties: $ref: /schemas/types.yaml#/definitions/uint32 default: 3072000 + nuvoton,dmic-slew-rate: + description: The range 0 to 7 represents the speed of DMIC slew rate. + The lowest value 0 means the slowest rate and the highest value + 7 means the fastest 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 +135,7 @@ examples: nuvoton,jack-insert-debounce = <7>; nuvoton,jack-eject-debounce = <0>; nuvoton,dmic-clk-threshold = <3072000>; + nuvoton,dmic-slew-rate= <0>; #sound-dai-cells = <0>; }; }; From patchwork Tue Nov 7 03:52:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seven Lee X-Patchwork-Id: 13447867 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 812F5C4167D for ; Tue, 7 Nov 2023 03:57:55 +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 56CDF950; Tue, 7 Nov 2023 04:57:03 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 56CDF950 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1699329473; bh=b72sSb1Y2+cwRAxYI0HPae0EzX7PnQVK/XPRNczEyfo=; 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=JD0CQnVRL2IuNYjHebKKZHrfBLgSud14uocRlnFPuGG+M7zmaGUzC5sGHwpqXFPRi sqCkbSUXyoNET33q4cTrzduqqXyDWriEv07zmvLSw8FiUVGij5e9v/bmKZHhrRPZfk VFM4ZWKrxAUTqtPLNP7+2suyi+z8XsQiMwYt7X9A= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4DCF0F8057B; Tue, 7 Nov 2023 04:56:13 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id ACCD1F8057A; Tue, 7 Nov 2023 04:56:12 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id EDFCCF8016D; Tue, 7 Nov 2023 04:53:41 +0100 (CET) Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on20626.outbound.protection.outlook.com [IPv6:2a01:111:f400:feab::626]) (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 CCD8CF800ED for ; Tue, 7 Nov 2023 04:53:06 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz CCD8CF800ED 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=ONsKZzrm ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H0MBR7kh75rLY7sxgg2/zevGKIAzglqFU/ISDOGv+bwuxqOsx/wayrNAi/7bZcRvqz8kWcvboUlcVPoMPbB0b442Z/7LZZEjUWO73ID4dEDOPuW4WulKxGpfkY8fSQXMe88lHfsNQfvVnsuBdIUw6KBglUbmaN/jbiDfX9SKa0eCRhxSwNPCoP/UDjsD8XWSt6LhBUqp/MGdB11ck/lD+9K4w/foyfkL6UDe08vH0xxM+erMS6CYKl5c0Ce+qNqU78yVLNv7yo80DkuiAcXJdyMieZxR8H7BKPUJzJx4X8PdqVriHJZ2ZPfFpwxabo3dRUoAMmFe01yDXE8Evo1W1g== 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=VcaICetR5lyEKj6pIUQJ2asUqjV4ZwfHDhAFVDFV/yA=; b=fjTWWKc22+zc0zA0HEwGOD2YaYvVfOkl9d6zX6mvjATbJzIyQOSgxDZCiE2Jc11QBkNE4PlfvNSAQi6th2FYpP5ZvXJPMSMaWX++C0wd/p4ZvXOEkOpow52JJ1xu3Jxe5jEPrvXbpIs/w8QD2whRy2AAFLpovYct/CDj3iPb+6jmPcRgUbzwWCHJQtEu8U3EqzzFuouqGzUYMJ1xW2I4UsPnnioHrZDpuqoJ+eokmzTNJbNK7By7Nv2RLhkyGe+LfRqWTilW1mT/A4XBxrW++w//OhL82O/GU14v0B/l8woAPvRAb2NqUT7dTvqU+VEifRBxVxSzGt8fp0f0Z6i/iQ== 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 (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=VcaICetR5lyEKj6pIUQJ2asUqjV4ZwfHDhAFVDFV/yA=; b=ONsKZzrmKZPZuc1VyCTjvXrVN3J+om+58g4IAfXAcooVgQTApSNHVOYdZJ16SOPAvxzKPNRiUHxk3srMtuKrJk1NAHWjv66hojqpcZRL3LiEGEZDDlTPlqC9DsZCPy+EtFpb6Dvi8KX2MmQCb79aWjtVvzmBqLz7upiF5B7qSz0= Received: from SG2PR04CA0215.apcprd04.prod.outlook.com (2603:1096:4:187::14) by SEZPR03MB6571.apcprd03.prod.outlook.com (2603:1096:101:76::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.27; Tue, 7 Nov 2023 03:52:56 +0000 Received: from SG1PEPF000082E6.apcprd02.prod.outlook.com (2603:1096:4:187:cafe::b0) by SG2PR04CA0215.outlook.office365.com (2603:1096:4:187::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.29 via Frontend Transport; Tue, 7 Nov 2023 03:52:56 +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 SG1PEPF000082E6.mail.protection.outlook.com (10.167.240.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6977.16 via Frontend Transport; Tue, 7 Nov 2023 03:52:56 +0000 Received: from NTHCCAS02.nuvoton.com (10.1.9.121) 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; Tue, 7 Nov 2023 11:52:53 +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; Tue, 7 Nov 2023 11:52:53 +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; Tue, 7 Nov 2023 11:52:53 +0800 From: Seven Lee To: CC: , , , , , , , , , , , , , Subject: [PATCH v4 2/2] ASoC: nau8821: Add slew rate controls. Date: Tue, 7 Nov 2023 11:52:30 +0800 Message-ID: <20231107035230.1241683-3-wtli@nuvoton.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231107035230.1241683-1-wtli@nuvoton.com> References: <20231107035230.1241683-1-wtli@nuvoton.com> MIME-Version: 1.0 X-NotSetDelaration: True X-EOPAttributedMessage: 0 X-MS-Exchange-SkipListedInternetSender: ip=[211.75.126.7];domain=NTHCCAS01.nuvoton.com X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG1PEPF000082E6:EE_|SEZPR03MB6571:EE_ X-MS-Office365-Filtering-Correlation-Id: 59a7ac9a-c72a-4a98-3f8a-08dbdf4506be X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ClVqKh9U1k3jQDPABPv1xTnSVhni6HpwcTmE6bu3Lt6zMlucmWURqV2QdrxyYSEsJLnIQRutI/tp1bVcYfZ81tkfhQGpnn5NqQLr29QUXa87EkWjezRwI+3EZhkWd7bbLSGHa8fEIgQ10KOj0vytOPVcioSr0LsxoZiYoYmF/G0QabFDC4fLXFcsNzytzmLLXVh+702h6zU4eMRGpRWvS0b2ef/4lEWENLN+3cLfWuM7OC08Vf83sV33KVGntMvO2MgOUldD3725wWAIshcR+/MbE1N4vx/AFgOFrOG2MoniqEat5tc1Jx0VOrNvhVfx8NOC57aimQddB48BTSLyV0wdkqmyCvtFVyC6pDBtxCnpagaphD72RsjRqvB9wvc63XLfOXxSmRn+Sx3PWi7IzJGHcbMZwt4WkY5em7JKU593aEyF/3+NP1l4FDvlwppNIPyaeCevAMMZ6P5O059aC5Jv5SBAP2VkB4HGWcVcRS1PRNZm3DVZCOtMQNia0a0bF53MX6I8JWbMA0MlBIrO9Z7ozJ+ccZPvJrSzmNSXLwGIDgEmF6rccsKAB+aUlClzCWQCLsGbWRqKvoIxFeWhKGEMwf1G0jcYvTPEia5zJEKMi0fuwJ/fljMo8GO0WnneNQanVMvOYYDwvQJxvp3xGtlZsDIkMUTl8vRaGHTK68ZVgw5Rv4+wyNu5IoJO1sVLSu8Ks7C1FgTUD5zktsy4oYN4Bvh5fWGdI7p7YeqwV8U6sLYjIrrKGTCJVNdVTg1rCYZRe9tA7FCpft48LwOijF3wEtoUMFthe6eX9R4aFFA= 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)(346002)(136003)(376002)(396003)(39860400002)(230922051799003)(186009)(64100799003)(451199024)(1800799009)(82310400011)(36840700001)(40470700004)(46966006)(40460700003)(40480700001)(36756003)(54906003)(426003)(336012)(5660300002)(83380400001)(8676002)(8936002)(26005)(316002)(70586007)(70206006)(6916009)(1076003)(36860700001)(2906002)(7416002)(47076005)(41300700001)(478600001)(2616005)(6666004)(86362001)(4326008)(82740400003)(356005)(81166007);DIR:OUT;SFP:1101; X-OriginatorOrg: nuvoton.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2023 03:52:56.0832 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 59a7ac9a-c72a-4a98-3f8a-08dbdf4506be 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: SG1PEPF000082E6.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR03MB6571 Message-ID-Hash: JW53DIR4NAMWH7JNL47TW6F6EIJALCZV X-Message-ID-Hash: JW53DIR4NAMWH7JNL47TW6F6EIJALCZV 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 controls. 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..012e347e6391 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", + &nau8821->dmic_slew_rate); + if (ret) + nau8821->dmic_slew_rate = 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 << + 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..62eaad130b2e 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; int key_enable; };