From: Krzysztof Kozlowski <krzk@kernel.org>
To: jeff_chang@richtek.com, lgirdwood@gmail.com, broonie@kernel.org,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH] regulator: rt5133: Add DT binding document for Richtek RT5133
Date: Fri, 18 Jul 2025 10:25:11 +0200 [thread overview]
Message-ID: <87fea8b4-950c-4dcc-9185-d473a1f36876@kernel.org> (raw)
In-Reply-To: <20250718081432.2685902-1-jeff_chang@richtek.com>
On 18/07/2025 10:12, jeff_chang@richtek.com wrote:
> From: Jeff Chang <jeff_chang@richtek.com>
>
> Add DT binding document for Richtek RT5133 voltage regulator.
1. Please use subject prefixes matching the subsystem. You can get them
for example with `git log --oneline -- DIRECTORY_OR_FILE` on the
directory your patch is touching. For bindings, the preferred subjects
are explained here:
https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters
2. A nit, subject: drop second/last, redundant "bindings". The
"dt-bindings" prefix is already stating that these are bindings.
See also:
https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree/bindings/submitting-patches.rst#L18
3. Missing threading or user of the binding.
4. Please version your patches correctly, e.g. use b4 or git
format-patch -vX, and add changelog in cover letter or under '---' of
individual patches describing changes from previous version.
>
> Signed-off-by: Jeff Chang <jeff_chang@richtek.com>
> ---
> .../bindings/regulator/richtek,rt5133.yaml | 178 ++++++++++++++++++
> 1 file changed, 178 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/regulator/richtek,rt5133.yaml
>
> diff --git a/Documentation/devicetree/bindings/regulator/richtek,rt5133.yaml b/Documentation/devicetree/bindings/regulator/richtek,rt5133.yaml
> new file mode 100644
> index 000000000000..c1ba2d9d83c6
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/regulator/richtek,rt5133.yaml
> @@ -0,0 +1,178 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/regulator/richtek,rt5133.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Richtek RT5133 PMIC Regulator
> +
> +maintainers:
> + - ShihChia Chang <jeff_chang@richtek.com>
> +
> +description: |
Do not need '|' unless you need to preserve formatting.
> + RT5133 is an integrated chip. It includes 8 LDOs and 3 GPOs that can be
> + used to drive output high/low purpose. The dependency of the GPO block
> + is internally LDO1 Voltage. If LDO1 voltage output disabled, GPO cannot
> + be used to drive output high. It need to pay more attention on the usage.
> +
> +allOf:
> + - $ref: regulator.yaml#
No, this is not a regulator.
> +
> +properties:
> + compatible:
> + enum:
> + - richtek,rt5133
> +
> + reg:
> + maxItems: 1
> +
> + enable-gpios:
> + description: A connection of the 'enable' gpio line.
Drop description, redundant.
> + maxItems: 1
> +
> + wakeup-source: true
> +
> + interrupts:
> + maxItems: 1
> +
> + gpio-controller: true
> +
> + "#gpio-cells":
> + const: 2
> +
> + regulators:
> + type: object
What is in this node? Missing additionalProperties: false. Also missing
tests which would tell you that.
> +
> + BASE:
I doubt this was ever tested... totally messed indentation.
Also, only lowercase.
Best regards,
Krzysztof
prev parent reply other threads:[~2025-07-18 8:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-18 8:12 [PATCH] regulator: rt5133: Add DT binding document for Richtek RT5133 jeff_chang
2025-07-18 8:25 ` Krzysztof Kozlowski [this message]
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=87fea8b4-950c-4dcc-9185-d473a1f36876@kernel.org \
--to=krzk@kernel.org \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jeff_chang@richtek.com \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@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).