Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Frieder Hannenheim" <git@fhannenheim.net>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/2] arm64: dts: qcom: Add sm8250-oneplus-common.dtsi
Date: Thu, 15 Oct 2026 09:13:38 +0000	[thread overview]
Message-ID: <sashiko-outbox-172549@kernel.org> (raw)
In-Reply-To: <20261015-kebab_dts-v1-1-1fee1204a18b@fhannenheim.net>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] dts: qcom: duplicate KEY_VOLUMEDOWN mapping in pon_resin and gpio-keys
- [Low] dts: qcom: status='disabled' has no effect on pinctrl state nodes
--

commit fdf402f94fd160b62e640439999822bae70298f5
Author: Frieder Hannenheim <git@fhannenheim.net>

arm64: dts: qcom: Add sm8250-oneplus-common.dtsi

This commit adds common properties shared by all OnePlus devices using
the Qualcomm sm8250 chipset.

> diff --git a/arch/arm64/boot/dts/qcom/sm8250-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/sm8250-oneplus-common.dtsi
> index 0000000000000..59f4a3c119c8f
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/sm8250-oneplus-common.dtsi
[ ... ]
> +	gpio_keys: gpio-keys {
> +		compatible = "gpio-keys";
> +		label = "Volume keys";
> +		autorepeat;
> +
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&volume_up_gpio &volume_down_gpio>;
> +
> +		vol-up {
> +			label = "Volume Up";
> +			gpios = <&pm8150_gpios 6 GPIO_ACTIVE_LOW>;
> +			linux,code = <KEY_VOLUMEUP>;
> +			debounce-interval = <15>;
> +			linux,can-disable;
> +			wakeup-source;
> +		};
> +
> +		vol-down {
> +			label = "Volume Down";
> +			linux,code = <KEY_VOLUMEDOWN>;
> +			gpios = <&pm8150_gpios 7 GPIO_ACTIVE_LOW>;
> +			debounce-interval = <15>;
> +			linux,can-disable;
> +			wakeup-source;
> +		};
> +	};
[ ... ]
> +&pon_resin {
> +	linux,code = <KEY_VOLUMEDOWN>;
> +
> +	status = "okay";
> +};

[Severity: Medium]
Will mapping KEY_VOLUMEDOWN here in the pon_resin node in addition to the
gpio-keys node above cause double key presses?

Because the physical volume down button on Qualcomm devices is typically
wired to both the pmic RESIN_N pin and a pmic gpio, mapping both paths
can cause the kernel to register two input devices. This can emit duplicate
input events for a single physical button press, resulting in double volume
steps in userspace.

[ ... ]
> +&qup_i2c7_default {
> +	status = "disabled";
> +};
> +
> +&qup_spi7_data_clk {
> +	status = "disabled";
> +};

[Severity: Low]
Does setting the status property on pinctrl configuration state nodes like
qup_i2c7_default and qup_spi7_data_clk have any effect?

The pinctrl subsystem generally does not process the status property on
configuration nodes, making these assignments ineffective. If the intention
was to disable the i2c and spi interfaces, should the property be applied
to the device controller nodes themselves (for instance, i2c7) instead?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261015-kebab_dts-v1-0-1fee1204a18b@fhannenheim.net?part=1

  reply	other threads:[~2026-10-15  9:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-15  8:57 [PATCH 0/2] Add OnePlus 8T Frieder Hannenheim
2026-10-15  8:57 ` [PATCH 1/2] arm64: dts: qcom: Add sm8250-oneplus-common.dtsi Frieder Hannenheim
2026-10-15  9:13   ` sashiko-bot [this message]
2026-10-15  8:57 ` [PATCH 2/2] arm64: dts: qcom: oneplus-kebab: new device Frieder Hannenheim
2026-10-15  9:21   ` sashiko-bot
2026-10-15  9:16 ` [PATCH 0/2] Add OnePlus 8T Konrad Dybcio
2026-10-15 13:01   ` Frieder Hannenheim

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-172549@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=git@fhannenheim.net \
    --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