Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp104848lqg; Thu, 29 Feb 2024 22:26:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXZE9fYAgR3dlf/OwTCIXwqE08pYfddL1GmrysdpbPcL862nrXZbuZ16pXXMu0f1dZAt+/T9/U62pMK+SCLNHSA0tY51pb5OzwTs4oKqA== X-Google-Smtp-Source: AGHT+IHMfMkcaWsR406PcoFpypQiprVM3kwD5WWXoenrfUULbGvc73pztVWi7bOMjohuY7OfHXC5 X-Received: by 2002:a17:906:2988:b0:a44:2cc4:6ef2 with SMTP id x8-20020a170906298800b00a442cc46ef2mr470866eje.72.1709274418573; Thu, 29 Feb 2024 22:26:58 -0800 (PST) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gv14-20020a170906f10e00b00a447135867fsi534242ejb.24.2024.02.29.22.26.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 22:26:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87951-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@nuvoton.com header.s=selector1 header.b=iwqbutyH; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-87951-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87951-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2ACFB1F21D35 for ; Fri, 1 Mar 2024 06:26:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F31B45F85C; Fri, 1 Mar 2024 06:26:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nuvoton.com header.i=@nuvoton.com header.b="iwqbutyH" 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 D437D51C5E; Fri, 1 Mar 2024 06:26:46 +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=1709274409; cv=fail; b=YWGoEcExb+0bikAsAK+OWNyRJ7TVOFRT8H1EixPsn7qd88Q/8a+MK008zTdRewv4EtA+VNNn/o8GT88bMv31vOI/6hFK7bWA3KW19v8Q2xABnEnR8zx4BQwlJIgHK+tDr8pIWhNkA+1NAPH28sdittF9dr0+4HoMLNkbz0AJ5aU= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709274409; c=relaxed/simple; bh=LKcuCPJO4qDZOltA+EIo9ZyqcYU6pg9sqojw0w2XKEg=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=YeT8nBrqkt7S/MO+aRJLl/JhRwE5jrweE4RHyp/YSnhiPzAsooDy+DQSk9bIRxZ1XBOMXf0yz5swMybFxG+pbPp/vyEkjy5B33HRX8WHhu++A1tNZl7bZoxAwjxvZ64Pwb/b0lBMLdjlon7RIPJ9KaVbzcY5ho9mD11T7BmLMxc= 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=iwqbutyH; 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=gSEVEzecxWjANmbwM0LGyIhq5DjbLCn4OnuK6VfbRwIn4CbPua0k+RWKBlpq8F/uSr42vjLHeizxIddzHUdlq/ybZ9DEOp2ybswP2btlkYVZXyG0KMZasRwKKVAGrimntVXme0tZC9LQNumKKPh8/X9aczXL5Z9Y6M9WpO4KYm+HYFxq+JRpJhgSw7NVhfWIacSxY2TqQ/EQ3YsB+cb4XffURX6A2RhWVlthbkcyFFLma8Cg/s/qqAZ8psvgkcD21lKRltRhNd8jFFwQrkf/Kmy7pAQCPQ3//AFX/6BpF0l340IEThczt5xugSociP0TJ15WEl1z1iVt6nonhxQSXQ== 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=tmaSw0oyEIatjbu7ctzrUwpkU+RsIs9q92iF9zS0lcs=; b=e40lmc2WEVufvVoA0EvanVYduKYZobuMyU6DHswCjEKJTifTZa+tOpYclW3cCYTF0nCitT76YSFyGNsUs5mTWfNgQMOrrK/rrssR1hKCZQ8fHHMT67QYrY3I0dT83EvPu1iYAf6ALbltl5mhis3gZEOM2rqIjXH8Cd+R1EZ3k08yMFff+tTDp1WwsRBm0PC+BsaGQ9ha8cIlIJZKzXYbxszp+XYg0vSSM66RvrWhsAE14J3HW/WDWdrRHUMnc47mevojDC0F91V4b0lqTzbrgauX3kQgBY9j8cNozrpMVgnOU6oSFfXjFysIwfb0ipTQa/kvbXG7Hwbv0hkoYxyTeg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nuvoton.com; dmarc=pass action=none header.from=nuvoton.com; dkim=pass header.d=nuvoton.com; 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=tmaSw0oyEIatjbu7ctzrUwpkU+RsIs9q92iF9zS0lcs=; b=iwqbutyHtTzzYBqO/2+krxfDysOYx2YJfzT2OhFOIqutrS7wj/EngTGjUstlBE7ngB0YecgsIu9SbGDgDliDWsbz9dRniPEoLlK0jMwgwNOPNgQ2dm5kGcwnbSLeLnU4vHPjDLn7SFdPJXP9X0M3IR7ACtJYY9sd5tjfGiD16mw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nuvoton.com; Received: from SL2PR03MB4348.apcprd03.prod.outlook.com (2603:1096:100:5c::17) by TYZPR03MB8338.apcprd03.prod.outlook.com (2603:1096:405:24::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.36; Fri, 1 Mar 2024 06:26:42 +0000 Received: from SL2PR03MB4348.apcprd03.prod.outlook.com ([fe80::8694:77f5:d686:6869]) by SL2PR03MB4348.apcprd03.prod.outlook.com ([fe80::8694:77f5:d686:6869%4]) with mapi id 15.20.7316.037; Fri, 1 Mar 2024 06:26:41 +0000 Message-ID: Date: Fri, 1 Mar 2024 14:26:38 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/2] ASoC: dt-bindings: Added schema for "nuvoton,nau8325" Content-Language: en-US To: Rob Herring Cc: broonie@kernel.org, lgirdwood@gmail.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, conor+dt@kernel.org, YHCHuang@nuvoton.com, KCHSU0@nuvoton.com, CTLIN0@nuvoton.com, SJLIN0@nuvoton.com, scott6986@gmail.com, supercraig0719@gmail.com, dardar923@gmail.com References: <20240222083825.190854-1-wtli@nuvoton.com> <20240222083825.190854-2-wtli@nuvoton.com> <20240222141622.GA2748112-robh@kernel.org> From: WTLI In-Reply-To: <20240222141622.GA2748112-robh@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: TYCPR01CA0076.jpnprd01.prod.outlook.com (2603:1096:405:3::16) To SL2PR03MB4348.apcprd03.prod.outlook.com (2603:1096:100:5c::17) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SL2PR03MB4348:EE_|TYZPR03MB8338:EE_ X-MS-Office365-Filtering-Correlation-Id: 431f4141-add2-4031-2e68-08dc39b88ee7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5vwriXxINiXXXnSdOMBW3UHmCz9h090l6oqztFqLWdejjZi2oSnAVFzaoVjGIWlJwoG5olA+USLGy+3+k3GYNWyT5KFvM7jmf5N068keaMT5JRIQtyWebW2OgbyS8dyLENzsBYYYDijsysnPd4sMBVhZ8ynrANCrhV/hu/jA+ugVhUvBAak70CzKCJFP0BoJdenMua5+jkxDA2t3wF55MdW+Qe06i/gm4TzM1pPgG9f91aLyD4hddGMUXrP5/6S5TLPu0FspUL0WkYkt+9PSBxb8KHN4GFkf2kT2yxy7kRAYW1JTp6gi+4Bog11XHnUFZP1C8bGOlzmhldfYKHg7lVQLqzDNDRk0iQdTGnHyPPz1mlJRgcF1tIDADcjd0fANBXWzlwaObKVRGnJTPJAbirJc4Tivmy5NZfM5904CjJUjIBeMaCGCl7oWDkMiNa7by4Ka+jyzS5jcctbMa3pHuaYMpS3xsRcuPgpab/USj1f2qq0XHnvTDR+7vQYmX9v5w7cQHJHIuWxlz/M0TGsL+PXpohk+FsofcA3Izx6BRgG6gMm6kX2ITK1uhkHGTSt96tPEM5O478LhTuWvEeUj2w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SL2PR03MB4348.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?a2lMMEdlRGxjUzB6OEVrQzRUYmtmUzRScnZqenJnbmdwL3M0L0xNak51a29R?= =?utf-8?B?WHRIV3E4Ui9LNTY5d2ltb1ZBK3liUG5Qc2dUWDJQc0dnVVFUODVQTjE4TkI5?= =?utf-8?B?ZlUxS0Jkdk4xOTJ1cDVZUGxYSGRGRTFFdlJHcXRHeVlxWjVWMEtITTRWUHZI?= =?utf-8?B?UGFiQTdKcVV2ZmFaM1BTbWExWVAvNUxjWlM1UG9PQkU5SWRXaVVRUFJmMW5a?= =?utf-8?B?UG83M1VBUm54OUhmT0d3NmRGbUthQVgzQzcxRGVpL2lteHVnOGxzdEI2Ly9Q?= =?utf-8?B?NTJCTE43NlY5bjJ6a0wxbmZkLzAvdWh6NVBqcTdZZjU3RzN3MmVESGI2Rm9F?= =?utf-8?B?eFVxeGxLNjlXUkpRSlA4dFFZei9yYnFTNlJyL05FZDhPTms2algva1RjM2JU?= =?utf-8?B?c0hLNVk0aHhudWhURGJTWGZPUHNqWVNaT0xiYi9BYzFKckpTQ0hwUUZIZ0Nx?= =?utf-8?B?b2lZZ0R4UGdtTUd6Rk8wM0NsUlc3Tkl0MFQ5YXVBc0c1Zms2alJ0cUVhS29C?= =?utf-8?B?UEtKYjBvZEsrRXN5aHVWVllvZzVBQVp5YytWcjRYazYxQXQ4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2ZDY0VBa2xTU3ZETGYrR1hhQmcv?= =?utf-8?B?dVdmNXB4MjV3Q2xubEJReXFiYURuU2FoRFZIdGliS1JHenM4VjZ5bnNrMmVN?= =?utf-8?B?NEhITXNwV1NuRStPQXlIOWdvd0R1WmlVZ1VCVkpOZE00L29raHlkditHd3FU?= =?utf-8?B?ZER3c1JFRXBSTExMUGp6dmRCQWR3Y2JRRmdjZlVwVHBHczZyY2h6eGl6cS84?= =?utf-8?B?Z0NWc2NsYitDZVB3UEhGc3ozdmN3RDhlVjhqcTNvMlBScFZYT3gzS1dMck1U?= =?utf-8?B?WThFQVZFcmVZS3JLOXcvTCtQSjcyQWhjbnR4UitMelA3Wjl4ZXhqZ3hqcFJz?= =?utf-8?B?RktGcjJ1WlU5dWFkMndMMFU2MXFjRzBBY0J3RjZYeC9CVDFtOFduaWJudUlN?= =?utf-8?B?VlJPTTR4WUtLMkFwb3hsSWM2bTJzZ2lWN1BhR3FJRHlwM3NBNUozU1NQM0ZF?= =?utf-8?B?Z1hBWXBiNjRObXJDZ0o5aTFZdHcwbW10cC90OUQzTFc1eGwwR3VYUHFBWUh6?= =?utf-8?B?TlhNMVlVM1FabCtDUGFhc0RpSFFJWTRtTDRKZHY5c0VlSVNUQlZreVlkWEhV?= =?utf-8?B?aEdGYVZWMXd6bUNoWmxMRitDVFZZaXM4OUpLdFVNczRXQVJPQUtnVi9NUUc4?= =?utf-8?Q?kt3otFbcP/yDYU0JMOXMuzoT0?= X-OriginatorOrg: nuvoton.com X-MS-Exchange-CrossTenant-Network-Message-Id: 431f4141-add2-4031-2e68-08dc39b88ee7 X-MS-Exchange-CrossTenant-AuthSource: SL2PR03MB4348.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2024 06:26:41.6257 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a3f24931-d403-4b4a-94f1-7d83ac638e07 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: weXCwrOLtTiLZkJLEu1qcUbGV8xzNDVUWgnQbYjTu0vlUxV/hCysOu430vZAWypv3GZhCkyY/1hR9gDeVLuFYw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR03MB8338 Rob Herring =E6=96=BC 2/22/2024 10:16 PM =E5=AF=AB=E9=81=93: > CAUTION - External Email: Do not click links or open attachments unless y= ou acknowledge the sender and content. > > > On Thu, Feb 22, 2024 at 04:38:24PM +0800, Seven Lee wrote: >> Added a DT schema for describing nau8325 audio amplifiers. > Please test your bindings before sending. okay, thanks. > >> Signed-off-by: Seven Lee >> --- >> .../bindings/sound/nuvoton,nau8325.yaml | 82 +++++++++++++++++++ >> 1 file changed, 82 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/sound/nuvoton,nau= 8325.yaml >> >> diff --git a/Documentation/devicetree/bindings/sound/nuvoton,nau8325.yam= l 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 > Use standard unit suffixes. okay, I will use standard unit suffixes. > >> + 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 > Use standard unit suffixes. okay, I will use standard unit suffixes. > >> + description: >> + DAC Reference Voltage Setting. >> + enum: >> + - VDDA > in Volts? yes, this is Volts. > >> + - VDDA*1.5/1.8V > Volts/Volts > > So 2 different units? Both units are volts. I will modify the enum definition. > >> + - 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.57= 6MHz. >> + FS range is from 8kHz to 96kHz. >> + type: boolean >> + >> + nuvoton,clock-det-data: >> + description: >> + Request clock detection to require 2048 non-zero samples before e= nabling >> + the audio paths. If set then non-zero samples is required, otherw= ise it >> + doesn't matter. >> + type: boolean >> + >> +required: >> + - compatible >> + - reg >> + >> +unevaluatedProperties: false >> + >> +examples: >> + - | >> + i2c { >> + #address-cells =3D <1>; >> + #size-cells =3D <0>; >> + codec@21 { >> + compatible =3D "nuvoton,nau8325"; >> + reg =3D <0x21>; >> + nuvoton,vref-impedance =3D <2>; >> + nuvoton,dac-vref =3D <2>; >> + nuvoton,alc-enable; >> + nuvoton,clock-det-data; >> + }; >> + }; >> -- >> 2.25.1 >> ________________________________ ________________________________ The privileged confidential information contained in this email is intende= d for use only by the addressees as indicated by the original sender of thi= s email. If you are not the addressee indicated in this email or are not re= sponsible for delivery of the email to such a person, please kindly reply t= o the sender indicating this fact and delete all copies of it from your com= puter and network server immediately. Your cooperation is highly appreciate= d. It is advised that any unauthorized use of confidential information of N= uvoton is strictly prohibited; and any information in this email irrelevant= to the official business of Nuvoton shall be deemed as neither given nor e= ndorsed by Nuvoton.