Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Shawn Guo" <shengchao.guo@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3 2/5] arm64: dts: qcom: Add device tree for Nord SoC series
Date: Tue, 26 May 2026 04:16:21 +0000	[thread overview]
Message-ID: <20260526041621.EA7831F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260526034557.1669007-3-shengchao.guo@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] SCMI shared memory phandles are incorrectly ordered, breaking TX/RX communication.
- [High] The `ufs_mem_hc` node is missing the mandatory `reg` property.
--

commit cfa0d5607f866c28a7b366f81351c85f19172eee
Author: Shawn Guo <shengchao.guo@oss.qualcomm.com>

arm64: dts: qcom: Add device tree for Nord SoC series

This commit adds the base device tree include (nord.dtsi) for the Nord SoC
series, describing the core hardware components such as CPUs, SCMI interfaces,
thermal sensors, and memory regions.

> diff --git a/arch/arm64/boot/dts/qcom/nord.dtsi b/arch/arm64/boot/dts/qcom/nord.dtsi
> new file mode 100644
> index 0000000000000..954a2b23a4fa3
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/nord.dtsi
> @@ -0,0 +1,4513 @@

[ ... ]

> +	firmware: firmware {
> +		scm {
> +			compatible = "qcom,scm-nord",
> +				     "qcom,scm";
> +			qcom,dload-mode = <&tcsr 0x79000>;
> +		};
> +
> +		pdp_scmi: scmi {
> +			compatible = "arm,scmi";
> +			mboxes = <&pdp0_mbox 0>,
> +				 <&pdp0_mbox 11>,
> +				 <&pdp0_mbox 1>;
> +			mbox-names = "tx",
> +				     "tx_reply",
> +				     "rx";
> +			shmem = <&pdp0_a2p>,
> +				<&pdp0_p2a>;

[Severity: High]
Is this shared memory order correct for the SCMI driver?

The Linux SCMI driver typically expects index 0 for the TX channel and index 1
for the RX channel. Since <&pdp0_a2p> is Agent-to-Processor (RX) and
<&pdp0_p2a> is Processor-to-Agent (TX), does placing a2p at index 0 cause
the SCMI driver to transmit on the RX region and receive on the TX region?

> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +
> +			cpu_perf: protocol@13 {
> +				reg = <0x13>;
> +				#clock-cells = <1>;
> +			};
> +		};

[ ... ]

> +		rng: rng@10c3000 {
> +			compatible = "qcom,nord-trng",
> +				     "qcom,trng";
> +			reg = <0x0 0x010c3000 0x0 0x1000>;
> +		};
> +
> +		ufs_mem_hc: ufshc@1d44000 {
> +			compatible = "qcom,nord-ufshc",
> +				     "qcom,ufshc",
> +				     "jedec,ufs-2.0";
> +			interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>;
> +			lanes-per-direction = <2>;
> +			iommus = <&apps_smmu_0 0x14c0 0x0>;
> +			dma-coherent;
> +			msi-parent = <&gic_its 0x14c0>;
> +		};

[Severity: High]
Is the reg property missing from this node?

The UFS host controller node is declared with a unit address (@1d44000), but
without a corresponding reg property, won't the UFS driver fail to map its
registers during probe?

This might also trigger a dtc unit_address_vs_reg compilation warning.

> +
> +		tcsr_mutex: hwlock@1f40000 {
> +			compatible = "qcom,tcsr-mutex";
> +			reg = <0x0 0x01f40000 0x0 0x20000>;
> +			#hwlock-cells = <1>;
> +		};

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260526034557.1669007-1-shengchao.guo@oss.qualcomm.com?part=2

  reply	other threads:[~2026-05-26  4:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-26  3:45 [PATCH v3 0/5] Add initial device trees for Nord SA8797P Shawn Guo
2026-05-26  3:45 ` [PATCH v3 1/5] dt-bindings: crypto: qcom,inline-crypto-engine: Document Nord ICE Shawn Guo
2026-05-26  3:45 ` [PATCH v3 2/5] arm64: dts: qcom: Add device tree for Nord SoC series Shawn Guo
2026-05-26  4:16   ` sashiko-bot [this message]
2026-05-26  3:45 ` [PATCH v3 3/5] arm64: dts: qcom: Add device tree for Nord SA8797P SoC Shawn Guo
2026-05-26  3:45 ` [PATCH v3 4/5] dt-bindings: arm: qcom: Document SA8797P Ride board Shawn Guo
2026-05-26  4:44   ` sashiko-bot
2026-05-26  3:45 ` [PATCH v3 5/5] arm64: dts: qcom: Add device tree for " Shawn Guo
2026-05-26  4:54   ` sashiko-bot
2026-05-26  5:08 ` [PATCH v3 0/5] Add initial device trees for Nord SA8797P Shawn Guo

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=20260526041621.EA7831F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=shengchao.guo@oss.qualcomm.com \
    /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