Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Anurag Pateriya" <anurag.pateriya@oss.qualcomm.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH 1/2] PENDING: arm64: dts: qcom: sm8750: add reboot-mode support
Date: Fri, 29 May 2026 14:39:42 +0000	[thread overview]
Message-ID: <20260529143943.0EB321F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260529-psci_sys_reset-dt-changes-for-pakala-v1-1-7c32161cf50b@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] The `reboot-mode` child node lacks a `compatible` string, which will prevent standard Open Firmware (OF) driver binding and probing.
- [Medium] SoC-specific `reboot-mode` properties are unnecessarily duplicated across multiple board files instead of being defined in the common SoC `.dtsi` file.
- [Medium] The addition of the `reboot-mode` child node directly violates the existing `arm,psci` device tree binding schema, causing `make dtbs_check` to fail.
--

commit 617db56b43f1f719cf41b6a802c5ad389fa5c24f
Author: Anurag Pateriya <anurag.pateriya@oss.qualcomm.com>
PENDING: arm64: dts: qcom: sm8750: add reboot-mode support

This commit adds psci system reset2 reboot-modes for the sm8750-mtp and
sm8750-qrd boards. It defines bootloader and edl modes to be used by the
psci-reboot-mode driver.

> diff --git a/arch/arm64/boot/dts/qcom/sm8750-mtp.dts b/arch/arm64/boot/dts/qcom/sm8750-mtp.dts
> --- a/arch/arm64/boot/dts/qcom/sm8750-mtp.dts
> +++ b/arch/arm64/boot/dts/qcom/sm8750-mtp.dts
[ ... ]
> +&psci {
> +	reboot-mode {

[Severity: Medium]
Does adding this node cause a dtbs_check failure? The core psci device tree
binding schema in Documentation/devicetree/bindings/arm/psci.yaml sets
additionalProperties: false and does not currently permit a reboot-mode
sub-node.

[Severity: High]
Is a compatible string required here for the reboot-mode driver to probe?
Without a property like compatible = "arm,psci-reboot-mode", the device tree
subsystem might skip node instantiation during of_platform_populate(),
preventing the psci-reboot-mode driver from functioning.

> +		mode-bootloader = <0x80010001 0x2>;
> +		mode-edl = <0x80000000 0x1>;
> +	};
> +};

> diff --git a/arch/arm64/boot/dts/qcom/sm8750-qrd.dts b/arch/arm64/boot/dts/qcom/sm8750-qrd.dts
> --- a/arch/arm64/boot/dts/qcom/sm8750-qrd.dts
> +++ b/arch/arm64/boot/dts/qcom/sm8750-qrd.dts
[ ... ]
> +&psci {
> +	reboot-mode {
> +		mode-bootloader = <0x80010001 0x2>;
> +		mode-edl = <0x80000000 0x1>;
> +	};
> +};

[Severity: Medium]
Could these values be consolidated into the common sm8750.dtsi file? Since
the system reset2 edl and bootloader modes are defined by the SoC firmware,
they appear to be tied to the sm8750 architecture rather than individual
board designs.

Moving them to the common dtsi would reduce duplication across the board
files.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260529-psci_sys_reset-dt-changes-for-pakala-v1-0-7c32161cf50b@oss.qualcomm.com?part=1

  reply	other threads:[~2026-05-29 14:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-29 14:11 [PATCH 0/2] Add psci_sys_reset2 reboot modes for Qualcomm boards Anurag Pateriya
2026-05-29 14:11 ` [PATCH 1/2] PENDING: arm64: dts: qcom: sm8750: add reboot-mode support Anurag Pateriya
2026-05-29 14:39   ` sashiko-bot [this message]
2026-05-29 14:11 ` [PATCH 2/2] PENDING: arm64: dts: qcom: kaanapali: " Anurag Pateriya
2026-05-29 15:09   ` sashiko-bot
2026-05-29 14:58 ` [PATCH 0/2] Add psci_sys_reset2 reboot modes for Qualcomm boards Anurag Pateriya

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=20260529143943.0EB321F00893@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=anurag.pateriya@oss.qualcomm.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@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