From: Conor Dooley <conor@kernel.org>
To: Peter Yin <peteryin.openbmc@gmail.com>
Cc: patrick@stwcx.xyz, Jean Delvare <jdelvare@suse.com>,
Guenter Roeck <linux@roeck-us.net>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org
Subject: Re: [PATCH v1 1/2] dt-bindings: hwmon: Add mps mp5990 driver bindings
Date: Fri, 3 Nov 2023 12:44:27 +0000 [thread overview]
Message-ID: <20231103-outthink-happiest-35c968eb6187@spud> (raw)
In-Reply-To: <20231103080128.1204218-2-peteryin.openbmc@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1910 bytes --]
Hey,
On Fri, Nov 03, 2023 at 04:01:26PM +0800, Peter Yin wrote:
> Add a device tree bindings for mp5990 device.
>
> Signed-off-by: Peter Yin <peteryin.openbmc@gmail.com>
> ---
> .../devicetree/bindings/hwmon/mps,mp5990.yaml | 43 +++++++++++++++++++
> 1 file changed, 43 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/hwmon/mps,mp5990.yaml
>
> diff --git a/Documentation/devicetree/bindings/hwmon/mps,mp5990.yaml b/Documentation/devicetree/bindings/hwmon/mps,mp5990.yaml
> new file mode 100644
> index 000000000000..7533d69f1922
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/mps,mp5990.yaml
> @@ -0,0 +1,43 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/hwmon/mps,mp5990.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Analog Devices MP5990 HSC Controller
Analog Devices? Also, could you write that out rather than using the
"HSC" acronym?
> +
> +maintainers:
> + - Peter Yin <peteryin.openbmc@gmail.com>
> +
> +description: |
> + Analog Devices MP5990 HSC Controller
Ditto here, Analog Devices?
> +
> + Datasheets:
> + https://www.monolithicpower.com/en/mp5990.html
> +
> +properties:
> + compatible:
> + enum:
> + - mps,mp5990
Do you expect this list to grow? If not, just use const: instead of
enum:
> +
> + reg:
> + description: I2C address of slave device.
Can drop this description.
Cheers,
Conor.
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + power-sensor@20 {
> + reg = <0x20>;
> + compatible = "mps,mp5990";
> + };
> + };
> --
> 2.25.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2023-11-03 12:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-03 8:01 [PATCH v1 0/2] hwmon: (pmbus) Add support for MPS Multi-phase mp5990 Peter Yin
2023-11-03 8:01 ` [PATCH v1 1/2] dt-bindings: hwmon: Add mps mp5990 driver bindings Peter Yin
2023-11-03 12:44 ` Conor Dooley [this message]
2023-11-03 8:01 ` [PATCH v1 2/2] hwmon: (pmbus) Add support for MPS Multi-phase mp5990 Peter Yin
2023-11-03 14:35 ` Guenter Roeck
2023-11-06 8:02 ` PeterYin
2023-11-06 19:11 ` Guenter Roeck
2023-11-07 1:27 ` kernel test robot
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=20231103-outthink-happiest-35c968eb6187@spud \
--to=conor@kernel.org \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=jdelvare@suse.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=patrick@stwcx.xyz \
--cc=peteryin.openbmc@gmail.com \
--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