* [PATCH v3 0/3] ad777x driver addressing patch comments @ 2024-06-19 12:20 Ramona Alexandra Nechita 2024-06-19 12:20 ` [PATCH v3 1/3] dt-bindings: iio: adc: add a7779 doc Ramona Alexandra Nechita 2024-06-23 12:43 ` [PATCH v3 0/3] ad777x driver addressing patch comments Jonathan Cameron 0 siblings, 2 replies; 6+ messages in thread From: Ramona Alexandra Nechita @ 2024-06-19 12:20 UTC (permalink / raw) To: linux-iio Cc: Ramona Alexandra Nechita, Jonathan Cameron, Lars-Peter Clausen, Cosmin Tanislav, Michael Hennerich, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Andy Shevchenko, Nuno Sa, Marius Cristea, Marcelo Schmitt, Maksim Kiselev, Liam Beguin, Ivan Mikhaylov, Marcus Folkesson, Lee Jones, Mike Looijmans, Okan Sahin, linux-kernel, devicetree This patch series is sent to address the comments received with regards to the ad7779 driver patch: v2-0001-drivers-iio-adc-add-support-for-ad777x-family.patch, as well as the dt-bindings patch: v3-0001-dt-bindings-iio-adc-add-a7779-doc.patch. The patches were initially sent separated, this has now been corrected with this patch series, along with soeme other issues such as the cover letter and author. The changes in the series: v3: * drop spi-max-frequency from yaml and fix indent * separate ABI doc into different patch, drop ad4130 ABI doc file and combine the filter_mode/type properties in the sysfs-bus-iio file * update Kconfig help section for the driver * update driver commit message * drop crc_enabled and check crc by default on all regs except GEN_ERR_REG_1_EN * rename from "ad777x_*" to "ad7779_*" * switch from kfifo to triggered buffer and send w/timestamp * switched spidata_rx/tx buffer data type to u8 and declared channels as IIO_BE * switched to fsleep and added comments for each of them * changed "____cacheline_aligned" to "__aligned(IIO_DMA_MINALIGN)" * fixed allignments and removed redundant variables * removed local update_scan_mode in favor of iio active_scan_mask * requested trigger as NO_AUTOEN and it is enabled/disabled only in preenable/postdisable functions * removed separate ad777x_register function and moved the code in probe * switched to get_clk_enabled * check for irq earlier in probe * misc code style / format changes, as suggested Ramona Alexandra Nechita (3): dt-bindings: iio: adc: add a7779 doc Documentation: ABI: added filter mode doc in sysfs-bus-iio drivers: iio: adc: add support for ad777x family Documentation/ABI/testing/sysfs-bus-iio | 7 + .../ABI/testing/sysfs-bus-iio-adc-ad4130 | 46 - .../bindings/iio/adc/adi,ad7779.yaml | 84 ++ drivers/iio/adc/Kconfig | 11 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/ad7779.c | 936 ++++++++++++++++++ 6 files changed, 1039 insertions(+), 46 deletions(-) delete mode 100644 Documentation/ABI/testing/sysfs-bus-iio-adc-ad4130 create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml create mode 100644 drivers/iio/adc/ad7779.c -- 2.43.0 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v3 1/3] dt-bindings: iio: adc: add a7779 doc 2024-06-19 12:20 [PATCH v3 0/3] ad777x driver addressing patch comments Ramona Alexandra Nechita @ 2024-06-19 12:20 ` Ramona Alexandra Nechita 2024-06-19 13:20 ` Rob Herring (Arm) 2024-06-19 17:42 ` Conor Dooley 2024-06-23 12:43 ` [PATCH v3 0/3] ad777x driver addressing patch comments Jonathan Cameron 1 sibling, 2 replies; 6+ messages in thread From: Ramona Alexandra Nechita @ 2024-06-19 12:20 UTC (permalink / raw) To: linux-iio Cc: Ramona Alexandra Nechita, Jonathan Cameron, Lars-Peter Clausen, Cosmin Tanislav, Michael Hennerich, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Andy Shevchenko, Nuno Sa, Maksim Kiselev, Marius Cristea, Marcelo Schmitt, Marcus Folkesson, Okan Sahin, Ivan Mikhaylov, Liam Beguin, Mike Looijmans, linux-kernel, devicetree Add dt bindings for adc ad7779. Signed-off-by: Ramona Alexandra Nechita <ramona.nechita@analog.com> --- .../bindings/iio/adc/adi,ad7779.yaml | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml new file mode 100644 index 000000000000..f1eec656acec --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml @@ -0,0 +1,84 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,ad7779.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD777X family 8-Channel, 24-Bit, Simultaneous Sampling ADCs + +maintainers: + - Ramona Nechita <ramona.nechita@analog.com> + +description: | + The AD777X family consist of 8-channel, simultaneous sampling analog-to- + digital converter (ADC). Eight full Σ-Δ ADCs are on-chip. The + AD7771 provides an ultralow input current to allow direct sensor + connection. Each input channel has a programmable gain stage + allowing gains of 1, 2, 4, and 8 to map lower amplitude sensor + outputs into the full-scale ADC input range, maximizing the + dynamic range of the signal chain. + + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7770.pdf + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7771.pdf + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7779.pdf + +$ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + enum: + - adi,ad7770 + - adi,ad7771 + - adi,ad7779 + + reg: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + + vref-supply: + description: + ADC reference voltage supply + + start-gpios: + description: + Pin that controls start synchronization pulse. + maxItems: 1 + + reset-gpios: + maxItems: 1 + +required: + - compatible + - reg + - clocks + +unevaluatedProperties: false + +examples: +- | + #include <dt-bindings/gpio/gpio.h> + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "adi,ad7779"; + reg = <0>; + vref-supply = <&vref>; + start-gpios = <&gpio0 87 GPIO_ACTIVE_LOW>; + reset-gpios = <&gpio0 93 GPIO_ACTIVE_LOW>; + clocks = <&adc_clk>; + }; + }; +... -- 2.43.0 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v3 1/3] dt-bindings: iio: adc: add a7779 doc 2024-06-19 12:20 ` [PATCH v3 1/3] dt-bindings: iio: adc: add a7779 doc Ramona Alexandra Nechita @ 2024-06-19 13:20 ` Rob Herring (Arm) 2024-06-19 17:42 ` Conor Dooley 1 sibling, 0 replies; 6+ messages in thread From: Rob Herring (Arm) @ 2024-06-19 13:20 UTC (permalink / raw) To: Ramona Alexandra Nechita Cc: Krzysztof Kozlowski, devicetree, Nuno Sa, Ivan Mikhaylov, Michael Hennerich, Mike Looijmans, Lars-Peter Clausen, Okan Sahin, Liam Beguin, Marcelo Schmitt, Cosmin Tanislav, Marius Cristea, linux-kernel, Jonathan Cameron, Conor Dooley, Marcus Folkesson, Maksim Kiselev, Andy Shevchenko, linux-iio On Wed, 19 Jun 2024 15:20:44 +0300, Ramona Alexandra Nechita wrote: > Add dt bindings for adc ad7779. > > Signed-off-by: Ramona Alexandra Nechita <ramona.nechita@analog.com> > --- > .../bindings/iio/adc/adi,ad7779.yaml | 84 +++++++++++++++++++ > 1 file changed, 84 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml > My bot found errors running 'make dt_binding_check' on your patch: yamllint warnings/errors: ./Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml:69:1: [warning] wrong indentation: expected 2 but found 0 (indentation) dtschema/dtc warnings/errors: doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20240619122105.22642-2-ramona.nechita@analog.com The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3 1/3] dt-bindings: iio: adc: add a7779 doc 2024-06-19 12:20 ` [PATCH v3 1/3] dt-bindings: iio: adc: add a7779 doc Ramona Alexandra Nechita 2024-06-19 13:20 ` Rob Herring (Arm) @ 2024-06-19 17:42 ` Conor Dooley 2024-06-23 12:41 ` Jonathan Cameron 1 sibling, 1 reply; 6+ messages in thread From: Conor Dooley @ 2024-06-19 17:42 UTC (permalink / raw) To: Ramona Alexandra Nechita Cc: linux-iio, Jonathan Cameron, Lars-Peter Clausen, Cosmin Tanislav, Michael Hennerich, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Andy Shevchenko, Nuno Sa, Maksim Kiselev, Marius Cristea, Marcelo Schmitt, Marcus Folkesson, Okan Sahin, Ivan Mikhaylov, Liam Beguin, Mike Looijmans, linux-kernel, devicetree [-- Attachment #1: Type: text/plain, Size: 3337 bytes --] On Wed, Jun 19, 2024 at 03:20:44PM +0300, Ramona Alexandra Nechita wrote: > Add dt bindings for adc ad7779. > > Signed-off-by: Ramona Alexandra Nechita <ramona.nechita@analog.com> > --- > .../bindings/iio/adc/adi,ad7779.yaml | 84 +++++++++++++++++++ > 1 file changed, 84 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml > > diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml > new file mode 100644 > index 000000000000..f1eec656acec > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml > @@ -0,0 +1,84 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/adc/adi,ad7779.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Analog Devices AD777X family 8-Channel, 24-Bit, Simultaneous Sampling ADCs > + > +maintainers: > + - Ramona Nechita <ramona.nechita@analog.com> > + > +description: | > + The AD777X family consist of 8-channel, simultaneous sampling analog-to- > + digital converter (ADC). Eight full Σ-Δ ADCs are on-chip. The > + AD7771 provides an ultralow input current to allow direct sensor > + connection. Each input channel has a programmable gain stage > + allowing gains of 1, 2, 4, and 8 to map lower amplitude sensor > + outputs into the full-scale ADC input range, maximizing the > + dynamic range of the signal chain. > + > + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7770.pdf > + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7771.pdf > + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7779.pdf > + > +$ref: /schemas/spi/spi-peripheral-props.yaml# > + > +properties: > + compatible: > + enum: > + - adi,ad7770 > + - adi,ad7771 > + - adi,ad7779 > + > + reg: > + maxItems: 1 > + > + '#address-cells': > + const: 1 > + > + '#size-cells': > + const: 0 Why does this device have address/size cells, but not have any child nodes? Are you missing some channel child nodes? If you don't have children, you don't need these properties. Also, your patch is still not threaded with the other 2 patches in the series (I see 1/3 in the subject). Where are those patches? Thanks, Conor. > + > + clocks: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + vref-supply: > + description: > + ADC reference voltage supply > + > + start-gpios: > + description: > + Pin that controls start synchronization pulse. > + maxItems: 1 > + > + reset-gpios: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - clocks > + > +unevaluatedProperties: false > + > +examples: > +- | > + #include <dt-bindings/gpio/gpio.h> > + spi { > + #address-cells = <1>; > + #size-cells = <0>; > + > + adc@0 { > + compatible = "adi,ad7779"; > + reg = <0>; > + vref-supply = <&vref>; > + start-gpios = <&gpio0 87 GPIO_ACTIVE_LOW>; > + reset-gpios = <&gpio0 93 GPIO_ACTIVE_LOW>; > + clocks = <&adc_clk>; > + }; > + }; > +... > -- > 2.43.0 > [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3 1/3] dt-bindings: iio: adc: add a7779 doc 2024-06-19 17:42 ` Conor Dooley @ 2024-06-23 12:41 ` Jonathan Cameron 0 siblings, 0 replies; 6+ messages in thread From: Jonathan Cameron @ 2024-06-23 12:41 UTC (permalink / raw) To: Conor Dooley Cc: Ramona Alexandra Nechita, linux-iio, Lars-Peter Clausen, Cosmin Tanislav, Michael Hennerich, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Andy Shevchenko, Nuno Sa, Maksim Kiselev, Marius Cristea, Marcelo Schmitt, Marcus Folkesson, Okan Sahin, Ivan Mikhaylov, Liam Beguin, Mike Looijmans, linux-kernel, devicetree On Wed, 19 Jun 2024 18:42:31 +0100 Conor Dooley <conor@kernel.org> wrote: > On Wed, Jun 19, 2024 at 03:20:44PM +0300, Ramona Alexandra Nechita wrote: > > Add dt bindings for adc ad7779. > > > > Signed-off-by: Ramona Alexandra Nechita <ramona.nechita@analog.com> > > --- > > .../bindings/iio/adc/adi,ad7779.yaml | 84 +++++++++++++++++++ > > 1 file changed, 84 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml > > > > diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml > > new file mode 100644 > > index 000000000000..f1eec656acec > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml > > @@ -0,0 +1,84 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/iio/adc/adi,ad7779.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Analog Devices AD777X family 8-Channel, 24-Bit, Simultaneous Sampling ADCs > > + > > +maintainers: > > + - Ramona Nechita <ramona.nechita@analog.com> > > + > > +description: | > > + The AD777X family consist of 8-channel, simultaneous sampling analog-to- > > + digital converter (ADC). Eight full Σ-Δ ADCs are on-chip. The > > + AD7771 provides an ultralow input current to allow direct sensor > > + connection. Each input channel has a programmable gain stage > > + allowing gains of 1, 2, 4, and 8 to map lower amplitude sensor > > + outputs into the full-scale ADC input range, maximizing the > > + dynamic range of the signal chain. > > + > > + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7770.pdf > > + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7771.pdf > > + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7779.pdf > > + > > +$ref: /schemas/spi/spi-peripheral-props.yaml# > > + > > +properties: > > + compatible: > > + enum: > > + - adi,ad7770 > > + - adi,ad7771 > > + - adi,ad7779 > > + > > + reg: > > + maxItems: 1 > > + > > + '#address-cells': > > + const: 1 > > + > > + '#size-cells': > > + const: 0 > > Why does this device have address/size cells, but not have any child > nodes? Are you missing some channel child nodes? If you don't have > children, you don't need these properties. > > Also, your patch is still not threaded with the other 2 patches in the > series (I see 1/3 in the subject). Where are those patches? Yeah, I have 3 copies of the cover letter, one with patch 1, one with patch 2, one on it's own and a stray patch 3 and patchwork has failed to figure it out... Can one of the other Analog devices folk help Ramona get a working confirmation for sending patches please. The b4 gateway is a good option if no one has the magic config incantation to get emails out of a particular corporate network. > > Thanks, > Conor. > > > + > > + clocks: > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 1 > > + > > + vref-supply: > > + description: > > + ADC reference voltage supply I assume there is at least one more supply? They should all be listed in here and those that 'must' be turned on for the device to function should be in required. If it's optional, then add to the description what happens if it isn't supplied. Typically that's for reference supplies where the device has another option such as an internal reference. Jonathan > > + > > + start-gpios: > > + description: > > + Pin that controls start synchronization pulse. > > + maxItems: 1 > > + > > + reset-gpios: > > + maxItems: 1 > > + > > +required: > > + - compatible > > + - reg > > + - clocks > > + > > +unevaluatedProperties: false > > + > > +examples: > > +- | > > + #include <dt-bindings/gpio/gpio.h> > > + spi { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + adc@0 { > > + compatible = "adi,ad7779"; > > + reg = <0>; > > + vref-supply = <&vref>; > > + start-gpios = <&gpio0 87 GPIO_ACTIVE_LOW>; > > + reset-gpios = <&gpio0 93 GPIO_ACTIVE_LOW>; > > + clocks = <&adc_clk>; > > + }; > > + }; > > +... > > -- > > 2.43.0 > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3 0/3] ad777x driver addressing patch comments 2024-06-19 12:20 [PATCH v3 0/3] ad777x driver addressing patch comments Ramona Alexandra Nechita 2024-06-19 12:20 ` [PATCH v3 1/3] dt-bindings: iio: adc: add a7779 doc Ramona Alexandra Nechita @ 2024-06-23 12:43 ` Jonathan Cameron 1 sibling, 0 replies; 6+ messages in thread From: Jonathan Cameron @ 2024-06-23 12:43 UTC (permalink / raw) To: Ramona Alexandra Nechita Cc: linux-iio, Lars-Peter Clausen, Cosmin Tanislav, Michael Hennerich, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Andy Shevchenko, Nuno Sa, Marius Cristea, Marcelo Schmitt, Maksim Kiselev, Liam Beguin, Ivan Mikhaylov, Marcus Folkesson, Lee Jones, Mike Looijmans, Okan Sahin, linux-kernel, devicetree Don't change the patch title of a series mid way through multiple revisions without a very good reason. Some of the automation we use relies on those matching to ensure the latest version is picked up. J ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-06-23 12:43 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-06-19 12:20 [PATCH v3 0/3] ad777x driver addressing patch comments Ramona Alexandra Nechita 2024-06-19 12:20 ` [PATCH v3 1/3] dt-bindings: iio: adc: add a7779 doc Ramona Alexandra Nechita 2024-06-19 13:20 ` Rob Herring (Arm) 2024-06-19 17:42 ` Conor Dooley 2024-06-23 12:41 ` Jonathan Cameron 2024-06-23 12:43 ` [PATCH v3 0/3] ad777x driver addressing patch comments Jonathan Cameron
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).