Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: Quchaosheng <quchaosheng000406@163.com>
Cc: conor+dt@kernel.org, lee@kernel.org, devicetree@vger.kernel.org,
	robh@kernel.org, mfd@lists.linux.dev
Subject: Re: [PATCH] dt-bindings: mfd: convert rk805 pinctrl to DT schema
Date: Wed, 23 Sep 2026 03:02:09 +0000	[thread overview]
Message-ID: <20260923030209.98E861F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260923025302.374919-1-quchaosheng000406@163.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: mfd: rk805: missing required pins property in schema
--

commit 4d34a5e42e890c7b86f9784a47518ab08b74d070
Author: Quchaosheng <quchaosheng000406@163.com>

dt-bindings: mfd: convert rk805 pinctrl to DT schema

This commit converts the pinctrl-rk805.txt binding to device tree schema by
folding the pinmux description directly into rockchip,rk805.yaml. It also
adds the missing -pins$ child node pattern property to correctly validate
pin configuration nodes.

> diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk805.yaml b/Documentation/devicetree/bindings/mfd/rockchip,rk805.yaml
> --- a/Documentation/devicetree/bindings/mfd/rockchip,rk805.yaml
> +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk805.yaml
> @@ -86,6 +86,31 @@ properties:
>          unevaluatedProperties: false
>      unevaluatedProperties: false
>  
> +patternProperties:
> +  '-pins$':
> +    type: object
> +    description:
> +      The RK805 has two output-only GPIOs which can be muxed to the GPIO
> +      function and driven low or high at boot.
> +    additionalProperties: false
> +
> +    properties:
> +      pins:
> +        description:
> +          List of GPIO pins to configure.
> +        items:
> +          enum: [gpio0, gpio1]
> +        minItems: 1
> +        maxItems: 2
> +
> +      function:
> +        description:
> +          The RK805 only supports the GPIO function.
> +        enum: [gpio]
> +
> +      output-low: true
> +      output-high: true
> +

[Severity: Medium]
Does this new patternProperties.-pins$ schema block allow empty or malformed
pin configuration nodes to pass validation?

If a device tree author creates an empty or malformed pinctrl node matching
the -pins$ pattern, it will silently pass dt_binding_check and dtbs_check
validation because there is no constraint mandating the pins property. The
older text binding previously documented this property as required.

Should a required: [ pins ] constraint be added to the -pins$ object
definition to ensure the schema strictly enforces valid pin configurations?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260923025302.374919-1-quchaosheng000406@163.com?part=1

      reply	other threads:[~2026-09-23  3:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-23  2:53 [PATCH] dt-bindings: mfd: convert rk805 pinctrl to DT schema Quchaosheng
2026-09-23  3:02 ` sashiko-bot [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=20260923030209.98E861F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=lee@kernel.org \
    --cc=mfd@lists.linux.dev \
    --cc=quchaosheng000406@163.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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