Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752332AbdIVPK0 (ORCPT ); Fri, 22 Sep 2017 11:10:26 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6978 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751909AbdIVPKY (ORCPT ); Fri, 22 Sep 2017 11:10:24 -0400 Date: Fri, 22 Sep 2017 16:09:46 +0100 From: Jonathan Cameron To: Rob Herring CC: Ismail Kose , "Ismail H. Kose" , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , "Peter Meerwald-Stadler" , Mark Rutland , Peter Rosin , Maxime Roussin-Belanger , Jean-Francois Dagenais , Fabrice Gasnier , "Mike Looijmans" , , , Subject: Re: [PATCH v5] iio: dac: ds4422/ds4424 dac driver Message-ID: <20170922160946.00007c7d@huawei.com> In-Reply-To: <20170921232659.yfvdkynzlqeetuau@rob-hp-laptop> References: <20170919072341.10249-1-Ismail.Kose@maximintegrated.com> <20170921232659.yfvdkynzlqeetuau@rob-hp-laptop> Organization: Huawei X-Mailer: Claws Mail 3.15.0 (GTK+ 2.24.31; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.206.48.115] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090204.59C527D5.0028,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 6cad471e28198c0e3c3ada51e8078269 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3264 Lines: 93 On Thu, 21 Sep 2017 18:26:59 -0500 Rob Herring wrote: > On Tue, Sep 19, 2017 at 12:23:32AM -0700, Ismail Kose wrote: > > From: "Ismail H. Kose" > > > > This patch provides an iio device driver for DS4422/DS4424 chips that support > > two/four channel 7-bit Sink/Source Current DAC. > > > > Signed-off-by: Ismail Kose Just a quick one before V6. Please don't reply to a previous version when sending a new version. It leads to very deep and confusing thread structures. Just start a new thread. Jonathan > > --- > > v5: > > * Removed unused variable > > v4: > > * Removed unnecessary code and space optimization > > * Alphabetic order in Kcobfig and Makefile > > v3: > > * Removed iio-map and platform file support > > * Removed ds4424.h file > > * Fixed ADC value read bug > > * Removed confused comments > > * Added device tree binding file > > * Fixed bugs in probe and read function > > > > v2: > > * Fixed coding style and removed unncessary code > > * Removed min/max rfs, ifs-scale, etc values from device tree > > * Removed unused code, definitions and some comments > > * Removed regulator control and made standard structure > > * Removed data processing and channel scale > > * Removed device tree binding file > > > > .../devicetree/bindings/iio/dac/ds4424.txt | 20 ++ > > It's preferred to split bindings to separate patch. > > > drivers/iio/dac/Kconfig | 9 + > > drivers/iio/dac/Makefile | 1 + > > drivers/iio/dac/ds4424.c | 394 +++++++++++++++++++++ > > 4 files changed, 424 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/iio/dac/ds4424.txt > > create mode 100644 drivers/iio/dac/ds4424.c > > > > diff --git a/Documentation/devicetree/bindings/iio/dac/ds4424.txt b/Documentation/devicetree/bindings/iio/dac/ds4424.txt > > new file mode 100644 > > index 000000000000..840b11e1d813 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/iio/dac/ds4424.txt > > @@ -0,0 +1,20 @@ > > +Maxim Integrated DS4422/DS4424 7-bit Sink/Source Current DAC Device Driver > > + > > +Datasheet publicly available at: > > +https://datasheets.maximintegrated.com/en/ds/DS4422-DS4424.pdf > > + > > +Required properties: > > + - compatible: Must be "maxim,ds4422" or "maxim,ds4424" > > One compatible per line please. > > > + - reg: Should contain the DAC I2C address > > + - maxim,rfs-resistors-ohms: Should contain reference resistor > > ...reference resistor ohms > > > + > > +Optional properties: > > + - vcc-supply: Power supply is optional. If not defined, driver will ignore it. > > + > > +Example: > > + ds4224@10 { > > + compatible = "maxim,ds4424"; > > + reg = <0x10>; /* When A0, A1 pins are ground */ > > + vcc-supply = "dac_vcc_3v3"; > > This is not how the regulator binding works. > > > + maxim,rfs-resistors-ohms = <400 800 1000 1600>; > > The description needs to explain this is 4 values. > > > + }; > -- > To unsubscribe from this list: send the line "unsubscribe linux-iio" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html