All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: SignKirigami <prcups@krgm.moe>
Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/4] dt-bindings: clock: Add Qualcomm Netrani GCC
Date: Tue, 24 Nov 2026 10:11:01 +0000	[thread overview]
Message-ID: <sashiko-outbox-230920@kernel.org> (raw)
In-Reply-To: <20261124-netrani-clock-v1-v1-1-ce10cedbfa4b@krgm.moe>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] dt-bindings: clock: netrani-gcc: GDSC IDs continue reset
  numbering at 27
- [Low] dt-bindings: clock: qcom,netrani-gcc: missing power-domains
  property
--

commit 0e3fa161746caedb31f6d1ea2fcad4a06d7279ab
Author: SignKirigami <prcups@krgm.moe>

dt-bindings: clock: Add Qualcomm Netrani GCC

This commit adds the Device Tree binding schema and clock, reset, and
power-domain identifier header for the Qualcomm Netrani global clock
controller.

> diff --git a/Documentation/devicetree/bindings/clock/qcom,netrani-gcc.yaml b/Documentation/devicetree/bindings/clock/qcom,netrani-gcc.yaml
> new file mode 100644
> index 0000000000000..f05e0ca78cb94
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/qcom,netrani-gcc.yaml
> @@ -0,0 +1,77 @@
[ ... ]
> +  clock-names:
> +    items:
> +      - const: bi_tcxo
> +      - const: sleep_clk
> +      - const: pcie_0_pipe_clk
> +      - const: ufs_phy_rx_symbol_0_clk
> +      - const: ufs_phy_rx_symbol_1_clk
> +      - const: ufs_phy_tx_symbol_0_clk
> +      - const: usb3_phy_wrapper_gcc_usb30_pipe_clk
> +
> +required:
> +  - compatible
> +  - clocks
> +  - clock-names
> +  - '#power-domain-cells'
> +
> +allOf:
> +  - $ref: qcom,gcc.yaml#
> +
> +unevaluatedProperties: false

[Severity: Low]
Should this binding define and require power-domains for the parent CX power
domain, like the register-compatible qcom,sm4450-gcc.yaml?

Because qcom,gcc.yaml does not declare power-domains and this schema sets
unevaluatedProperties: false, a devicetree node cannot specify the parent CX
power domain without failing schema validation.  Without power-domains on
the GCC node, gdsc_register() cannot attach GCC_UFS_PHY_GDSC and
GCC_USB30_PRIM_GDSC as subdomains of the CX domain.

> diff --git a/include/dt-bindings/clock/qcom,netrani-gcc.h b/include/dt-bindings/clock/qcom,netrani-gcc.h
> new file mode 100644
> index 0000000000000..b4d4a39d4d690
> --- /dev/null
> +++ b/include/dt-bindings/clock/qcom,netrani-gcc.h
> @@ -0,0 +1,184 @@
[ ... ]
> +#define GCC_VIDEO_AXI0_CLK_ARES					25
> +#define GCC_VIDEO_BCR						26
> +
> +/* GCC power domains */
> +#define GCC_UFS_PHY_GDSC					27
> +#define GCC_USB30_PRIM_GDSC					28
> +
> +#endif

[Severity: Medium]
Should the GCC power domain IDs start at 0 instead of continuing the reset
numbering from GCC_VIDEO_BCR (26)?

qcom_cc_really_probe() and gdsc_register() register GDSCs as a separate
onecell genpd provider indexed from 0 to desc->num_gdscs - 1, independent
of the reset controller array.  Using 27 and 28 in the ABI header differs
from other Qualcomm GCC bindings (including qcom,sm4450-gcc.h) and either
forces the driver's GDSC table to carry 27 unused leading NULL entries or
causes out-of-bounds lookups when indexing by GDSC count.  Also, since this
controller is register-compatible with SM4450 GCC and defines the
GCC_PCIE_0_* clocks and resets, is GCC_PCIE_0_GDSC intentionally omitted?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261124-netrani-clock-v1-v1-0-ce10cedbfa4b@krgm.moe?part=1

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

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24  9:48 [PATCH 0/4] Add Qualcomm Netrani clock support SignKirigami
2026-11-24  9:48 ` [PATCH 1/4] dt-bindings: clock: Add Qualcomm Netrani GCC SignKirigami
2026-11-24 10:11   ` sashiko-bot [this message]
2026-11-24 15:59   ` Krzysztof Kozlowski
2026-11-24  9:48 ` [PATCH 2/4] clk: qcom: Add the Netrani global clock controller SignKirigami
2026-11-24 10:28   ` sashiko-bot
2026-11-24  9:48 ` [PATCH 3/4] dt-bindings: clock: Add Netrani RPMh clocks SignKirigami
2026-11-24 10:35   ` sashiko-bot
2026-11-24 16:06   ` Krzysztof Kozlowski
2026-11-24  9:48 ` [PATCH 4/4] clk: qcom: rpmh: Add Netrani clock resources SignKirigami
2026-11-24  9:52 ` [PATCH 0/4] Add Qualcomm Netrani clock support Krzysztof Kozlowski
2026-11-24  9:58   ` SignKirigami

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-230920@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=prcups@krgm.moe \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.