Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5429761rdb; Wed, 13 Dec 2023 08:24:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IHoYlZOutyoG3gkL4TSiCj7QHWgEUdqRfcs/yZeaCgeF0mljqCrNNQLVJjNo4W3R/k1ZUvW X-Received: by 2002:a17:902:d2cf:b0:1d0:6ffd:9e1f with SMTP id n15-20020a170902d2cf00b001d06ffd9e1fmr7784333plc.113.1702484643761; Wed, 13 Dec 2023 08:24:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702484643; cv=none; d=google.com; s=arc-20160816; b=T+Ne4ObIiPH8bJ0Ul3XFMp9UGMTl3x0WQyA3jxKaXGcSOVu1Nlsba4jOXN/NBR9MLY E7TJANXXzopmPmU9VUT42XD/OUqV1RFo0Y0WW60heuS8EE/L/knyYGg4llgD08ws1OjA R4QQSfLu8WjiPb9tAzW/tCkDiOCq1D3WBUd1hGXPOcmPnArjAQK2rhu/YUd5EKXalPpN MjpFv09rplFFOUv3R2v7U1XByJfAvgRc1SL7SbSQIKDfoEOKImGARXpj3iYZK39QIy7F WqPf6pnUodgBvt1AHkhHs9c3f8sp22cYL1XoQ9j3fAnwAlWJZqskRpHAThK5urtU6iwi q3nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zQjMbCQ17FucXUPcPHNjZvs2SeimwpPssjUThxjAGpQ=; fh=lSY+cqnjJVfemsfzaE7uQnK68l4VQo1UnZ3wWDLnLlA=; b=FH6VYIveiDlwdH5YHB2moCpt4hGDw2Y4yhSTlaUQqu2KSFIylGSBxKQaSOsUHFZ6MU uqBDQq+0F/4z4n7wTB746EzVfguuElq46W9+0tyyTMgYWV1IGeWmwo8mk0r9L6wPKDFu LQL0cSF6zGdcnBMns+SRxli0bnWe0ZjPmQC3ZrEpiwkdg543rU7wGWatPB0qfeObcu4j xILuu7eLriAHklZuiO9eQXJ/cDnPGvo+Rv3gsWxvD2ShadzmWFNAIoq9EO6LEtd+4EVj 6wg+oiuGrg0uNSTn6H0eI8/GougOi1062mqaAWicF9TLSBvLWxUT6jLwMx6qZ9x5JjLa tn3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kq2WMYzG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id z16-20020a170903019000b001cc2853bfe6si10107543plg.192.2023.12.13.08.24.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:24:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kq2WMYzG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B4B128032A24; Wed, 13 Dec 2023 08:23:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233632AbjLMQXo (ORCPT + 99 others); Wed, 13 Dec 2023 11:23:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233642AbjLMQXm (ORCPT ); Wed, 13 Dec 2023 11:23:42 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85E67DD for ; Wed, 13 Dec 2023 08:23:47 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DE61C433CA; Wed, 13 Dec 2023 16:23:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702484627; bh=XFSkcVLPkIh+/24c0S1bkj+e0UjVJVCIdZQ/7DuBXHo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kq2WMYzG0Cksn/leFF/HBWvYW1ptopPBajj6mSVWswXhL8w+5UoXhWV5C2kFrblWY 3f8JvxOJXj6P293FCK26KRbYf0CIpGgI7QdcsNTohxKCQKxIC5nVYTaSbEl3uBj/p7 WDDltBGUsUGIt2vmrG0KIHTi4/qOM9sxUMA+fYFwr2Xgfr0Wb92ZU5AWGtb4mGH3dS 7qnhPVJV+u8lorOfGGYB9eT6OyrIJJFTy9CLtc2ls/6wtPhZoaVF7gU3ZJ/Q5KDPUU KAsX6552wsIzfj/Noo0xB7/ulMgC5zZJK4HhT0Dgt96AROoYf5UQeI04LJhsENtQUb Pa2lnInOvHS7w== Date: Wed, 13 Dec 2023 16:23:43 +0000 From: Conor Dooley To: Mike Looijmans Cc: devicetree@vger.kernel.org, linux-iio@vger.kernel.org, Conor Dooley , Jonathan Cameron , Krzysztof Kozlowski , Lars-Peter Clausen , Rob Herring , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: iio: adc: ti-ads1298: Add driver Message-ID: <20231213-diffuser-disposal-ea21bbce8b64@spud> References: <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.618139b3-8cb2-4e4c-9283-9e3787c70105@emailsignatures365.codetwo.com> <20231213094722.31547-1-mike.looijmans@topic.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wheiXICN3N+7aHqO" Content-Disposition: inline In-Reply-To: <20231213094722.31547-1-mike.looijmans@topic.nl> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 13 Dec 2023 08:23:59 -0800 (PST) --wheiXICN3N+7aHqO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 13, 2023 at 10:47:21AM +0100, Mike Looijmans wrote: > Skeleton driver for the TI ADS1298 medical ADC. This device is > typically used for ECG and similar measurements. Supports data > acquisition at configurable scale and sampling frequency. I think the commit subject and body here were accidentally copy-pasted =66rom the driver patch. Patches for bindings should avoid talking about drivers and focus on the harware (unless we are talking about LEDs or motors etc) >=20 > Signed-off-by: Mike Looijmans >=20 > --- >=20 > .../bindings/iio/adc/ti,ads1298.yaml | 80 +++++++++++++++++++ > 1 file changed, 80 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,ads1298.= yaml >=20 > diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads1298.yaml b/= Documentation/devicetree/bindings/iio/adc/ti,ads1298.yaml > new file mode 100644 > index 000000000000..7a160ba721eb > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads1298.yaml > @@ -0,0 +1,80 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/adc/ti,ads1298.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Texas Instruments' ads1298 medical ADC chips > + > +maintainers: > + - Mike Looijmans > + > +properties: > + compatible: > + enum: > + - ti,ads1298 > + > + reg: > + maxItems: 1 > + > + spi-cpha: true > + > + reset-gpios: > + maxItems: 1 > + > + avdd-supply: > + description: > + Analog power supply, voltage between AVDD and AVSS. When providing= a > + symmetric +/- 2.5V, the regulator should report 5V. > + > + vref-supply: > + description: > + Optional reference voltage. If omitted, internal reference is used, > + depending on analog supply this is 2.4 or 4V. It may be worth mentioning here what the conditions for the internal reference being 2.4 or 4 volts actually are. > + > + clocks: > + description: Optional 2.048 MHz external source clock on CLK pin > + maxItems: 1 > + > + clock-names: > + const: clk Since you have only one clock, having clock-names (especially with a name like "clk") is pointless IMO. Generally though, this patch looks good to me. Cheers, Conor. > + interrupts: > + description: Interrupt on DRDY pin, triggers on falling edge > + maxItems: 1 > + > + label: true > + > +required: > + - compatible > + - reg > + - avdd-supply > + - interrupts > + > +allOf: > + - $ref: /schemas/spi/spi-peripheral-props.yaml# > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + spi { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + adc@1 { > + reg =3D <1>; > + compatible =3D "ti,ads1298"; > + label =3D "ads1298-1-ecg"; > + avdd-supply =3D <®_iso_5v_a>; > + clock-names =3D "clk"; > + clocks =3D <&clk_ads1298>; > + interrupt-parent =3D <&gpio0>; > + interrupts =3D <78 IRQ_TYPE_EDGE_FALLING>; > + spi-max-frequency =3D <20000000>; > + spi-cpha; > + }; > + }; > +... > --=20 > 2.34.1 >=20 >=20 > Met vriendelijke groet / kind regards, >=20 > Mike Looijmans > System Expert >=20 >=20 > TOPIC Embedded Products B.V. > Materiaalweg 4, 5681 RJ Best > The Netherlands >=20 > T: +31 (0) 499 33 69 69 > E: mike.looijmans@topic.nl > W: www.topic.nl >=20 > Please consider the environment before printing this e-mail --wheiXICN3N+7aHqO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZXnajgAKCRB4tDGHoIJi 0uX4AQDdQsLinMnKQNR0gruAlC6KO76Muuel5q+ksbfjERk0UwD+I7lYJD33yIjB 9BRsIVetMvFlFztwVEH+OctNqIhFHQs= =aemH -----END PGP SIGNATURE----- --wheiXICN3N+7aHqO--