Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Changhuang Liang" <changhuang.liang@starfivetech.com>
Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v1 RESEND 3/8] dt-bindings: pinctrl: Add starfive,jhb100-adc1-pinctrl
Date: Tue, 03 Nov 2026 10:30:20 +0000	[thread overview]
Message-ID: <sashiko-outbox-195053@kernel.org> (raw)
In-Reply-To: <20261103102236.96872-4-changhuang.liang@starfivetech.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dt-bindings: pinctrl: starfive,jhb100-adc1: reset order mismatch
--

commit 4c932bf5e112630c79796db81f0b0cecf418f57b
Author: Changhuang Liang <changhuang.liang@starfivetech.com>

dt-bindings: pinctrl: Add starfive,jhb100-adc1-pinctrl

This commit adds the Device Tree binding schema for the StarFive JHB100
SoC ADC-1 pin controller.

> diff --git a/Documentation/devicetree/bindings/pinctrl/starfive,jhb100-adc1-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/starfive,jhb100-adc1-pinctrl.yaml
> new file mode 100644
> index 0000000000000..6f1486b4a8bdf
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pinctrl/starfive,jhb100-adc1-pinctrl.yaml

[ ... ]

> +  resets:
> +    items:
> +      - description: ADC1 IOMUX
> +      - description: ADC1 core

[ ... ]

> +examples:
> +  - |
> +    soc {
> +        #address-cells = <2>;
> +        #size-cells = <2>;
> +
> +        pinctrl_adc1: pinctrl@11bc2c00 {
> +            compatible = "starfive,jhb100-adc1-pinctrl";
> +            reg = <0x0 0x11bc2c00 0x0 0x400>;
> +            clocks = <&per2crg 68>;
> +            resets = <&per2crg 12>,
> +                     <&per2crg 13>;

[Severity: Low]
In Documentation/devicetree/bindings/pinctrl/starfive,jhb100-adc1-pinctrl.yaml,
properties.resets defines the first entry as ADC1 IOMUX and the second entry
as ADC1 core, whereas the example lists <&per2crg 12> followed by
<&per2crg 13>.

In include/dt-bindings/reset/starfive,jhb100-crg.h, those reset indices are
defined in the opposite order:

    #define JHB100_PER2RST_ADC1_PRESETN			12
    #define JHB100_PER2RST_ADC1_IOMUX_PRESETN		13

Are the reset descriptions in properties.resets.items or the reset indices in
the example reversed?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261103102236.96872-1-changhuang.liang@starfivetech.com?part=3

  reply	other threads:[~2026-11-03 10:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-03 10:22 [PATCH v1 RESEND 0/8] Add ADC, eMMC and VGA pinctrl for StarFive JHB100 SoC Changhuang Liang
2026-11-03 10:22 ` [PATCH v1 RESEND 1/8] dt-bindings: pinctrl: Add starfive,jhb100-adc0-pinctrl Changhuang Liang
2026-11-03 10:29   ` sashiko-bot
2026-11-03 10:22 ` [PATCH v1 RESEND 2/8] pinctrl: starfive: Add StarFive JHB100 adc0 controller driver Changhuang Liang
2026-11-03 10:22 ` [PATCH v1 RESEND 3/8] dt-bindings: pinctrl: Add starfive,jhb100-adc1-pinctrl Changhuang Liang
2026-11-03 10:30   ` sashiko-bot [this message]
2026-11-03 10:22 ` [PATCH v1 RESEND 4/8] pinctrl: starfive: Add StarFive JHB100 adc1 controller driver Changhuang Liang
2026-11-03 10:22 ` [PATCH v1 RESEND 5/8] dt-bindings: pinctrl: Add starfive,jhb100-emmc-pinctrl Changhuang Liang
2026-11-03 10:22 ` [PATCH v1 RESEND 6/8] pinctrl: starfive: Add StarFive JHB100 emmc controller driver Changhuang Liang
2026-11-03 10:22 ` [PATCH v1 RESEND 7/8] dt-bindings: pinctrl: Add starfive,jhb100-vga-pinctrl Changhuang Liang
2026-11-03 10:22 ` [PATCH v1 RESEND 8/8] pinctrl: starfive: Add StarFive JHB100 vga controller driver Changhuang Liang

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=sashiko-outbox-195053@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=changhuang.liang@starfivetech.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --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