public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
From: Dan Murphy <dmurphy@ti.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: <linux-iio@vger.kernel.org>, <knaack.h@gmx.de>, <lars@metafoo.de>,
	<pmeerw@pmeerw.net>, <linux-kernel@vger.kernel.org>,
	Rob Herring <robh+dt@kernel.org>
Subject: Re: [PATCH 1/2] dt-binding: iio: dac8771: Add TI DAC8771 binding
Date: Fri, 3 Jan 2020 07:22:11 -0600	[thread overview]
Message-ID: <736cb479-cda3-caff-5f48-fe9a5b13c33f@ti.com> (raw)
In-Reply-To: <20191223144442.3171e641@archlinux>

Jonathan

Thanks for the review.  I was on holiday

On 12/23/19 8:44 AM, Jonathan Cameron wrote:
> On Tue, 17 Dec 2019 08:07:30 -0600
> Dan Murphy <dmurphy@ti.com> wrote:
>
>> Add the TI DAC8771 DT binding.
>>
>> Datasheet:
>> http://www.ti.com/lit/ds/symlink/dac8771.pdf
>>
>> Signed-off-by: Dan Murphy <dmurphy@ti.com>
>> CC: Rob Herring <robh+dt@kernel.org>
>> ---
>>   .../bindings/iio/dac/ti,dac8771.yaml          | 89 +++++++++++++++++++
>>   1 file changed, 89 insertions(+)
>>   create mode 100644 Documentation/devicetree/bindings/iio/dac/ti,dac8771.yaml
>>
>> diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac8771.yaml b/Documentation/devicetree/bindings/iio/dac/ti,dac8771.yaml
>> new file mode 100644
>> index 000000000000..6aba6789d36c
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/iio/dac/ti,dac8771.yaml
>> @@ -0,0 +1,89 @@
>> +# SPDX-License-Identifier: GPL-2.0
> If possible, it is preferred for new bindings to be dual licensed as
>
> (GPL-2.0-only OR BSD-2-Clause)
>
Ack


>> +# Copyright (C) 2019 Texas Instruments Incorporated
>> +%YAML 1.2
>> +---
>> +$id: "http://devicetree.org/schemas/bindings/iio/dac/ti,dac8771.yaml#"
>> +$schema: "http://devicetree.org/meta-schemas/core.yaml#"
>> +
>> +title: Texas Instruments DAC8771
>> +
>> +maintainers:
>> +  - Dan Murphy <dmurphy@ti.com>
>> +
>> +description: |
>> +  The DAC8771 is a single channel, precision, fully integrated 16-bit digital
>> +  to analog converter (DAC) with adaptive power management, and is designed to
>> +  meet the requirements of industrial control applications.
>> +
>> +  Specifications can be found at:
>> +    http://www.ti.com/lit/ds/symlink/dac8771.pdf
>> +
>> +properties:
>> +  compatible:
>> +    enum:
>> +      - ti,dac8771
>> +
>> +  reg:
>> +    maxItems: 1
>> +
>> +  reset-gpios:
>> +    description: |
>> +       GPIO used for hardware reset.
>> +
>> +  loaddacs-gpios:
>> +    description: |
>> +       GPIO used to shift the data from the SPI FIFO to the processing engine.
>> +
>> +  spi-max-frequency:
>> +    maximum: 25000000
>> +
>> +  vref-supply:
>> +    description: Phandle to the external reference voltage supply.
>> +
>> +  ti,output-range:
>> +    description: Output range of the DAC
>> +       0 - Voltage output 0 to +5 V (default)
> Hmm. I'm never keen on opaque bindings, but sometimes things
> are just too complex to break out as individual fields.
>
> So I guess this is the best we can do.

Yes that is true.  These values are the same as the ones in the data sheet.

It would have been a simpler binding if the current values were not 
nested with the voltage values.

Dan

  reply	other threads:[~2020-01-03 13:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-17 14:07 [PATCH 0/2] Texas Instruments DAC8771 Dan Murphy
2019-12-17 14:07 ` [PATCH 1/2] dt-binding: iio: dac8771: Add TI DAC8771 binding Dan Murphy
2019-12-23 14:44   ` Jonathan Cameron
2020-01-03 13:22     ` Dan Murphy [this message]
2019-12-17 14:07 ` [PATCH 2/2] iio: dac: Introduce the TI DAC8771 DAC driver Dan Murphy
2019-12-23 15:13   ` Jonathan Cameron
2020-01-03 13:43     ` Dan Murphy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=736cb479-cda3-caff-5f48-fe9a5b13c33f@ti.com \
    --to=dmurphy@ti.com \
    --cc=jic23@kernel.org \
    --cc=knaack.h@gmx.de \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pmeerw@pmeerw.net \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox