All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Alex Elder" <elder@riscstar.com>
Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3 3/3] arm64: dts: qcom: qcs6490-rb3gen2: add TC9564 clock node
Date: Wed, 25 Nov 2026 20:28:00 +0000	[thread overview]
Message-ID: <sashiko-outbox-234134@kernel.org> (raw)
In-Reply-To: <20261125202141.1288493-4-elder@riscstar.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] arm64: dts: qcom: clock-25000000 under pcie@0,0 shifts tc9563
  port indexing
--

commit c4e2dd0c5c7aea169ea475dfdf59cb2e475d33be
Author: Alex Elder <elder@kernel.org>

arm64: dts: qcom: qcs6490-rb3gen2: add TC9564 clock node

This commit adds a devicetree node for the Toshiba TC9564 clock and reset
controller along with a 25 MHz fixed-clock node supplying it.

> diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
> index 682bcbc0b466b..b327f64885ef2 100644
> --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
> +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
> @@ -890,6 +890,13 @@ pcie@0,0 {
>  		pinctrl-0 = <&tc9563_resx_n>;
>  		pinctrl-names = "default";
>  
> +		tc9564_xo_board: clock-25000000 {
> +			compatible = "fixed-clock";
> +			#clock-cells = <0>;
> +			clock-frequency = <25000000>;
> +			clock-output-names = "tc9564_xo_board";
> +		};
> +
>  		pcie1_switch0_dsp1: pcie@1,0 {
>  			reg = <0x20800 0x0 0x0 0x0 0x0>;
>  			#address-cells = <3>;

[Severity: High]
Does placing clock-25000000 as the first child of pcie@0,0 shift the
downstream port indexing in the tc9563 power control driver?

Both tc9563_pwrctrl_probe() and tc9563_pwrctrl_parse_reset_line() map the
direct children of the pci1179,0623 node positionally to TC9563_DSP1,
TC9563_DSP2, and TC9563_VDSP:

drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c:tc9563_pwrctrl_probe() {
	...
	port = TC9563_USP;
	for_each_child_of_node_scoped(node, child) {
		if (++port >= TC9563_MAX)
			break;

		ret = tc9563_pwrctrl_parse_device_dt(child, &tc9563->cfg[port]);
	...
}

With clock-25000000 ahead of pcie@1,0, pcie@2,0, and pcie@3,0, the driver
treats clock-25000000 as TC9563_DSP1, shifts pcie@1,0 and pcie@2,0 into
TC9563_DSP2 and TC9563_VDSP (misassociating per-port settings, reset
GPIOs, and the integrated Ethernet endpoint), and stops before reaching
pcie@3,0.  It also violates Documentation/devicetree/bindings/pci/toshiba,tc9563.yaml,
which only permits pcie@[1-2],0 and pcie@[3],0 child nodes.  Should
tc9564_xo_board live under the root /clocks node instead?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261125202141.1288493-1-elder@riscstar.com?part=3

  reply	other threads:[~2026-11-25 20:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 20:21 [PATCH v3 0/3] clk: tc9564: introduce a clock and reset driver Alex Elder
2026-11-25 20:21 ` [PATCH v3 1/3] dt-bindings: toshiba: introduce toshiba,tc9564-clock.yaml Alex Elder
2026-11-27 18:01   ` Jerome Brunet
2026-11-30 18:47     ` Alex Elder
2026-11-25 20:21 ` [PATCH v3 2/3] clk: toshiba: introduce a TC9564 clock/reset driver Alex Elder
2026-11-26  9:42   ` Philipp Zabel
2026-11-26 12:59     ` Alex Elder
2026-11-26 17:19       ` Philipp Zabel
2026-11-26  9:55   ` Lorenzo Bianconi
2026-11-27 19:20     ` Alex Elder
2026-11-27 18:01   ` Jerome Brunet
2026-11-30 18:47     ` Alex Elder
2026-11-25 20:21 ` [PATCH v3 3/3] arm64: dts: qcom: qcs6490-rb3gen2: add TC9564 clock node Alex Elder
2026-11-25 20:28   ` sashiko-bot [this message]
2026-11-25 21:51     ` Alex Elder
2026-11-26 10:01   ` Lorenzo Bianconi
2026-11-25 20:33 ` [PATCH v3 0/3] clk: tc9564: introduce a clock and reset driver Alex Elder

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-234134@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=elder@riscstar.com \
    --cc=linux-clk@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 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.