lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <38dcb8cc-5d16-41f2-845b-5c97cb691cb7@gmail.com>
Date: Wed, 17 Jan 2024 14:30:33 +0200
From: Ceclan Dumitru <mitrutzceclan@...il.com>
To: David Lechner <dlechner@...libre.com>
Cc: linus.walleij@...aro.org, brgl@...ev.pl, andy@...nel.org,
 linux-gpio@...r.kernel.org, Lars-Peter Clausen <lars@...afoo.de>,
 Jonathan Cameron <jic23@...nel.org>, Rob Herring <robh+dt@...nel.org>,
 Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
 Conor Dooley <conor+dt@...nel.org>, Michael Walle <michael@...le.cc>,
 Andy Shevchenko <andy.shevchenko@...il.com>, Arnd Bergmann <arnd@...db.de>,
 ChiaEn Wu <chiaen_wu@...htek.com>, Niklas Schnelle <schnelle@...ux.ibm.com>,
 Leonard Göhrs <l.goehrs@...gutronix.de>,
 Mike Looijmans <mike.looijmans@...ic.nl>, Haibo Chen <haibo.chen@....com>,
 Hugo Villeneuve <hvilleneuve@...onoff.com>,
 Ceclan Dumitru <dumitru.ceclan@...log.com>, linux-iio@...r.kernel.org,
 devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v11 1/2] dt-bindings: adc: add AD7173



On 1/15/24 23:53, David Lechner wrote:
> On Wed, Dec 20, 2023 at 4:48 AM Dumitru Ceclan <mitrutzceclan@...il.com> wrote:

..
> 
> According to the timing diagram in the datasheet, SCLK is high during
> idle, so don't we need `spi-cpol: true` here?
> 
> Likewise, data is valid on the trailing SCLK edge, so don't we need
> `spi-cpha: true` here?
> 
> 
V1 Rob Herring suggested that if device is not configurable, driver
should set the spi mode
>> +  gpio-controller:
>> +    description: Marks the device node as a GPIO controller.
>> +
>> +  "#gpio-cells":
>> +    const: 2
>> +    description:
>> +      The first cell is the GPIO number and the second cell specifies
>> +      GPIO flags, as defined in <dt-bindings/gpio/gpio.h>.
>> +
>> +  refin-supply:
>> +    description: external reference supply, can be used as reference for conversion.
> 
> If I'm understanding correctly, this represents both voltage inputs
> REF+ and REF-, correct? The datasheet says "Reference Input Negative
> Terminal. REF− can span from AVSS to AVDD1 − 1 V". It seems like they
> should be separate supplies in case REF- is non-zero. Otherwise, how
> can we know what voltage it is? (same comment applies to refin2.)
> Yes, but in that case, the value of the referenced supply should reflect
that and be equal to (REF+)-(REF-). I'll add to the description this.

..

>> +required:
>> +  - compatible
>> +  - reg
>> +  - interrupts
> 
> Why are interrupts required? What if the pin is not connected?
> 
>From the datasheet, the reading of the conversions seem to be only
interrupt based: "As soon as the next conversion is complete,
the data register is updated; therefore, the period in which to
read the conversion is limited." this paragraph suggests to me that
interrupts are required

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ