Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp277074lqs; Thu, 13 Jun 2024 09:42:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXdBHU7gk26ca8rxaVhPS/jgoX/S42IE4ubSJsHb26/q3c5ReKeF1vzu9rgcWEm8PUCnKjb/zX2OnU5oOzqeovXJxWne1Y2StKSygVy3Q== X-Google-Smtp-Source: AGHT+IFs1IpJfMX8PEA6TjH/ZF59Q00QmY6QaY26LGPtdX6bg0Xhq1ajaFfMvWJg0EpbJBS2zvQ2 X-Received: by 2002:a17:906:2a51:b0:a6f:58f3:9e65 with SMTP id a640c23a62f3a-a6f60d418a1mr21027466b.41.1718296950821; Thu, 13 Jun 2024 09:42:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718296950; cv=pass; d=google.com; s=arc-20160816; b=sJRCxu/PVGI/KVpBx8CPw4TuGo0CxLP1uXvXZaqPNmtsA8RlBAdMvLGABbmvkTW6/p UrBpZFH5GIWKqsAQ/Gx2+UfA8Demrz1/j+0qGOvmmolaE37ijYFRenFWR+OqGNXOBffC StZqwSnTZTUA+W7PediVLXVMmTo20G1WvEWLxyQ2m8iI5uFtVL26FsxZ8b2/ZIm9fl+v vLrKT1/brlHUyfGrCtEN0XjyXyhl9Lki7YZZZbdLi5nyIR3kPIU5oWCNMEGTnvLrkJ81 nf19OfhRwm6JUabb8212JudQfFpgAQcp3XgABSwvVR69S8DNm7+mxyIWt+OLZlfUKIvW Wh6w== 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=RFlZcj3mB69iV41AeZ0g+w7BOgWumIYDmjD7TqanMJs=; fh=Ss0UczAdYTMU2RI94hLMLlLQal8VC82AriPYUaHNyos=; b=KfxmyrQtww4B+T14cj1/tXmQ7faaY9ZJzKxbd/a2gbEDnwGSSTXiybIgAGkFGQhmNt W5PD20W3eZEHz3oDsBdamaWmbJz19MkxpVgGAZv7rDnBN+l6j3IdKc1TDcEcMOe8vswc 4RTRz5Nh6JJgnEVrJwTPkWtqphUiaKW4PEQYT7uSMEnxPSTZePuqZ58R4Mn9HiUDTCh0 eVfKFIX6Vh/5/XBzGDs8ANFcg+FJ9LtEDxZyP5stUey2BOvHW4HxcdyUil576RPWdfYX kmjkFa3Kv0zidwIKz+AT5KGnzFDYC+Cng19sO5MQ9r7RDBeFhRWAZ+J6G5dgikD5sDgj 2JCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kamjskX+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213662-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213662-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56df72a2si84952866b.653.2024.06.13.09.42.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 09:42:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213662-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kamjskX+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213662-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213662-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 89A091F234C4 for ; Thu, 13 Jun 2024 16:42:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6552149C61; Thu, 13 Jun 2024 16:41:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kamjskX+" 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 013DE1494C2; Thu, 13 Jun 2024 16:41:58 +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=1718296919; cv=none; b=luflvezkm7IyY4yohq/SlTXOHQHpjeybyGyPIOWmQlwav1GSoT+g+nGbVUvP/YvDjiEWsbWbAQ7HR8deg11Wgf9oLtZurIHWJgYvoJWAjTCCwAqsThGbIorGIK1fZUhTbZ0ge5U/GsNOLyCi/luI7ZxzWpj6dshkgHaKIWxOguA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718296919; c=relaxed/simple; bh=vsXFKBT+cSrkgehHrImlatR7bWrZFbEWVqJGyHEVB8g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NI6ahHgD5e3QmkE6/6BxGzRWooGxUiJ7oPp1FRJyeeecMNYkySoh6oKYwGcMtURjZljV6xl/0ModwxiH0esp0y40+NaJmNqNQBiHKxtSs87idlorio6JCNx28anMiw+RbxDlGEA7XUj6w/vHXA2UT7zc5MfFXRDWl72CdqZjbi8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kamjskX+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F41B8C32786; Thu, 13 Jun 2024 16:41:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718296918; bh=vsXFKBT+cSrkgehHrImlatR7bWrZFbEWVqJGyHEVB8g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kamjskX+1DHnEM5Qq8CuMsKFatQSlkozsBYZC9ATYruNzKLVszlk+scp82PsvBcCb P+UdGu/2EtHqz0I/nJ4wtUwJT5ywO/vPfpDzP5X+gZEbjQfsFmQF3B8C+1q7z9GhmE gKodOoGMIEHLjmk+fyBqucpN/I3oYLbV8LiCvfgtgqhjDIhyS6hpcK0z3eAQ+qypqr ZwdvYxFSheCWa/ZYq5WxtwLYtNRvqQe7MMO0vVNIQikg8ZpC1X5vikLlqWCbkiYAAn B7798lI3ncnzys9kxPNaK4VP43FBIVbbR46FrG0d69snNIRC3JvU+OhSH3zh2bHFEb xP+fFuyuSz6Fw== Date: Thu, 13 Jun 2024 17:41:52 +0100 From: Conor Dooley To: Alisa-Dariana Roman Cc: Alisa-Dariana Roman , Jonathan Cameron , Michael Hennerich , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alexandru Tachici , Lars-Peter Clausen , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown Subject: Re: [PATCH v4 2/5] dt-bindings: iio: adc: ad7192: Update clock config Message-ID: <20240613-vineyard-doing-87ada1b7a8ed@spud> References: <20240613114001.270233-1-alisa.roman@analog.com> <20240613114001.270233-3-alisa.roman@analog.com> 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="m9XQa0OBbOvIhW8/" Content-Disposition: inline In-Reply-To: <20240613114001.270233-3-alisa.roman@analog.com> --m9XQa0OBbOvIhW8/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 13, 2024 at 02:39:58PM +0300, Alisa-Dariana Roman wrote: > There are actually 4 configuration modes of clock source for AD719X > devices. Either a crystal can be attached externally between MCLK1 and > MCLK2 pins, or an external CMOS-compatible clock can drive the MCLK2 > pin. The other 2 modes make use of the 4.92MHz internal clock. >=20 > Add clock name xtal alongside mclk. When an external crystal is > attached, xtal should be chosen. When an external clock is used, mclk > should be chosen. This is still missing an explanation of why a new name is needed. Hint: do you need to change register settings to use one versus the other? >=20 > The presence of an external clock source is optional, not required. When > absent, internal clock is used. Modify required property accordingly and > modify second example to showcase this. >=20 > Signed-off-by: Alisa-Dariana Roman > --- > .../devicetree/bindings/iio/adc/adi,ad7192.yaml | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml b/= Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml > index a03da9489ed9..3ae2f860d24c 100644 > --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml > +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml > @@ -39,11 +39,15 @@ properties: > =20 > clocks: > maxItems: 1 > - description: phandle to the master clock (mclk) > + description: | > + Optionally, either a crystal can be attached externally between MC= LK1 and > + MCLK2 pins, or an external CMOS-compatible clock can drive the MCL= K2 > + pin. If absent, internal 4.92MHz clock is used. > =20 > clock-names: > - items: > - - const: mclk > + enum: > + - xtal > + - mclk > =20 > interrupts: > maxItems: 1 > @@ -135,8 +139,6 @@ patternProperties: > required: > - compatible > - reg > - - clocks > - - clock-names > - interrupts > - dvdd-supply > - avdd-supply > @@ -202,8 +204,6 @@ examples: > spi-max-frequency =3D <1000000>; > spi-cpol; > spi-cpha; > - clocks =3D <&ad7192_mclk>; > - clock-names =3D "mclk"; > interrupts =3D <25 0x2>; > interrupt-parent =3D <&gpio>; > aincom-supply =3D <&aincom>; > --=20 > 2.34.1 >=20 --m9XQa0OBbOvIhW8/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZmshUAAKCRB4tDGHoIJi 0j40AQC/5ubIJbIF44JX0Xp18MLiKZANhOQVvlyxU5cJNPT6FwD/clq35TXv6JWP NmWCp4wPP5eoWvB4SVNvRsbXOAGxAgs= =/uC6 -----END PGP SIGNATURE----- --m9XQa0OBbOvIhW8/--