Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp568516rdb; Tue, 23 Jan 2024 08:02:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IHhTNUCcRzoTqe4kO68+kS+ei3x00bH+ZkDyUnc8TRPo2oY1+9SBADCnB4HiMgC0598kexM X-Received: by 2002:a05:6214:e8a:b0:686:2fb3:6bda with SMTP id hf10-20020a0562140e8a00b006862fb36bdamr1324010qvb.23.1706025768771; Tue, 23 Jan 2024 08:02:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706025768; cv=pass; d=google.com; s=arc-20160816; b=xm/4aQwqugA6lD+L1WWpxhT1fHEh+z3T48sGe41BY++fnCbXc9HvVsdIgsChzLh3NA n/MEj3wlblQcw8XoTK6KU+X4ONampYMZ56v26kNE5BBfT4lBJm9v7gel/uwSfRhqxI+r revSIwXE3rxLYcLSBge54ceUQ0gmWTbiz/jAMBHgJb5J2ceo094IFXiqGPRR0M4H1YJK CBj5exqPS5Kr7Oa4GqRsfIOzYQ2NYhB6n81uQdNDom5qJrbZwpctcDcvr4+zAxMKw7L3 XqxV2F4iRiW5soCTxIrpUnf3A1NukXfppjrMSwxSfLpgtsgifmCPjoCr+SF0BmlLWKuh H8jQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4XFI7HSJpm4PkLmA50HUBRBjJ0hV+eAGZ6wqXpD9z1A=; fh=mjYfJ6zExzr1XPswLAutcfxNmumqF1otMNBxTIIZ4Kw=; b=hHLNTSzxUPZD+c1RyxvVohuaX7FXFqDw7N3FVp6SEYo2gy0ib/c2Cx0OP3ZfM3jxDx +TUzWXnkjXsxIoR94Hi0dwCKGu43uYkub4eHcsHnXjCstjcNCD0H/vl6iVyRtomVhQ/Z 54QKIPBJy0IFKshH/9aa6hME5x28Bf1av8OEBNbS25bO10qcsA0WULpSPahs02Jfalxm 0HfThQtHgSd9Bcg690tHWoZ4vk+1gQDbVqITg513rnzGNBOoxj0CGclFPtlx4QsSJ81k mJ/mU99nQpfEyZiXPMNC+RJZltpcE7VGoXV65uvmkoOkBp5iTI5WqFKIyIYYZ0xnhHF0 3MgA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JlFPkc9h; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-35614-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35614-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c6-20020a67c406000000b0046842597ac1si846892vsk.761.2024.01.23.08.02.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 08:02:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35614-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JlFPkc9h; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-35614-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35614-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 5CB591C25A9B for ; Tue, 23 Jan 2024 16:02:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EEBA612EB; Tue, 23 Jan 2024 16:02:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JlFPkc9h" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 56D185FDC6; Tue, 23 Jan 2024 16:02:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706025760; cv=none; b=JVXyYb23SqCXlcqFMzy0S6ppJqadYDbABLYFX21RTqejAfCKmVjBuBHpjM52o0pN1dBxTNKcjM6uWxFQvE1RDhd8h6MKPfY8K+kHCY1GF7+5HRv9p4r+cYJ1vdN+v3Ri67tGxRVmwrjSCz6uImc4TPwC48ZEZynMS5VZ0ub+7G8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706025760; c=relaxed/simple; bh=6iomC1fv6XGKLh/5wOuoJeeMuD80o9yncgsidbFuLPY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qoYl/2J4Vnriz0328eE7wrOyOuaBdUGv9tgs1JAq/l31Q5PmxE2eRd1rznYh4aZlNSMWF1wqermFCPAd55SzvaXibDfGqe0yytSJM4l8h09Cp4kUIBXLyUk8ZSSAobQV4hpHIsx4SfmP8oQDkd+BzrZTCVpQU/Mdzx0gqaF1Pnc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JlFPkc9h; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9407C433C7; Tue, 23 Jan 2024 16:02:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706025759; bh=6iomC1fv6XGKLh/5wOuoJeeMuD80o9yncgsidbFuLPY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JlFPkc9haUkscVMtVhapVvG6jz3mm5RZ2lNLMQhlD1+86UeJMJaqI55N9V0vLKhDw 8SJ5O2/qLzEVJXuWPFpG1OvnJCkYz5T/MZsr+7sgnE6X3jcYcQ2qJ4bFtx5M7f7VfB Nd8X66vzboN900SwkbUmgr5sm0weT+qJukLW2GmxdcH4txTtH+A6KmF2p/+iSLdm+v skGSO11YE0/JMP6Vl80Omwb+oP30YcJiDliuloOrum4AMUpML5Oz+pLHC6gbZrORXM O9jGkSmNMp9KUnrTM6t2dtVv9X7SOX5GBKQt+3kNfyc2ZEU8ycNI0W9Cy+SK+bVZLZ d09blVTbqdnnQ== Date: Tue, 23 Jan 2024 16:02:34 +0000 From: Conor Dooley To: Mark Brown Cc: Seven Lee , lgirdwood@gmail.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@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 Subject: Re: [PATCH 1/2] ASoC: dt-bindings: Added schema for "nuvoton,nau8325" Message-ID: <20240123-brewery-roving-b9ebc70468f4@spud> References: <20240122095650.60523-1-wtli@nuvoton.com> <20240122-daunting-woof-19fac5689bb2@spud> <04945799-eded-42f9-b8fa-8907be44c400@sirena.org.uk> <20240123-bottle-elevating-9fbba5424014@spud> <185f3912-5a92-4ef2-aac4-0df8363d8727@sirena.org.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="CZOKZjrI+J1e9HlH" Content-Disposition: inline In-Reply-To: <185f3912-5a92-4ef2-aac4-0df8363d8727@sirena.org.uk> --CZOKZjrI+J1e9HlH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 23, 2024 at 01:06:45PM +0000, Mark Brown wrote: > On Tue, Jan 23, 2024 at 08:34:03AM +0000, Conor Dooley wrote: > > On Mon, Jan 22, 2024 at 07:40:51PM +0000, Mark Brown wrote: > > > On Mon, Jan 22, 2024 at 06:00:14PM +0000, Conor Dooley wrote: > > > > On Mon, Jan 22, 2024 at 05:56:49PM +0800, Seven Lee wrote: >=20 > > > > > + enum: > > > > > + - 0 # VDDA > > > > > + - 1 # VDDA*1.5/1.8V > > > > > + - 2 # VDDA*1.6/1.8V > > > > > + - 3 # VDDA*1.7/1.8V >=20 > > > > I would also rather than this enum was used to have sensible values= for > > > > the enum itself (which I suppose means strings here), rather than t= he > > > > register values. Seeing "nuvoton,dac-vref =3D <2>" in a devicetree = is not > > > > very meaningful IMO. >=20 > > > Do you have a concrete suggestion for how to more clearly write these > > > directly? >=20 > > I would use what's been given as the explanation comments for each of > > the current enum values in the patch. >=20 > Given that none of *, / nor . are usable in defines that's going to need > a bit of massaging... At the end of the day, if it is too painful on the driver, then I'll live with another enum. This is one of the worse cases of this sort of enum that is clearly a bunch of register values, given there's not a "nice" explanation for them. --CZOKZjrI+J1e9HlH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZa/jCAAKCRB4tDGHoIJi 0rzSAP9jk8KYC7hIX1HdXqnBFVDfINXYg5zeasUhnLdvnkiJNwEA63S74iCvYyqD L2y649pIe19v3rQ2TUGetH88CEsCxgI= =VtcS -----END PGP SIGNATURE----- --CZOKZjrI+J1e9HlH--