Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Hardeep Sharma" <hardeep.sharma@oss.qualcomm.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org,
	linux-clk@vger.kernel.org
Subject: Re: [PATCH v5 15/15] ARM: dts: qcom: Add initial device tree for Kuno SoC
Date: Thu, 27 Aug 2026 18:09:24 +0000	[thread overview]
Message-ID: <20260827180924.687881F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260827-kuno-soc-support-v5-15-6d47636a8f09@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] The TLMM (pinctrl) node is missing the `wakeup-parent = <&pdc>;` property.
- [High] Incorrect architected timer GIC PPI mapping and ordering.
- [Medium] The `ranges` property in the `soc` node truncates the bus mapping by one byte.
--

commit 429df2d2736988037173b656c9a9508e2e6b4476
Author: Hardeep Sharma <hardeep.sharma@oss.qualcomm.com>

ARM: dts: qcom: Add initial device tree for Kuno SoC

This adds the initial device tree source and include files for the
Qualcomm Kuno SoC and IDP board. It includes initial peripheral
nodes such as PSCI, RPMh, GCC, TLMM, interconnects, and UART.

> diff --git a/arch/arm/boot/dts/qcom/qcom-kuno.dtsi b/arch/arm/boot/dts/qcom/qcom-kuno.dtsi
> new file mode 100644
> index 0000000000000..d0c6e3f21a14f
> --- /dev/null
> +++ b/arch/arm/boot/dts/qcom/qcom-kuno.dtsi
[ ... ]
> +	soc: soc@0 {
> +		compatible = "simple-bus";
> +		#address-cells = <1>;
> +		#size-cells = <1>;
> +		ranges = <0 0 0xffffffff>;

[Severity: Medium]
Does this truncate the 32-bit address space bus mapping by one byte?
A size of 0xffffffff leaves the final byte of the 4GB address space unmapped.
Should this use an empty ranges property to map the entire address space
correctly?

[ ... ]
> +		tlmm: pinctrl@f000000 {
> +			compatible = "qcom,kuno-tlmm";
> +			reg = <0x0f000000 0x400000>;
> +			interrupts = <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>;
> +			gpio-controller;
> +			#gpio-cells = <2>;
> +			gpio-ranges = <&tlmm 0 0 110>;
> +			interrupt-controller;
> +			#interrupt-cells = <2>;

[Severity: High]
Is the tlmm node missing the wakeup-parent property?
Without chaining the TLMM to the Power Domain Controller (pdc node) via
wakeup-parent, any GPIOs configured as wakeup sources cannot wake the system
from deep sleep states.

[ ... ]
> +	timer {
> +		compatible = "arm,armv7-timer";
> +		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
> +			     <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
> +			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
> +			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>;
> +	};
> +};

[Severity: High]
Are these GIC PPI numbers correctly mapped and ordered?
The non-secure timer appears to be incorrectly set to PPI 12 instead of 14,
and the virtual and hypervisor interrupts (10 and 11) seem to be swapped.
This incorrect mapping will cause the kernel to request the wrong IRQs and
can lead to early boot hangs when timer interrupts fail to arrive.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260827-kuno-soc-support-v5-0-6d47636a8f09@oss.qualcomm.com?part=15

      reply	other threads:[~2026-08-27 18:09 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-27 17:51 [PATCH v5 00/15] Add initial support for Qualcomm Kuno SoC Hardeep Sharma
2026-08-27 17:51 ` [PATCH v5 01/15] soc: qcom: geni-se: allow selection on 32-bit ARM Qualcomm SoCs Hardeep Sharma
2026-08-27 17:51 ` [PATCH v5 02/15] dt-bindings: power: rpmpd: Document Kuno RPMh power domains Hardeep Sharma
2026-08-27 17:51 ` [PATCH v5 03/15] pmdomain: qcom: rpmhpd: Add power domains for Kuno Hardeep Sharma
2026-08-27 17:51 ` [PATCH v5 04/15] dt-bindings: clock: qcom,rpmhcc: Add Kuno RPMh clock controller Hardeep Sharma
2026-08-27 17:51 ` [PATCH v5 05/15] clk: qcom: clk-rpmh: Add support for Kuno RPMh clocks Hardeep Sharma
2026-08-27 17:51 ` [PATCH v5 06/15] dt-bindings: interconnect: Add Qualcomm Kuno NoC Hardeep Sharma
2026-08-27 17:51 ` [PATCH v5 07/15] interconnect: qcom: Add Kuno interconnect provider driver Hardeep Sharma
2026-08-27 18:23   ` sashiko-bot
2026-08-27 17:51 ` [PATCH v5 08/15] dt-bindings: pinctrl: qcom: Add Kuno TLMM Hardeep Sharma
2026-08-27 17:51 ` [PATCH v5 09/15] pinctrl: qcom: Add Kuno pinctrl driver Hardeep Sharma
2026-08-27 17:51 ` [PATCH v5 10/15] dt-bindings: clock: qcom: Add Kuno Global Clock Controller Hardeep Sharma
2026-08-27 17:51 ` [PATCH v5 11/15] clk: qcom: Add Global Clock Controller driver for Kuno Hardeep Sharma
2026-08-27 17:51 ` [PATCH v5 12/15] dt-bindings: interrupt-controller: qcom,pdc: Add Kuno compatible string Hardeep Sharma
2026-08-27 17:51 ` [PATCH v5 13/15] dt-bindings: firmware: qcom,scm: Document SCM on Kuno SoC Hardeep Sharma
2026-08-27 17:51 ` [PATCH v5 14/15] dt-bindings: arm: qcom: Document Kuno IDP board Hardeep Sharma
2026-08-27 17:51 ` [PATCH v5 15/15] ARM: dts: qcom: Add initial device tree for Kuno SoC Hardeep Sharma
2026-08-27 18:09   ` sashiko-bot [this message]

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=20260827180924.687881F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=hardeep.sharma@oss.qualcomm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox