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]
Date:   Thu, 23 Sep 2021 18:55:45 -0700
From:   Guenter Roeck <linux@...ck-us.net>
To:     Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
Cc:     Jean Delvare <jdelvare@...e.com>, Rob Herring <robh+dt@...nel.org>,
        Jiri Kosina <trivial@...nel.org>,
        Jonathan Cameron <Jonathan.Cameron@...wei.com>,
        linux-hwmon@...r.kernel.org, devicetree@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH 4/6] dt-bindings: hwmon: lltc,ltc4151: convert to dtschema

On Tue, Sep 21, 2021 at 12:28:30PM +0200, Krzysztof Kozlowski wrote:
> Convert the LTC4151 current and voltage sensor bindings to DT schema
> format.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
> Reviewed-by: Rob Herring <robh@...nel.org>

Applied.

Thanks,
Guenter

> ---
>  .../bindings/hwmon/lltc,ltc4151.yaml          | 41 +++++++++++++++++++
>  .../devicetree/bindings/hwmon/ltc4151.txt     | 18 --------
>  2 files changed, 41 insertions(+), 18 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/hwmon/lltc,ltc4151.yaml
>  delete mode 100644 Documentation/devicetree/bindings/hwmon/ltc4151.txt
> 
> diff --git a/Documentation/devicetree/bindings/hwmon/lltc,ltc4151.yaml b/Documentation/devicetree/bindings/hwmon/lltc,ltc4151.yaml
> new file mode 100644
> index 000000000000..4b5851c326f7
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/lltc,ltc4151.yaml
> @@ -0,0 +1,41 @@
> +# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/hwmon/lltc,ltc4151.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: LTC4151 High Voltage I2C Current and Voltage Monitor
> +
> +maintainers:
> +  - Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
> +
> +properties:
> +  compatible:
> +    const: lltc,ltc4151
> +
> +  reg:
> +    maxItems: 1
> +
> +  shunt-resistor-micro-ohms:
> +    description:
> +      Shunt resistor value in micro-Ohms
> +    default: 1000
> +
> +required:
> +  - compatible
> +  - reg
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    i2c {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +
> +        sensor@6e {
> +            compatible = "lltc,ltc4151";
> +            reg = <0x6e>;
> +            shunt-resistor-micro-ohms = <1500>;
> +        };
> +    };
> diff --git a/Documentation/devicetree/bindings/hwmon/ltc4151.txt b/Documentation/devicetree/bindings/hwmon/ltc4151.txt
> deleted file mode 100644
> index d008a5ef525a..000000000000
> --- a/Documentation/devicetree/bindings/hwmon/ltc4151.txt
> +++ /dev/null
> @@ -1,18 +0,0 @@
> -LTC4151 High Voltage I2C Current and Voltage Monitor
> -
> -Required properties:
> -- compatible: Must be "lltc,ltc4151"
> -- reg: I2C address
> -
> -Optional properties:
> -- shunt-resistor-micro-ohms
> -	Shunt resistor value in micro-Ohms
> -	Defaults to <1000> if unset.
> -
> -Example:
> -
> -ltc4151@6e {
> -	compatible = "lltc,ltc4151";
> -	reg = <0x6e>;
> -	shunt-resistor-micro-ohms = <1500>;
> -};

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ