From patchwork Thu Feb 22 08:38:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seven Lee X-Patchwork-Id: 204621 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:aa16:b0:108:e6aa:91d0 with SMTP id by22csp112711dyb; Thu, 22 Feb 2024 00:39:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVazzd7b9JzqhHLBsYAugC410WSTM6KVWEpG8z45jQg4iTpLE7DFBllUDSglaaxm5p5yjDIhhkvgd0h5oLwheKPQZlSQQ== X-Google-Smtp-Source: AGHT+IEa2L23fXIq1sE/vNhY9ONE0jaVFq1RBys2sx0joEWjP4HcPS6N9cMm6Uqrjr8RlKQ+afO/ X-Received: by 2002:a05:620a:2a04:b0:787:8ed4:29eb with SMTP id o4-20020a05620a2a0400b007878ed429ebmr4915835qkp.66.1708591156255; Thu, 22 Feb 2024 00:39:16 -0800 (PST) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s3-20020a05620a0bc300b007879c17eb3asi981793qki.699.2024.02.22.00.39.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 00:39:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76117-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@nuvoton.com header.s=selector1 header.b=i8Ey668x; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-76117-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76117-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=nuvoton.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0164F1C213C5 for ; Thu, 22 Feb 2024 08:39:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA42736102; Thu, 22 Feb 2024 08:38:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nuvoton.com header.i=@nuvoton.com header.b="i8Ey668x" Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2055.outbound.protection.outlook.com [40.107.215.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC2E92BD1F; Thu, 22 Feb 2024 08:38:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.215.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708591133; cv=fail; b=pjGCc2kE4gqsGSzBOxSwDBFowzUK2Es0Bz4kILww7dlJ1YqpR6UEqBExs9D6IoVN/7QE+SOORMVPZ+XCmP2l92CCteS3OMhur1kfa0XgpnpiSTf5aOZgOPtkFWAvhh7hLG6QLzFTSQkfgqIYAtG7PQUoKW9yBmI62cu0hNZfilU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708591133; c=relaxed/simple; bh=T5V/UwZCq1o8TASQElNrC9PYQxvvCjDp7o78hxA+N8E=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Lenn85LMewxPI+NRyU8J4iDaZ0BaJtOT54dv6allbE/nei6ceImS9CF43UOB1a6VnA2anx6qTFaEpyzV+riIwbP4QoG5hqgal1FMI1okYGKa6jrKj2P9bCmxyq7y0T3LjY8CoGAKfSGQsD743nUp8LNbp7zGsOIN4hsKkQhHyPw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=nuvoton.com; spf=pass smtp.mailfrom=nuvoton.com; dkim=pass (1024-bit key) header.d=nuvoton.com header.i=@nuvoton.com header.b=i8Ey668x; arc=fail smtp.client-ip=40.107.215.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=nuvoton.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nuvoton.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P8+xLa95hxW9ix/WLpE6qM+Q618JJXFB5ySVZVNNhK30hYuiSnasIhRTx+LAioDbt+CmJUIGkjnMBAA7VYCITZCk8K+Rs8EMe3R0s1ZlRCZFsBVbA9kce6en43FN+TOY5wKnLJRmYterwBDWXiC/lCuA+S4VqdVOiWKsSPtPahuXFM0+vFiz6dbVcFHG0ZppFonblekAqulmhkypVXC+Q7yD7BSe2AIbfGMv9DjpWwxh4iIJAhvtoSop1LkCt46YtjnnGkmtH+CgNZ+6guuGMSux5sfs6zdVPpwaEej/MFiXYI1DfiJL5S6MlFMnVJKbEtoTYishoaRC8q9GVtqKYg== 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=WGd6C6Bzsob5/3bEQUI9QrK9Uw4L+Yoqp5PYEkXkFwI=; b=Y7SFBqmxsRLkBiepuGKYcvREAZ9yvQftgkdDDTNwkB9xT+94do3s2I3ZE5DKimvb2Fy2SJ60y47zQLV6sSlZgpQh15uMluKL+6dF0nzfyv4yRr/7/7L2GIy2iCUxIyY6EyeHozjrrjmFEDYKluc8p1pPf1FWpsDTq9rdWmxJDcL5yxPpZwq4lCNFAgfsyEA6BNAJgLyjkLLNLj7elLpIB8IPIDLZw3Cenhw+E3jAgbTesvcDGveAjb5FGDSqcisA7e+61AsFWJu+2sI1S79Nb5BZ+5sMAFhPoAA6p9TskLKVqZYn7FQuswf8xzeNu7OkAliEW06kdKmsKC3zOMIqVw== 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=WGd6C6Bzsob5/3bEQUI9QrK9Uw4L+Yoqp5PYEkXkFwI=; b=i8Ey668xtNs3u+gMOy488kS8RnxD68kseM5yp69vZO83ZrBknZ7zb6TS4V8sRjnJJkyr4LL71jP4UKbPF8u+TZNvEpE7voNw+kOBV+IJZeGuGf3RICm80HO1NWN4SmX98BQjg0rMmJ38s+qaXlf5f+B3fQtymu01e5dMST1XASs= Received: from SG2P153CA0045.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c6::14) by SEYPR03MB6904.apcprd03.prod.outlook.com (2603:1096:101:b1::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.24; Thu, 22 Feb 2024 08:38:45 +0000 Received: from SG1PEPF000082E3.apcprd02.prod.outlook.com (2603:1096:4:c6:cafe::a0) by SG2P153CA0045.outlook.office365.com (2603:1096:4:c6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.7 via Frontend Transport; Thu, 22 Feb 2024 08:38:44 +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 SG1PEPF000082E3.mail.protection.outlook.com (10.167.240.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.7292.25 via Frontend Transport; Thu, 22 Feb 2024 08:38:44 +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; Thu, 22 Feb 2024 16:38:42 +0800 Received: from NTHCCAS04.nuvoton.com (10.1.8.29) by NTHCML01B.nuvoton.com (10.1.8.178) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.14; Thu, 22 Feb 2024 16:38:42 +0800 Received: from localhost.localdomain (10.11.36.27) by NTHCCAS04.nuvoton.com (10.1.8.29) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 22 Feb 2024 16:38:42 +0800 From: Seven Lee To: CC: , , , , , , , , , , , , , Subject: [PATCH v2 1/2] ASoC: dt-bindings: Added schema for "nuvoton,nau8325" Date: Thu, 22 Feb 2024 16:38:24 +0800 Message-ID: <20240222083825.190854-2-wtli@nuvoton.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240222083825.190854-1-wtli@nuvoton.com> References: <20240222083825.190854-1-wtli@nuvoton.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-NotSetDelaration: True X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG1PEPF000082E3:EE_|SEYPR03MB6904:EE_ X-MS-Office365-Filtering-Correlation-Id: f43d9ab8-65f3-4a6a-c6ed-08dc3381adfc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 86E4Wz6EfgSD9VVhQdWjFt2L5eEmWFDR6bGZNxjNFt2UE30aM69GJfSZ7peYfk6FnNszQHg6FV9hp8hXE2q2A2DxsiPq0SNjN0Lj9sswhtjMWflu8LeEqxCCLiLroKfXg/lMjN2Pf7OhSieghMnrw8DamCBwAC0VOhe4pUIELCOCvekjoBu1ZD0SMwjmWB6QoWrH4lWeU4CYeOyrOvdlKqlDRhofCxH4jxNVcCyJAHLHZIwB4+IyWYwz75BgZIhg1Zq3m0QnwenX5cxPtGdSVd6KrLa1mCY5Vjsp/xKJ/kUTEKKBw6nQyS9k60NMjBgEI26X2nzTL0eFotj9h9zDlGYN0lwKntVyj+AeWGJHR1lum2mBZXS0Lp1OXgCybLhpmyIdwWuWsGNubh6qL5rDwXGZ9rQli3oc0Q0TqIBzMIINUIpG9hFivldl5nYIB3dbO1nQ0+KxlethIGUmCKlI9ES9lKTTRen+Q0dnlhEWYuYFdcqhmEMUSt4b9oakvTCX6oRGfZHc2rPCMk3ODBJiu0bgHKSnT2HxjxTRa0qC5KdRV33gcilpMsZmNSapXiX0y9thEADOrNP5myMClslCpzyJeUlJEZopHDn80LgMuUlI29BITDkknZwPlaFAyrOpZN2Fa25oR81T8vp8jjlLtw== 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)(36860700004)(40470700004)(46966006);DIR:OUT;SFP:1101; X-OriginatorOrg: nuvoton.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2024 08:38:44.1652 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f43d9ab8-65f3-4a6a-c6ed-08dc3381adfc 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: SG1PEPF000082E3.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB6904 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791587680324496238 X-GMAIL-MSGID: 1791587680324496238 Added a DT schema for describing nau8325 audio amplifiers. Signed-off-by: Seven Lee --- .../bindings/sound/nuvoton,nau8325.yaml | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/nuvoton,nau8325.yaml diff --git a/Documentation/devicetree/bindings/sound/nuvoton,nau8325.yaml b/Documentation/devicetree/bindings/sound/nuvoton,nau8325.yaml new file mode 100644 index 000000000000..fc72baf0bb7a --- /dev/null +++ b/Documentation/devicetree/bindings/sound/nuvoton,nau8325.yaml @@ -0,0 +1,82 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/nuvoton,nau8325.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NAU8325 audio Amplifier + +maintainers: + - Seven Lee + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: nuvoton,nau8325 + + reg: + maxItems: 1 + + nuvoton,vref-impedance: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + VREF impedance selection. + enum: + - 0 # Open + - 1 # 25kOhm + - 2 # 125kOhm + - 3 # 2.5kOhm + default: 2 + + nuvoton,dac-vref: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + DAC Reference Voltage Setting. + enum: + - VDDA + - VDDA*1.5/1.8V + - VDDA*1.6/1.8V + - VDDA*1.7/1.8V + default: 2 + + nuvoton,alc-enable: + description: + Enable digital automatic level control (ALC) function. + type: boolean + + nuvoton,clock-detection-disable: + description: + When clock detection is enabled, it will detect whether MCLK + and FS are within the range. MCLK range is from 2.048MHz to 24.576MHz. + FS range is from 8kHz to 96kHz. + type: boolean + + nuvoton,clock-det-data: + description: + Request clock detection to require 2048 non-zero samples before enabling + the audio paths. If set then non-zero samples is required, otherwise it + doesn't matter. + type: boolean + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + codec@21 { + compatible = "nuvoton,nau8325"; + reg = <0x21>; + nuvoton,vref-impedance = <2>; + nuvoton,dac-vref = <2>; + nuvoton,alc-enable; + nuvoton,clock-det-data; + }; + };