Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Qiang Yu" <qiang.yu@oss.qualcomm.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v8 2/7] dt-bindings: clock: qcom,glymur-tcsr: Add mahua support
Date: Wed, 08 Jul 2026 10:15:17 +0000	[thread overview]
Message-ID: <20260708101517.A98DC1F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260708-tcsr_qref_0708-v8-2-62c42b5fa269@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The device tree binding defines `#clock-cells` and `#reset-cells` as provider capabilities but fails to include them in the global `required` list.
- [Medium] Supply properties for the Mahua SoC are incorrectly named after the external board regulators (`vdda-refgen3-0p9`, `vdda-refgen3-1p2`) rather than the consumer hardware block's input pad (`REFGEN4`).
--

--- Patch [2]: [PATCH v8 2/7] dt-bindings: clock: qcom,glymur-tcsr: Add mahua support ---
commit 95da44cfb54a2f053c5c1da86a79be1166f21f64
Author: Qiang Yu <qiang.yu@oss.qualcomm.com>

dt-bindings: clock: qcom,glymur-tcsr: Add mahua support

This commit adds the qcom,mahua-tcsr compatible string and documents its
required supply properties. It notes that Mahua has a single QREF block fed
by REFGEN4 only, which is supplied by regulators vdda-refgen3-1p2 and
vdda-refgen3-0p9.

> diff --git a/Documentation/devicetree/bindings/clock/qcom,glymur-tcsr.yaml b/Documentation/devicetree/bindings/clock/qcom,glymur-tcsr.yaml
> index ec89feff89e4e..2b64226271657 100644
> --- a/Documentation/devicetree/bindings/clock/qcom,glymur-tcsr.yaml
> +++ b/Documentation/devicetree/bindings/clock/qcom,glymur-tcsr.yaml
[ ... ]
> @@ -82,6 +83,25 @@ allOf:
[ ... ]
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: qcom,mahua-tcsr
> +    then:
> +      required:
> +        - vdda-qrefrpt0-0p9-supply
[ ... ]
> +        - vdda-qreftx1-0p9-supply
> +        - vdda-refgen3-0p9-supply
> +        - vdda-refgen3-1p2-supply

[Severity: Medium]
The commit message mentions that the internal hardware block being fed here
is REFGEN4. Do these supply properties violate device tree property naming
principles by encoding the board-specific external regulator names
(vdda-refgen3-*) rather than the consumer pad name?

Should these required properties be renamed to correspond to the REFGEN4 pad
to avoid encoding board-specific regulator topology into the SoC hardware
schema?

>  
>  required:
>    - compatible

[Severity: Medium]
The device tree binding defines #clock-cells and #reset-cells as provider
capabilities, but they appear to be missing from this global required list.

Does this omission allow incomplete device tree nodes (those lacking
#clock-cells and #reset-cells) to pass schema validation? Could this lead
to dependent drivers or subsystems silently failing at runtime when they
attempt to use these functionalities?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260708-tcsr_qref_0708-v8-0-62c42b5fa269@oss.qualcomm.com?part=2

  reply	other threads:[~2026-07-08 10:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-08 10:02 [PATCH v8 0/7] clk: qcom: Add common clkref support and migrate Glymur and Mahua Qiang Yu
2026-07-08 10:02 ` [PATCH v8 1/7] dt-bindings: clock: qcom: Move glymur TCSR to own binding Qiang Yu
2026-07-08 10:09   ` sashiko-bot
2026-07-09  7:48   ` Krzysztof Kozlowski
2026-07-08 10:02 ` [PATCH v8 2/7] dt-bindings: clock: qcom,glymur-tcsr: Add mahua support Qiang Yu
2026-07-08 10:15   ` sashiko-bot [this message]
2026-07-09  7:49   ` Krzysztof Kozlowski
2026-07-08 10:02 ` [PATCH v8 3/7] clk: qcom: Add generic clkref_en support Qiang Yu
2026-07-08 10:27   ` sashiko-bot
2026-07-08 10:02 ` [PATCH v8 4/7] clk: qcom: tcsrcc-glymur: Add regulator supplies and migrate to clk_ref helper Qiang Yu
2026-07-08 10:02 ` [PATCH v8 5/7] clk: qcom: tcsrcc-glymur: Add Mahua QREF regulator support Qiang Yu
2026-07-08 10:39   ` sashiko-bot
2026-07-09 11:24   ` Konrad Dybcio
2026-07-08 10:02 ` [PATCH v8 6/7] arm64: dts: qcom: glymur: Add QREF regulator supplies to TCSR Qiang Yu
2026-07-08 10:02 ` [PATCH v8 7/7] arm64: dts: qcom: mahua: " Qiang Yu

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=20260708101517.A98DC1F00A3A@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=qiang.yu@oss.qualcomm.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