From: Krzysztof Kozlowski <krzk@kernel.org>
To: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>,
Jean Delvare <jdelvare@suse.com>,
Guenter Roeck <linux@roeck-us.net>
Cc: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org,
Mathew McBride <matt@traverse.com.au>
Subject: Re: [PATCH 2/2] dt-bindings: hwmon: add EMC181x
Date: Tue, 8 Aug 2023 09:35:45 +0200 [thread overview]
Message-ID: <298675a5-7c42-fecb-f79d-652b4d485c4c@kernel.org> (raw)
In-Reply-To: <20230808013157.80913-2-mark.tomlinson@alliedtelesis.co.nz>
On 08/08/2023 03:31, Mark Tomlinson wrote:
> The EMC181x range are I2C temperature sensors with a varying number of
> sensors in each device. Each has one internal sensor, and one to four
> external sensor diodes.
>
> The default range is from 0°C to +127°C, but can be extended to -64°C to
> +191°C.
>
> Signed-off-by: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Please use scripts/get_maintainers.pl to get a list of necessary people
and lists to CC. It might happen, that command when run on an older
kernel, gives you outdated entries. Therefore please be sure you base
your patches on recent Linux kernel.
You missed at least DT list (maybe more), so this won't be tested by
automated tooling. Performing review on untested code might be a waste
of time, thus I will skip this patch entirely till you follow the
process allowing the patch to be tested.
Please kindly resend and include all necessary To/Cc entries.
Limited review follows:
> ---
> .../bindings/hwmon/microchip,emc181x.yaml | 45 +++++++++++++++++++
> 1 file changed, 45 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/hwmon/microchip,emc181x.yaml
>
> diff --git a/Documentation/devicetree/bindings/hwmon/microchip,emc181x.yaml b/Documentation/devicetree/bindings/hwmon/microchip,emc181x.yaml
> new file mode 100644
> index 000000000000..5967f98ad7ba
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/microchip,emc181x.yaml
> @@ -0,0 +1,45 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +
Drop blank line.
> +$id: http://devicetree.org/schemas/hwmon/microchip,emc181x.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Microchip EMC1812/EMC1813/EMC1814/EMC1815/EMC1833 temperature sensors
> +
> +maintainers:
> + - Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
> +
> +properties:
> + compatible:
> + enum:
> + - microchip,emc1812
> + - microchip,emc1813
> + - microchip,emc1814
> + - microchip,emc1815
> + - microchip,emc1833
> +
> + reg:
> + maxItems: 1
> +
> + emc181x,extended-range:
Incorrect vendor prefix.
> + description: Allow for reading of extended temperature range (-64-192C)
And why would we disallow it otherwise?
Missing type... so this wasn't even tested.
> +
> +
Just one blank line.
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + temperature-sensor@7c {
> + compatible = "microchip,emc1812";
> + reg = <0x7c>;
Include optional properties in the example as well.
Best regards,
Krzysztof
next prev parent reply other threads:[~2023-08-08 16:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-08 1:31 [PATCH 1/2] hwmon: Add driver for EMC181x temperature sensors Mark Tomlinson
2023-08-08 1:31 ` [PATCH 2/2] dt-bindings: hwmon: add EMC181x Mark Tomlinson
2023-08-08 3:54 ` Guenter Roeck
2023-08-08 7:35 ` Krzysztof Kozlowski [this message]
2023-08-08 4:24 ` [PATCH 1/2] hwmon: Add driver for EMC181x temperature sensors Guenter Roeck
2023-08-08 7:38 ` Krzysztof Kozlowski
2023-08-08 7:54 ` Mathew McBride
2023-08-08 8:10 ` 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=298675a5-7c42-fecb-f79d-652b4d485c4c@kernel.org \
--to=krzk@kernel.org \
--cc=jdelvare@suse.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=mark.tomlinson@alliedtelesis.co.nz \
--cc=matt@traverse.com.au \
/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®