[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87fea8b4-950c-4dcc-9185-d473a1f36876@kernel.org>
Date: Fri, 18 Jul 2025 10:25:11 +0200
From: Krzysztof Kozlowski <krzk@...nel.org>
To: jeff_chang@...htek.com, lgirdwood@...il.com, broonie@...nel.org,
robh@...nel.org, krzk+dt@...nel.org, conor+dt@...nel.org,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org
Subject: Re: [PATCH] regulator: rt5133: Add DT binding document for Richtek
RT5133
On 18/07/2025 10:12, jeff_chang@...htek.com wrote:
> From: Jeff Chang <jeff_chang@...htek.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@...htek.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@...htek.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
Powered by blists - more mailing lists