From: Rob Herring <robh@kernel.org>
To: Oskar Senft <osk@google.com>
Cc: Jean Delvare <jdelvare@suse.com>,
Guenter Roeck <linux@roeck-us.net>,
linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: hwmon: Add nct7802 bindings
Date: Thu, 23 Sep 2021 16:37:17 -0500 [thread overview]
Message-ID: <YUzzjYMwNKwMFGSr@robh.at.kernel.org> (raw)
In-Reply-To: <20210921004627.2786132-1-osk@google.com>
On Mon, Sep 20, 2021 at 08:46:26PM -0400, Oskar Senft wrote:
> Document bindings for the Nuvoton NCT7802Y driver.
>
> Signed-off-by: Oskar Senft <osk@google.com>
> ---
> .../bindings/hwmon/nuvoton,nct7802.yaml | 92 +++++++++++++++++++
> 1 file changed, 92 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml
>
> diff --git a/Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml b/Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml
> new file mode 100644
> index 000000000000..7512acbc9d1a
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml
> @@ -0,0 +1,92 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +
> +$id: http://devicetree.org/schemas/hwmon/nuvoton,nct7802.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Nuvoton NCT7802Y Hardware Monitoring IC
> +
> +maintainers:
> + - Guenter Roeck <linux@roeck-us.net>
Should be someone that cares about this h/w, not who applies patches.
> +
> +description: |
> + The NCT7802Y is a hardware monitor IC which supports one on-die and up to
> + 5 remote temperature sensors with SMBus interface.
> +
> + Datasheets:
> + https://www.nuvoton.com/export/resource-files/Nuvoton_NCT7802Y_Datasheet_V12.pdf
> +
> +properties:
> + compatible:
> + enum:
> + - nuvoton,nct7802
> +
> + reg:
> + maxItems: 1
> +
> + temperature-sensors:
> + type: object
> + description:
> + |
Drop. Not needed if formatting is not needed to be maintained. (Also
belongs on the prior line.)
> + Configuration for temperature sensors. If temperature-sensors
> + is not provided at all, the internal temperature sensor will be
> + enabled. If temperature-sensors is provided, only the listed
> + sensors will be configured as specified. The runtime configuration
> + for un-listed sensors will not be touched in the chip. This allows
> + sensors to be configured at power-up time from an EEPROM connected
> + to the chip and at the sime time allows to override these settings
> + using device tree configuration.
> +
> + properties:
> + ltd:
> + type: object
> + description: Internal Temperature Sensor ("LTD")
No child properties?
> +
> + rtd3:
> + type: object
> + description:
> + |
> + Remote Temperature Sensor ("RTD3"). This sensor only supports
> + thermistor mode.
No child properties?
> +
> + patternProperties:
> + "^rtd[1-2]$":
> + type: object
> + description: Remote Temperature Sensor ("RTDx")
> + properties:
> + "type":
Don't need quotes.
> + description: Sensor type (3=thermal diode, 4=thermistor).
2nd time I've seen this property this week[1]. Needs to be more specific
than just 'type'.
> + allOf:
Don't need allOf.
> + - $ref: "http://devicetree.org/schemas/types.yaml#/definitions/uint32"
> + - items:
> + - enum: [ 3, 4 ]
> +
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + nct7802@28 {
> + compatible = "nuvoton,nct7802";
> + reg = <0x28>;
> +
> + temperature-sensors {
> + ltd {
> + status = "disabled";
Don't show status in examples.
> + };
> +
> + rtd1 {
> + status = "okay";
> + type = <4> /* thermistor */;
> + };
> + };
> + };
> + };
> --
[1] https://lore.kernel.org/all/CAL_Jsq+NXuF+F7OE3vyEbTUj6sxyMHVWHXbCuPPoFaKjpyZREQ@mail.gmail.com/
next prev parent reply other threads:[~2021-09-23 21:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-21 0:46 [PATCH v2 1/2] dt-bindings: hwmon: Add nct7802 bindings Oskar Senft
2021-09-21 0:46 ` [PATCH v2 2/2] hwmon: (nct7802) Make temperature sensors configurable Oskar Senft
2021-09-23 21:37 ` Rob Herring [this message]
2021-09-24 15:17 ` [PATCH v2 1/2] dt-bindings: hwmon: Add nct7802 bindings Oskar Senft
2021-09-25 13:36 ` Guenter Roeck
2021-09-27 15:21 ` Rob Herring
2021-10-08 13:07 ` Oskar Senft
2021-10-08 13:25 ` 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=YUzzjYMwNKwMFGSr@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jdelvare@suse.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=osk@google.com \
/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