[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2d8d417d-0a0b-9a45-a8e0-a3cb116874e5@linaro.org>
Date: Thu, 6 Apr 2023 21:17:18 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Daniel Matyas <daniel.matyas@...log.com>
Cc: Jean Delvare <jdelvare@...e.com>,
Guenter Roeck <linux@...ck-us.net>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Mark Brown <broonie@...nel.org>, Marek Vasut <marex@...x.de>,
Vincent Tremblay <vincent@...emblay.dev>,
"Greg.Schwendimann@...ineon.com" <Greg.Schwendimann@...ineon.com>,
Pali Rohár <pali@...nel.org>,
Conor Dooley <conor.dooley@...rochip.com>,
Geert Uytterhoeven <geert+renesas@...der.be>,
linux-hwmon@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: hwmon: add MAX31827
On 06/04/2023 18:43, Daniel Matyas wrote:
> MAX31827 is a low-power temperature switch with I2C interface.
>
> The device is a ±1°C accuracy from -40°C to +125°C
> (12 bits) local temperature switch and sensor with I2C/SM-
> Bus interface. The combination of small 6-bump wafer-lev-
> el package (WLP) and high accuracy makes this temper-
> ature sensor/switch ideal for a wide range of applications.
>
> Signed-off-by: Daniel Matyas <daniel.matyas@...log.com>
> ---
> .../bindings/hwmon/adi,max31827.yaml | 48 +++++++++++++++++++
> .../devicetree/bindings/trivial-devices.yaml | 2 +
> MAINTAINERS | 7 +++
> 3 files changed, 57 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/hwmon/adi,max31827.yaml
>
> diff --git a/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml b/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml
> new file mode 100644
> index 000000000000..b6ed2d46a35d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml
> @@ -0,0 +1,48 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/hwmon/adi,max31827.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Analog Devices MAX31827, MAX31828, MAX31829 Low-Power Temperature Switch
Where are the compatibles? I expect them in such case to be compatible
with this 31827.
> +
> +maintainers:
> + - Daniel Matyas <daniel.matyas@...log.com>
> +
> +description: |
> + Analog Devices MAX31827, MAX31828, MAX31829 Low-Power Temperature Switch with
> + I2C Interface
> + https://www.analog.com/media/en/technical-documentation/data-sheets/MAX31827-MAX31829.pdf
Missing blank line
> +properties:
> + compatible:
> + enum:
> + - adi,max31827
> +
> + reg:
> + maxItems: 1
> +
> + vref-supply:
> + description:
> + Must have values in the interval (1.6V; 3.6V) in order for the device to
> + function correctly.
> +
> +required:
> + - compatible
> + - reg
> + - vref-supply
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "okay";
Drop status
> + max31827: max31827@42 {
Node names should be generic.
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
Drop also label. You do not use it.
> + compatible = "adi,max31827";
> + reg = <0x42>;
> + vref-supply = <®_vdd>;
> + };
> + };
> +...
> \ No newline at end of file
Patch error to fix.
> diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
> index 6f482a254a1d..7763610b97bc 100644
> --- a/Documentation/devicetree/bindings/trivial-devices.yaml
> +++ b/Documentation/devicetree/bindings/trivial-devices.yaml
> @@ -43,6 +43,8 @@ properties:
> - adi,adp5589
> # Analog Devices LT7182S Dual Channel 6A, 20V PolyPhase Step-Down Silent Switcher
> - adi,lt7182s
> + # MAX31827 Low-Power Temperature Switch with I2C interface
> + - adi,max31827
No need for this.
Best regards,
Krzysztof
Powered by blists - more mailing lists