From: Guenter Roeck <linux@roeck-us.net>
To: Alban Bedel <alban.bedel@aerq.com>
Cc: linux-hwmon@vger.kernel.org, Jean Delvare <jdelvare@suse.com>,
Rob Herring <robh+dt@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 1/3] dt-bindings: hwmon: Convert lm75 bindings to yaml
Date: Tue, 6 Oct 2020 13:33:29 -0700 [thread overview]
Message-ID: <20201006203329.GA88702@roeck-us.net> (raw)
In-Reply-To: <20201001145738.17326-2-alban.bedel@aerq.com>
On Thu, Oct 01, 2020 at 04:57:36PM +0200, Alban Bedel wrote:
> In order to automate the verification of DT nodes convert lm75.txt to
> lm75.yaml.
>
> Signed-off-by: Alban Bedel <alban.bedel@aerq.com>
> Reviewed-by: Rob Herring <robh@kernel.org>
> ---
Applied to hwmon-next.
Thanks,
Guenter
> v2: Fix the example to pass `make dt_binding_check`
> v4: Add the missing additionalProperties: false
> ---
> .../devicetree/bindings/hwmon/lm75.txt | 39 ------------
> .../devicetree/bindings/hwmon/lm75.yaml | 62 +++++++++++++++++++
> 2 files changed, 62 insertions(+), 39 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/hwmon/lm75.txt
> create mode 100644 Documentation/devicetree/bindings/hwmon/lm75.yaml
>
> diff --git a/Documentation/devicetree/bindings/hwmon/lm75.txt b/Documentation/devicetree/bindings/hwmon/lm75.txt
> deleted file mode 100644
> index 273616702c51..000000000000
> --- a/Documentation/devicetree/bindings/hwmon/lm75.txt
> +++ /dev/null
> @@ -1,39 +0,0 @@
> -*LM75 hwmon sensor.
> -
> -Required properties:
> -- compatible: manufacturer and chip name, one of
> - "adi,adt75",
> - "dallas,ds1775",
> - "dallas,ds75",
> - "dallas,ds7505",
> - "gmt,g751",
> - "national,lm75",
> - "national,lm75a",
> - "national,lm75b",
> - "maxim,max6625",
> - "maxim,max6626",
> - "maxim,max31725",
> - "maxim,max31726",
> - "maxim,mcp980x",
> - "nxp,pct2075",
> - "st,stds75",
> - "st,stlm75",
> - "microchip,tcn75",
> - "ti,tmp100",
> - "ti,tmp101",
> - "ti,tmp105",
> - "ti,tmp112",
> - "ti,tmp175",
> - "ti,tmp275",
> - "ti,tmp75",
> - "ti,tmp75b",
> - "ti,tmp75c",
> -
> -- reg: I2C bus address of the device
> -
> -Example:
> -
> -sensor@48 {
> - compatible = "st,stlm75";
> - reg = <0x48>;
> -};
> diff --git a/Documentation/devicetree/bindings/hwmon/lm75.yaml b/Documentation/devicetree/bindings/hwmon/lm75.yaml
> new file mode 100644
> index 000000000000..c9a001627945
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/lm75.yaml
> @@ -0,0 +1,62 @@
> +# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/hwmon/lm75.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: LM75 hwmon sensor
> +
> +maintainers:
> + - Jean Delvare <jdelvare@suse.com>
> + - Guenter Roeck <linux@roeck-us.net>
> +
> +properties:
> + compatible:
> + enum:
> + - adi,adt75
> + - dallas,ds1775
> + - dallas,ds75
> + - dallas,ds7505
> + - gmt,g751
> + - national,lm75
> + - national,lm75a
> + - national,lm75b
> + - maxim,max6625
> + - maxim,max6626
> + - maxim,max31725
> + - maxim,max31726
> + - maxim,mcp980x
> + - nxp,pct2075
> + - st,stds75
> + - st,stlm75
> + - microchip,tcn75
> + - ti,tmp100
> + - ti,tmp101
> + - ti,tmp105
> + - ti,tmp112
> + - ti,tmp175
> + - ti,tmp275
> + - ti,tmp75
> + - ti,tmp75b
> + - ti,tmp75c
> +
> + reg:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + sensor@48 {
> + compatible = "st,stlm75";
> + reg = <0x48>;
> + };
> + };
next prev parent reply other threads:[~2020-10-06 20:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-01 14:57 [PATCH v4 0/3] hwmon: (lm75) Add regulator support Alban Bedel
2020-10-01 14:57 ` [PATCH v4 1/3] dt-bindings: hwmon: Convert lm75 bindings to yaml Alban Bedel
2020-10-06 20:26 ` Rob Herring
2020-10-06 20:33 ` Guenter Roeck [this message]
2020-10-01 14:57 ` [PATCH v4 2/3] dt-bindings: hwmon: Add the +vs supply to the lm75 bindings Alban Bedel
2020-10-01 18:08 ` Guenter Roeck
2020-10-05 14:38 ` Rob Herring
2020-10-06 20:33 ` Guenter Roeck
2020-10-01 14:57 ` [PATCH v4 3/3] hwmon: (lm75) Add regulator support Alban Bedel
2020-10-01 18:13 ` 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=20201006203329.GA88702@roeck-us.net \
--to=linux@roeck-us.net \
--cc=alban.bedel@aerq.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jdelvare@suse.com \
--cc=lgirdwood@gmail.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).