Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Erikas Bitovtas" <xerikasxx@gmail.com>
Cc: conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: sm7125-samsung: add initial device tree
Date: Sun, 05 Jul 2026 10:46:18 +0000	[thread overview]
Message-ID: <20260705104619.0C8241F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260705-sm7125-samsung-v2-3-d3b17005ecb3@gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] Missing explicit `#include <dt-bindings/input/linux-event-codes.h>` (or `input.h`), relying on fragile transitive inclusion for input macros (`KEY_VOLUMEUP`, `KEY_VOLUMEDOWN`, `EV_SW`, `SW_LID`).
- [Low] The `rmtfs_mem` node is defined without a unit-address but receives a `reg` property in board-specific files, causing a `unit_address_vs_reg` DTC warning.
--

commit 50b01ca3bfe2c4df6217b51c5cea041f5fa4dfb9
Author: Erikas Bitovtas <xerikasxx@gmail.com>

arm64: dts: qcom: sm7125-samsung: add initial device tree

This patch adds the initial device tree support for the Samsung Galaxy A52
and A72 on the Qualcomm SM7125 platform.

> diff --git a/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi b/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi
> new file mode 100644
> index 0000000000000..512a151fbff93
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi
> @@ -0,0 +1,536 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * SM7125 Samsung common device tree source
> + *
> + * Copyright (c) 2026, The Linux Foundation. All rights reserved.
> + */
> +
> +#include <dt-bindings/arm/qcom,ids.h>
> +#include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
> +#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
> +#include "sm7125.dtsi"
> +#include "pm6150.dtsi"
> +#include "pm6150l.dtsi"

[Severity: Low]
Does this file need to explicitly include <dt-bindings/input/linux-event-codes.h>?

The gpio-keys and pm6150_resin nodes use input event macros like KEY_VOLUMEUP,
SW_LID, and EV_SW further down in the file. Relying on transitive includes
can cause build failures if the included files are refactored in the future.

[ ... ]
> +		pstore_mem: ramoops@b4600000 {
> +			compatible = "ramoops";
> +			reg = <0x0 0xb4600000 0x0 0x100000>;
> +			record-size = <0x40000>;
> +			console-size = <0x40000>;
> +			ftrace-size = <0x40000>;
> +			pmsg-size = <0x40000>;
> +		};
> +
> +		rmtfs_mem: memory {
> +			compatible = "qcom,rmtfs-mem";
> +			qcom,use-guard-pages;
> +			no-map;
> +
> +			qcom,client-id = <1>;
> +			qcom,vmid = <QCOM_SCM_VMID_MSS_MSA>;
> +		};
> +	};

[Severity: Low]
Does defining the base node without a unit-address here cause a warning
when board-specific files append the reg property?

For example, in sm7125-samsung-a52q.dts:

&rmtfs_mem {
	reg = <0x0 0xf4f00000 0x0 0x202000>;
};

Injecting a reg property into a node named "memory" (without an @address
suffix) usually triggers a unit_address_vs_reg dtc warning during compilation.
Should the base node be given a unit-address placeholder to avoid this?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260705-sm7125-samsung-v2-0-d3b17005ecb3@gmail.com?part=3

  reply	other threads:[~2026-07-05 10:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-05 10:30 [PATCH v2 0/3] arm64: dts: qcom: sm7125-samsung: add initial device tree for SM7125 Samsung platform Erikas Bitovtas
2026-07-05 10:30 ` [PATCH v2 1/3] dt-bindings: arm: qcom: Document Samsung Galaxy A52/A72 Erikas Bitovtas
2026-07-06  6:37   ` Krzysztof Kozlowski
2026-07-05 10:30 ` [PATCH v2 2/3] firmware: qcom: tzmem: disable SHM bridge for SM7125 platform Erikas Bitovtas
2026-07-05 10:30 ` [PATCH v2 3/3] arm64: dts: qcom: sm7125-samsung: add initial device tree Erikas Bitovtas
2026-07-05 10:46   ` sashiko-bot [this message]
2026-07-05 18:41   ` David Heidelberg

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=20260705104619.0C8241F000E9@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=xerikasxx@gmail.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