Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Gopikrishna Garmidi" <gopikrishna.garmidi@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v4] arm64: dts: qcom: Add Microsoft Surface Laptop 8th Edition
Date: Mon, 30 Nov 2026 07:16:39 +0000	[thread overview]
Message-ID: <sashiko-outbox-240571@kernel.org> (raw)
In-Reply-To: <20261129-mahua-surface-laptop-v4-1-b6ceb31303fd@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [High] arm64: dts: qcom: root compatible mismatch breaks
  ssam_platform_hub_probe()
- [Medium] arm64: dts: qcom: re-added L4F0 regulator and stale CoB rail
  overrides
- [Medium] arm64: dts: qcom: missing qcom,uefi-rtc-info property on
  pmk8850_rtc
- [Low] arm64: dts: qcom: legacy RPMh regulator phandle and
  regulator-name format
--

commit 25f14792a9751d8f7285b0da2eaf22af4fd33acf
Author: Gopikrishna Garmidi <gopikrishna.garmidi@oss.qualcomm.com>

arm64: dts: qcom: Add Microsoft Surface Laptop 8th Edition

This commit adds the devicetree for the Mahua-based Microsoft Surface
Laptop 8th Edition (13.8 inch).

> diff --git a/arch/arm64/boot/dts/qcom/mahua-microsoft-surface-laptop-8-13p8.dts b/arch/arm64/boot/dts/qcom/mahua-microsoft-surface-laptop-8-13p8.dts
> new file mode 100644
> index 0000000000000..8bb96cc73ebaa
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/mahua-microsoft-surface-laptop-8-13p8.dts
> @@ -0,0 +1,965 @@
> +// SPDX-License-Identifier: BSD-3-Clause
> +/*
> + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
> + */
> +/dts-v1/;
> +
> +#include "mahua.dtsi"
> +
> +#include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/input/gpio-keys.h>
> +#include <dt-bindings/input/input.h>
> +#include <dt-bindings/interrupt-controller/irq.h>
> +#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
> +
> +/ {
> +	model = "Microsoft Surface Laptop 8th Edition (13.8 inch)";
> +	compatible = "microsoft,surface-laptop-8-13p8", "qcom,mahua";

[Severity: High]
Does the root compatible string mismatch ssam_platform_hub_of_match in
drivers/platform/surface/surface_aggregator_registry.c?

Commit e93536b1fcf7 ("platform/surface: aggregator_registry: Add Surface
Laptop 8th Edition") added the match entry with the v1 compatible string
"microsoft,surface-laptop-8-13in".  When ssam_platform_hub_probe() calls
of_machine_get_match_data(ssam_platform_hub_of_match), it returns NULL
for "microsoft,surface-laptop-8-13p8" and fails with -ENODEV, leaving the
SAM keyboard, fan, and platform profile devices unregistered.

[ ... ]

> +&rpmh_vregs_b_e0 {
> +	vreg_bob1_e0: bob1 {
> +		regulator-name = "vreg_bob1_e0";
> +		regulator-min-microvolt = <2200000>;
> +		regulator-max-microvolt = <4224000>;
> +		regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
> +	};
> +
> +	vreg_bob2_e0: bob2 {
> +		regulator-name = "vreg_bob2_e0";
> +		regulator-min-microvolt = <2540000>;
> +		regulator-max-microvolt = <3600000>;
> +		regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
> +	};
> +
> +	vreg_l2b_e0_2p9: ldo2 {
> +		regulator-name = "vreg_l2b_e0_2p9";
> +		regulator-min-microvolt = <1804000>;
> +		regulator-max-microvolt = <2904000>;
> +		regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
> +	};
> +
> +	vreg_l8b_e0_3p3: ldo8 {
> +		regulator-name = "vreg_l8b_e0_3p3";
> +		regulator-min-microvolt = <3304000>;
> +		regulator-max-microvolt = <3304000>;
> +		regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
> +	};
> +
> +	vreg_l9b_e0_2p9: ldo9 {
> +		regulator-name = "vreg_l9b_e0_2p9";
> +		regulator-min-microvolt = <2960000>;
> +		regulator-max-microvolt = <2960000>;
> +		regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
> +	};
> +
> +	vreg_l12b_e0_1p14: ldo12 {
> +		regulator-name = "vreg_l12b_e0_1p14";
> +		regulator-min-microvolt = <1144000>;
> +		regulator-max-microvolt = <1144000>;
> +		regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
> +	};
> +
> +	vreg_l17b_e0_2p4: ldo17 {
> +		regulator-name = "vreg_l17b_e0_2p4";
> +		regulator-min-microvolt = <2400000>;
> +		regulator-max-microvolt = <2700000>;
> +		regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
> +	};
> +};
> +
> +&rpmh_vregs_f_e0 {
> +	vreg_s7f_e0_1p32: smps7 {
> +		regulator-name = "vreg_s7f_e0_1p32";
> +		regulator-min-microvolt = <1320000>;
> +		regulator-max-microvolt = <1352000>;
> +		regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
> +	};
> +
> +	vreg_s8f_e0_0p95: smps8 {
> +		regulator-name = "vreg_s8f_e0_0p95";
> +		regulator-min-microvolt = <952000>;
> +		regulator-max-microvolt = <1200000>;
> +		regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
> +	};

[Severity: Low]
This isn't a bug, but the board-level RPMh regulators under
rpmh_vregs_b_e0, rpmh_vregs_f_e0, and rpmh_vregs_f_e1 still use the old
vreg_<rail>_e<idx>_<voltage> naming format instead of the schematic
format (vreg_l2b0, vreg_l8b0, vreg_s7f0, etc.) unified in commit
fbd35c7b770a ("arm64: dts: qcom: Unify Glymur/Mahua regulator handles").

> +	vreg_l4f_e0_0p3: ldo4 {
> +		regulator-name = "vreg_l4f_e0_0p3";
> +		regulator-min-microvolt = <1080000>;
> +		regulator-max-microvolt = <1200000>;
> +		regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
> +	};
> +};
> +
> +&rpmh_vregs_f_e1 {
> +	vreg_s7f_e1_0p3: smps7 {
> +		regulator-name = "vreg_s7f_e1_0p3";
> +		regulator-min-microvolt = <300000>;
> +		regulator-max-microvolt = <1200000>;
> +		regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
> +	};
> +};
> +
> +&vreg_l7b0 {
> +	regulator-min-microvolt = <2790000>;
> +	regulator-max-microvolt = <2792000>;
> +};
> +
> +&vreg_l1c1 {
> +	regulator-min-microvolt = <832000>;
> +	regulator-max-microvolt = <832000>;
> +};
> +
> +&vreg_l2c1 {
> +	regulator-min-microvolt = <1144000>;
> +	regulator-max-microvolt = <1144000>;
> +};
> +
> +&vreg_l3c1 {
> +	regulator-min-microvolt = <890000>;
> +	regulator-max-microvolt = <980000>;
> +};
> +
> +&vreg_l4c1 {
> +	regulator-min-microvolt = <720000>;
> +	regulator-max-microvolt = <720000>;
> +};
> +
> +&vreg_l2f0 {
> +	regulator-min-microvolt = <832000>;
> +	regulator-max-microvolt = <832000>;
> +};
> +
> +&vreg_l3f0 {
> +	regulator-min-microvolt = <720000>;
> +	regulator-max-microvolt = <720000>;
> +};
> +
> +&vreg_s9f0 {
> +	regulator-min-microvolt = <1900000>;
> +	regulator-max-microvolt = <2000000>;
> +};
> +
> +&vreg_l1h0 {
> +	regulator-min-microvolt = <832000>;
> +	regulator-max-microvolt = <832000>;
> +};
> +
> +&vreg_l2h0 {
> +	regulator-min-microvolt = <832000>;
> +	regulator-max-microvolt = <832000>;
> +};
> +
> +&vreg_l3h0 {
> +	regulator-min-microvolt = <320000>;
> +	regulator-max-microvolt = <2000000>;
> +};
> +
> +&vreg_l4h0 {
> +	regulator-min-microvolt = <1080000>;
> +	regulator-max-microvolt = <1320000>;
> +};

[Severity: Medium]
Should ldo4 under rpmh_vregs_f_e0 and these 12 CoB rail overrides be
dropped?

L4F0 is VDD_LPI_MX, which is controlled by RPMh as an ARC/RPMHPD power
domain and was removed across Glymur/Mahua DTs in commit b7ff5f19bb27
("arm64: dts: qcom: glymur: Drop L4F0"); exposing it here as an unused
VRM regulator allows regulator late cleanup to disable or misconfigure
it.

In addition, the 12 overrides from vreg_l7b0 through vreg_l4h0 revert the
consolidated on-SoC peripheral rail voltages in glymur-cob.dtsi back to
the stale glymur-crd.dtsi values that commit 6fdce1f4a17b ("arm64: dts:
qcom: Consolidate Glymur CoB power grid") replaced, causing
qcom-rpmh-regulator to program lower voltages on these on-SoC USB/PCIe
PHY, eUSB2 repeater, PLL, TCSR, and DDR/QFPROM rails at probe time.

[ ... ]

> +&pmk8850_rtc {
> +	qcom,no-alarm;
> +};

[Severity: Medium]
Is qcom,uefi-rtc-info missing on pmk8850_rtc?

Commit d3daf22e99cd ("firmware: qcom: scm: Allow QSEECOM on Surface
Laptop 8th Edition") enabled QSEECOM on this board to access the RTC
offset stored in UEFI variables, and pmk8850.dtsi does not define an
offset nvmem cell or qcom,uefi-rtc-info.  Without qcom,uefi-rtc-info
here, pm8xxx_rtc_probe_offset() leaves rtc_dd->use_uefi unset, so RTC
reads return the raw unadjusted PMIC counter and pm8xxx_rtc_set_time()
fails with -ENODEV.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261129-mahua-surface-laptop-v4-1-b6ceb31303fd@oss.qualcomm.com?part=1

           reply	other threads:[~2026-11-30  7:16 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20261129-mahua-surface-laptop-v4-1-b6ceb31303fd@oss.qualcomm.com>]

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-240571@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gopikrishna.garmidi@oss.qualcomm.com \
    --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