From: Krzysztof Kozlowski <krzk@kernel.org>
To: Shaunak Datar <shaunakkdatar@gmail.com>
Cc: lee@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, devicetree@vger.kernel.org,
puck.chen@hisilicon.com, daniel.lezcano@kernel.org
Subject: Re: [PATCH] dt-bindings: mfd: hisilicon,hi655x-pmic: Convert to DT schema
Date: Thu, 23 Apr 2026 11:05:30 +0200 [thread overview]
Message-ID: <20260423-powerful-outstanding-condor-454fea@quoll> (raw)
In-Reply-To: <20260422200200.126728-1-shaunakkdatar@gmail.com>
On Thu, Apr 23, 2026 at 01:32:00AM +0530, Shaunak Datar wrote:
> Convert the Hisilicon Hi655x PMIC binding from the text format to DT schema
> to enable dtbs_check validation
Missing blank line
> Signed-off-by: Shaunak Datar <shaunakkdatar@gmail.com>
> ---
> .../bindings/mfd/hisilicon,hi655x-pmic.yaml | 89 +++++++++++++++++++
> .../bindings/mfd/hisilicon,hi655x.txt | 33 -------
> 2 files changed, 89 insertions(+), 33 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/mfd/hisilicon,hi655x-pmic.yaml
> delete mode 100644 Documentation/devicetree/bindings/mfd/hisilicon,hi655x.txt
>
> diff --git a/Documentation/devicetree/bindings/mfd/hisilicon,hi655x-pmic.yaml b/Documentation/devicetree/bindings/mfd/hisilicon,hi655x-pmic.yaml
> new file mode 100644
> index 000000000000..1bed57003bd2
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/hisilicon,hi655x-pmic.yaml
> @@ -0,0 +1,89 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mfd/hisilicon,hi655x-pmic.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Hisilicon Hi655x Power Management Integrated Circuit
> +
> +maintainers:
> + - Chen Feng <puck.chen@hisilicon.com>
> + - Daniel Lezcano <daniel.lezcano@kernel.org>
> +
> +description:
> + The hardware layout for access PMIC Hi655x from AP SoC Hi6220.
> + Between PMIC Hi655x and Hi6220, the physical signal channel is SSI.
> + We can use memory-mapped I/O to communicate.
> +
> +properties:
> + $nodename:
> + pattern: "pmic@[0-9a-f]"
Drop
> +
> + compatible:
> + const: hisilicon,hi655x-pmic
> +
> + reg:
> + maxItems: 1
> +
> + interrupt-controller: true
> +
> + '#interrupt-cells':
> + const: 2
> +
> + pmic-gpios:
> + maxItems: 1
> + description: The GPIO used by PMIC IRQ
> +
> + '#clock-cells':
> + const: 0
> +
> + clock-output-names:
> + maxItems: 1
> +
> + regulators:
There was no such property/child before, so this must be explained in
the commit msg.
> + type: object
> + additionalProperties: false
> +
> + patternProperties:
> + '^LDO[0-9]+$':
Why 9999 regulators is valid? This is usually constrained, because
device has a very specific number of regulators.
Also, name should be 'ldo' if this is a new binding. If this is not new,
you must explain WHY you are doing these changes to the binding.
> + type: object
> + $ref: /schemas/regulator/regulator.yaml#
> + unevaluatedProperties: false
> +
> +required:
> + - compatible
> + - reg
> + - interrupt-controller
> + - '#interrupt-cells'
> + - pmic-gpios
> + - '#clock-cells'
> + - regulators
And why is this required?
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> +
> + / {
Drop and use 1 as address/size-cells. Or 'soc' like in other bindings.
> + #address-cells = <2>;
> + #size-cells = <2>;
> +
Best regards,
Krzysztof
next prev parent reply other threads:[~2026-04-23 9:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-22 20:02 [PATCH] dt-bindings: mfd: hisilicon,hi655x-pmic: Convert to DT schema Shaunak Datar
2026-04-22 21:22 ` Rob Herring (Arm)
2026-04-23 9:05 ` Krzysztof Kozlowski [this message]
2026-04-23 11:32 ` [PATCH v2] " Shaunak Datar
2026-04-25 9:51 ` Krzysztof Kozlowski
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=20260423-powerful-outstanding-condor-454fea@quoll \
--to=krzk@kernel.org \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=puck.chen@hisilicon.com \
--cc=robh@kernel.org \
--cc=shaunakkdatar@gmail.com \
/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