From: Agathe Porte <agathe.porte@nokia.com>
To: Guenter Roeck <linux@roeck-us.net>, 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 2/2] hwmon: Add driver for Texas Instruments TMP464 and TMP468
Date: Fri, 18 Feb 2022 10:50:43 +0100 [thread overview]
Message-ID: <bb9d1f78-7f4d-a865-922e-ebf7362f6b64@nokia.com> (raw)
In-Reply-To: <20220218065856.1899086-2-linux@roeck-us.net>
Hi Guenter,
Le 18/02/2022 à 07:58, Guenter Roeck a écrit :
> Add support for Texas Instruments TMP464 and TMP468 temperature sensor
> ICs.
>
> TI's TMP464 is an I2C temperature sensor chip. This chip is similar
> to TI's TMP421 chip, but with 16bit-wide registers (instead of
> 8bit-wide registers). The chip has one local sensor and four remote
> sensors. TMP468 is similar to TMP464 but has one local and eight
> remote sensors.
>
> Originally-from: Agathe Porte <agathe.porte@nokia.com>
> Cc: Agathe Porte <agathe.porte@nokia.com>
> Cc: Krzysztof Adamski <krzysztof.adamski@nokia.com>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
> v4:
> - Fixed reading n-factor information from devicetree
> [Use of_property_read_u8 instead of of_property_read_s32 to read the
> property value, and write n-factor value into the upper 8 bit of the
> n-factor register]
Changing n-factor with DT seems to work:
temp2_input=38500 (nfactor=10)
temp2_input=35500 (nfactor=-10)
Driver probes just fine with this attribute set.
> +static int tmp464_probe_child_from_dt(struct device *dev,
> + struct device_node *child,
> + struct tmp464_data *data)
> +
> +{
> + struct regmap *regmap = data->regmap;
> + u32 channel;
> + u8 nfactor;
> + s32 val;
val is not used according to the compiler, and thus should be removed
(module does not compile with -Werror)
PS: TMP464 samples will be sent by DHL today and should arrive to you on
Feb, 23rd.
Best regards,
Agathe.
next prev parent reply other threads:[~2022-02-18 9:50 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 [this message]
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
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=bb9d1f78-7f4d-a865-922e-ebf7362f6b64@nokia.com \
--to=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=linux@roeck-us.net \
--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).