From: Guenter Roeck <linux@roeck-us.net>
To: Daniel Matyas <daniel.matyas@analog.com>
Cc: Jean Delvare <jdelvare@suse.com>,
Rob Herring <robh+dt@kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: hwmon: Describe changes to the device tree
Date: Mon, 11 Sep 2023 06:38:27 -0700 [thread overview]
Message-ID: <55b4b084-5b92-9e0d-9fa8-28a4062fb249@roeck-us.net> (raw)
In-Reply-To: <20230911083735.11795-1-daniel.matyas@analog.com>
On 9/11/23 01:37, Daniel Matyas wrote:
> Added new attributes to the device tree:
> - adi,comp-int
> - adi,alrm-pol
> - adi,flt-q
>
> These modify the corresponding bits in the configuration register.
>
> Signed-off-by: Daniel Matyas <daniel.matyas@analog.com>
> ---
> .../bindings/hwmon/adi,max31827.yaml | 21 +++++++++++++++++++
> 1 file changed, 21 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml b/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml
> index 2dc8b07b4d3b..b10878c4a05d 100644
> --- a/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml
> +++ b/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml
> @@ -32,10 +32,28 @@ properties:
> Must have values in the interval (1.6V; 3.6V) in order for the device to
> function correctly.
>
> + adi,comp-int:
> + description:
> + A boolean property. If present interrupt mode is used. If not present
> + comparator mode is used (default).
> +
> + adi,alrm-pol:
> + description:
> + A boolean propert. If present, alarm is active on high. If not present,
property
> + alarm is active on low.
Is this the chip default ? That might be worth mentioning.
> +
> + adi,flt-q:
> + description:
> + Select how many consecutive temperature faults must occur before
> + overtemperature or undertemperature faults are indicated in the
> + corresponding status bits.
> + - can be 1, 2, 4 or 8
> +
> required:
> - compatible
> - reg
> - vref-supply
> + - adi,flt-q
I do not see a need to make this mandatory. Default can and should be the chip
default.
>
> additionalProperties: false
>
> @@ -49,6 +67,9 @@ examples:
> compatible = "adi,max31827";
> reg = <0x42>;
> vref-supply = <®_vdd>;
> + adi,comp-int;
> + adi,alrm-pol;
> + adi,flt-q = <1>;
> };
> };
> ...
next prev parent reply other threads:[~2023-09-11 22:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-11 8:37 Daniel Matyas
2023-09-11 8:37 ` [PATCH 2/2] hwmon: max31827: Functional enhancement of the driver Daniel Matyas
2023-09-11 13:45 ` Guenter Roeck
2023-09-12 7:58 ` Matyas, Daniel
2023-09-12 18:43 ` Guenter Roeck
2023-09-11 13:38 ` Guenter Roeck [this message]
2023-09-11 21:12 ` [PATCH 1/2] dt-bindings: hwmon: Describe changes to the device tree Rob Herring
2023-09-12 10:16 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55b4b084-5b92-9e0d-9fa8-28a4062fb249@roeck-us.net \
--to=linux@roeck-us.net \
--cc=corbet@lwn.net \
--cc=daniel.matyas@analog.com \
--cc=devicetree@vger.kernel.org \
--cc=jdelvare@suse.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®