From: Guenter Roeck <linux@roeck-us.net>
To: Agathe Porte <agathe.porte@nokia.com>, linux-hwmon@vger.kernel.org
Cc: Jean Delvare <jdelvare@suse.com>,
Rob Herring <robh+dt@kernel.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Krzysztof Adamski <krzysztof.adamski@nokia.com>
Subject: Re: [PATCH v4 1/2] dt-bindings: hwmon: add tmp464.yaml
Date: Fri, 18 Feb 2022 07:06:35 -0800 [thread overview]
Message-ID: <1f5236a5-93be-a35e-e86a-450e5e98f9ba@roeck-us.net> (raw)
In-Reply-To: <a828b1b2-9e32-57b2-6d60-b1b8de90222a@nokia.com>
On 2/18/22 01:41, Agathe Porte wrote:
> Hi Guenter,
>
> Le 18/02/2022 à 07:58, Guenter Roeck a écrit :
>> From: Agathe Porte <agathe.porte@nokia.com>
>>
>> Add basic description of the tmp464 driver DT bindings.
>>
>> Signed-off-by: Agathe Porte <agathe.porte@nokia.com>
>> Cc: Krzysztof Adamski <krzysztof.adamski@nokia.com>
>> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
>> ---
>> v4:
>> - No changes
>>
>> + channel@0 {
>> + reg = <0x0>;
>> + ti,n-factor = /bits/ 8 <(-10)>;
>> + label = "local";
>> + };
>
> Setting the n-factor for the local channel is not supported, so we should remove this attribute for this example and move it to another channel.
>
Done, thanks!
Guenter
> Here is the output on a hardware test:
>
> [165599.122883] tmp464 16-0049: n-factor can't be set for internal channel
> [165599.123833] tmp464: probe of 16-0049 failed with error -22
>
>> +
>> + channel@1 {
>> + reg = <0x1>;
>> + ti,n-factor = /bits/ 8 <0x0>;
>> + label = "somelabel";
>> + };
> No particular issue when defining a property for channel that is not internal during driver probe.
>> +
>> + channel@2 {
>> + reg = <0x2>;
>> + status = "disabled";
>> + };
>
> Works as expected on target:
>
> root@fct-0a:/sys/class/hwmon/hwmon2 >cat temp3_input
> cat: temp3_input: No data available
>
> Best regards,
>
> Agathe.
>
prev parent reply other threads:[~2022-02-18 15:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-18 6:58 [PATCH v4 1/2] dt-bindings: hwmon: add tmp464.yaml Guenter Roeck
2022-02-18 6:58 ` [PATCH v4 2/2] hwmon: Add driver for Texas Instruments TMP464 and TMP468 Guenter Roeck
2022-02-18 9:50 ` Agathe Porte
2022-02-18 15:07 ` Guenter Roeck
2022-02-18 9:41 ` [PATCH v4 1/2] dt-bindings: hwmon: add tmp464.yaml Agathe Porte
2022-02-18 15:06 ` Guenter Roeck [this message]
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=1f5236a5-93be-a35e-e86a-450e5e98f9ba@roeck-us.net \
--to=linux@roeck-us.net \
--cc=agathe.porte@nokia.com \
--cc=devicetree@vger.kernel.org \
--cc=jdelvare@suse.com \
--cc=krzysztof.adamski@nokia.com \
--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;
as well as URLs for NNTP newsgroup(s).