mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Sujal Bhor <bhorsujal@gmail.com>,
	"jdelvare@suse.com" <jdelvare@suse.com>,
	"linux@roeck-us.net" <linux@roeck-us.net>,
	robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
	conor+dt@kernel.org, hotran@apm.com, linux-hwmon@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Daniel Baluta <daniel.baluta@nxp.com>
Subject: Re: [PATCH] dt-bindings: hwmon: Convert APM X-Gene hwmon to dtschema
Date: Fri, 8 Mar 2024 09:20:54 +0100	[thread overview]
Message-ID: <a7f7eb88-24da-4b8b-a5e2-65c475dc2f4b@linaro.org> (raw)
In-Reply-To: <CAHzG0Eu=Uqw3mBKV4wiBPvSQ-HBRGkE7NcA9v0Xt8pMpByL3Tg@mail.gmail.com>

On 07/03/2024 21:05, Sujal Bhor wrote:
> This patch converts the APM X-Gene hwmon bindings to DT schema (yaml).

Please do not use "This commit/patch/change", but imperative mood. See
longer explanation here:
https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95

> 
> Signed-off-by: Sujal Bhor <bhorsujal@gmail.com>
> ---
>  .../hwmon/apm,xgene-slimpro-hwmon.yaml        | 36 +++++++++++++++++++
>  .../bindings/hwmon/apm-xgene-hwmon.txt        | 14 --------
>  2 files changed, 36 insertions(+), 14 deletions(-)
>  create mode 100644
> Documentation/devicetree/bindings/hwmon/apm,xgene-slimpro-hwmon.yaml
>  delete mode 100644
> Documentation/devicetree/bindings/hwmon/apm-xgene-hwmon.txt
> 
> diff --git
> a/Documentation/devicetree/bindings/hwmon/apm,xgene-slimpro-hwmon.yaml
> b/Documentation/devicetree/bindings/hwmon/apm,xgene-slimpro-hwmon.yaml

Malformed patch. I have doubts it is possible to apply it. You can try
and apply it via b4 by yourself...


> new file mode 100644
> index 000000000000..0ef9dd0c4bba
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/apm,xgene-slimpro-hwmon.yaml
> @@ -0,0 +1,36 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/hwmon/apm,xgene-slimpro-hwmon.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: APM X-Gene hwmon driver

Drop driver. Bindings are about hardware.

> +
> +maintainers:
> +  - Hoan Tran <hotran@apm.com>
> +
> +description: APM X-Gene SOC sensors accessed over the "SLIMpro" mailbox.
> +
> +properties:
> +  compatible:
> +    enum:
> +      - apm,xgene-slimpro-hwmon
> +
> +  mboxes:
> +    maxItems: 1
> +    description: >
> +      Use the label reference for the mailbox as the first parameter.
> +      The second parameter is the channel number.

That's not entirely true. It depends on mbox cells, so drop description.

> +
> +required:
> +  - compatible
> +  - mboxes
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    hwmonslimpro {

hwmon or sensor (depends on what this is)


> +      compatible = "apm,xgene-slimpro-hwmon";
> +      mboxes = <&mailbox 7>;
> +    };

Best regards,
Krzysztof


           reply	other threads:[~2024-03-08  8:20 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAHzG0Eu=Uqw3mBKV4wiBPvSQ-HBRGkE7NcA9v0Xt8pMpByL3Tg@mail.gmail.com>]

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=a7f7eb88-24da-4b8b-a5e2-65c475dc2f4b@linaro.org \
    --to=krzysztof.kozlowski@linaro.org \
    --cc=bhorsujal@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=daniel.baluta@nxp.com \
    --cc=devicetree@vger.kernel.org \
    --cc=hotran@apm.com \
    --cc=jdelvare@suse.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --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

all inboxes | Powered by JetHome®