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: <20210327170153.GA243988@robh.at.kernel.org>
Date:   Sat, 27 Mar 2021 11:01:53 -0600
From:   Rob Herring <robh@...nel.org>
To:     Raviteja Narayanam <raviteja.narayanam@...inx.com>
Cc:     jic23@...nel.org, michal.simek@...inx.com, lars@...afoo.de,
        pmeerw@...erw.net, linux-iio@...r.kernel.org,
        devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
        git@...inx.com
Subject: Re: [PATCH 1/2] dt-bindings: iio: adc: Add ti,ina260.yaml

On Mon, Mar 22, 2021 at 04:20:55PM +0530, Raviteja Narayanam wrote:
> Add a binding for Texas Instruments INA260 power monitor device.
> 
> Signed-off-by: Raviteja Narayanam <raviteja.narayanam@...inx.com>
> ---
>  .../bindings/iio/adc/ti,ina260.yaml           | 57 +++++++++++++++++++
>  1 file changed, 57 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,ina260.yaml
> 
> diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ina260.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ina260.yaml
> new file mode 100644
> index 000000000000..97c68188e53d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/ti,ina260.yaml
> @@ -0,0 +1,57 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/adc/ti,ina260.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Texas Instruments INA260 power monitor
> +
> +maintainers:
> +  - Raviteja Narayanam <raviteja.narayanam@...inx.com>
> +
> +description: |
> +  The INA260 is a digital-output, current, power and voltage monitor
> +  with an I2C and SMBUS compatible interface with an integrated shunt
> +  resistor. It features up to 16 programmable addresses on I2C compatible
> +  interface. Datasheet - https://www.ti.com/lit/ds/symlink/ina260.pdf?ts=1608607288391
> +
> +properties:
> +  compatible:
> +    enum:
> +      - ti,ina260
> +
> +  reg:
> +    description: |
> +      The 7-bits long I2c address of the device

Just 'maxItems: 1'

> +
> +  "#io-channel-cells":
> +    const: 1
> +
> +  interrupts:
> +    description: |
> +      IRQ line for the device

That's every 'interrupts' property. Drop.

You need to say how many: maxItems: 1

> +
> +  label:
> +    description: |
> +      A symbolic name for the device
> +
> +required:
> +  - compatible
> +  - reg
> +  - "#io-channel-cells"
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    i2c {
> +      #address-cells = <1>;
> +      #size-cells = <0>;
> +
> +      ina260@40 {
> +        compatible = "ti,ina260";
> +        reg = <0x40>;
> +        #io-channel-cells = <1>;
> +      };
> +    };
> +...
> -- 
> 2.17.1
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ