From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: "Guenter Roeck" <linux@roeck-us.net>,
"Carsten Spieß" <mail@carsten-spiess.de>,
"Jean Delvare" <jdelvare@suse.com>,
"Rob Herring" <robh+dt@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Geert Uytterhoeven" <geert+renesas@glider.be>,
"Magnus Damm" <magnus.damm@gmail.com>
Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH 2/2] dt-bindings: hwmon: add renesas,isl28022
Date: Wed, 26 Jul 2023 21:05:37 +0200 [thread overview]
Message-ID: <778263e2-78f0-a679-e981-c8a7147028c6@linaro.org> (raw)
In-Reply-To: <7091e719-4d9f-246c-262a-02ad91fd790d@roeck-us.net>
On 26/07/2023 20:59, Guenter Roeck wrote:
> On 7/26/23 11:27, Krzysztof Kozlowski wrote:
>> On 26/07/2023 20:19, Guenter Roeck wrote:
>>>>
>>>>> + enum: [1, 2, 4, 8]
>>>>> +
>>>>> + average:
>>>>> + description: |
>>>>> + Number of samples to be used to report voltage, current and power values.
>>>>> + defaults to <0> when not set
>>>>> + enum: [0, 1, 2, 4, 8, 16, 32, 64, 128]
>>>>
>>>> I am sure hwmon has some property for this. Are you sure it is called
>>>> "average"?
>>>>
>>>
>>> Something with samples. adi,power-sample-average is similar. Others
>>> use average-samples, qcom,avg-samples, touchscreen-average-samples.
>>
>> So probably it's a time to come with something generic, e.g.:
>> average-samples in some hwmon.yaml
>>
>
> Maybe, but that is going to take a lot of time. Many configuration options
> of hardware monitoring chips (such as the thermal sensor type, the ideality
> factor of a thermal diode, or the number of pulses per revolution reported
> by fans) are actually properties of the connected device, and Rob has made
> clear that he expects such properties to be associated with the actual
> device (fan, thermal sensor, etc).
Sure, we can go then with usual vendor like property, so:
renesas,average-samples
Best regards,
Krzysztof
next prev parent reply other threads:[~2023-07-26 19:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230726152235.249569-1-mail@carsten-spiess.de>
2023-07-26 15:22 ` [PATCH 2/2] dt-bindings: hwmon: add renesas,isl28022 Carsten Spieß
2023-07-26 16:14 ` Krzysztof Kozlowski
2023-07-26 16:19 ` Krzysztof Kozlowski
2023-07-26 18:19 ` Guenter Roeck
2023-07-26 18:27 ` Krzysztof Kozlowski
2023-07-26 18:59 ` Guenter Roeck
2023-07-26 19:05 ` Krzysztof Kozlowski [this message]
2023-07-26 16:16 ` Guenter Roeck
2023-07-27 7:35 ` Carsten Spieß
2023-07-27 8:07 ` Conor Dooley
2023-07-27 8:25 ` Krzysztof Kozlowski
2023-07-27 9:30 ` Carsten Spieß
2023-07-27 13:55 ` Guenter Roeck
2023-07-26 17:13 ` Rob Herring
[not found] <20230727194813.2245116-1-mail@carsten-spiess.de>
2023-07-27 19:48 ` Carsten Spieß
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=778263e2-78f0-a679-e981-c8a7147028c6@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=jdelvare@suse.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=magnus.damm@gmail.com \
--cc=mail@carsten-spiess.de \
--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