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] [day] [month] [year] [list]
Message-ID: <20180908153055.401efbec@archlinux>
Date:   Sat, 8 Sep 2018 15:30:55 +0100
From:   Jonathan Cameron <jic23@...nel.org>
To:     Stefan Popa <stefan.popa@...log.com>
Cc:     <robh+dt@...nel.org>, <knaack.h@....de>, <lars@...afoo.de>,
        <Michael.Hennerich@...log.com>, <pmeerw@...erw.net>,
        <mark.rutland@....com>, <linux-iio@...r.kernel.org>,
        <devicetree@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 3/3] dt-bindings: adxl372: Document the adxl372 I2C
 bindings

On Tue, 4 Sep 2018 17:13:14 +0300
Stefan Popa <stefan.popa@...log.com> wrote:

> The adxl372 is designed to communicate in either SPI or I2C protocol.
> This patch adds the documentation of device tree bindings for adxl372
> I2C.
> 
> Signed-off-by: Stefan Popa <stefan.popa@...log.com>
Applied.

Thanks,

Jonathan

> ---
>  Documentation/devicetree/bindings/iio/accel/adxl372.txt | 15 +++++++++++++--
>  1 file changed, 13 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/iio/accel/adxl372.txt b/Documentation/devicetree/bindings/iio/accel/adxl372.txt
> index 9409984..a289964 100644
> --- a/Documentation/devicetree/bindings/iio/accel/adxl372.txt
> +++ b/Documentation/devicetree/bindings/iio/accel/adxl372.txt
> @@ -4,14 +4,25 @@ http://www.analog.com/media/en/technical-documentation/data-sheets/adxl372.pdf
>  
>  Required properties:
>   - compatible : should be "adi,adxl372"
> - - reg: SPI chip select number for the device
> + - reg: the I2C address or SPI chip select number for the device
> +
> +Required properties for SPI bus usage:
>   - spi-max-frequency: Max SPI frequency to use
>  
>  Optional properties:
>   - interrupts: interrupt mapping for IRQ as documented in
>     Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
>  
> -Example:
> +Example for a I2C device node:
> +
> +	accelerometer@53 {
> +		compatible = "adi,adxl372";
> +		reg = <0x53>;
> +		interrupt-parent = <&gpio>;
> +		interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
> +	};
> +
> +Example for a SPI device node:
>  
>  	accelerometer@0 {
>  		compatible = "adi,adxl372";

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ