All of lore.kernel.org
 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 v3] arm64: dts: qcom: Add Microsoft Surface Laptop 8th Edition
Date: Thu, 26 Nov 2026 05:43:40 +0000	[thread overview]
Message-ID: <sashiko-outbox-234804@kernel.org> (raw)
In-Reply-To: <20261125-mahua-surface-laptop-v3-1-875b9c63d4e2@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] arm64: dts: qcom: SAM compatible mismatch breaks
  ssam_platform_hub_probe()
- [Medium] arm64: dts: qcom: duplicate CoB PMIC includes and stale
  regulator overrides
--

commit 5ca42311513062b6586cdd08dce26ed93bc509a5
Author: Gopikrishna Garmidi <gopikrishna.garmidi@oss.qualcomm.com>

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

This commit adds the device tree for the Mahua-based Microsoft Surface
Laptop 13.8" 8th Edition.

> 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..2f8c93d900df8
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/mahua-microsoft-surface-laptop-8-13p8.dts
> @@ -0,0 +1,1146 @@
> +// SPDX-License-Identifier: BSD-3-Clause
> +/*
> + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
> + */
> +/dts-v1/;
> +
> +#include "mahua.dtsi"
> +
> +#include "pmcx0102.dtsi"
> +#include "pmh0101.dtsi"
> +#include "pmh0110-glymur.dtsi"
> +#include "pmh0104-glymur.dtsi"
> +#include "pmk8850.dtsi"
> +#include "smb2370.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>
> +
> +/* PMICs tied to Glymur's cluster2 are absent on Mahua. */
> +/delete-node/ &pmcx0102_d_e0;
> +/delete-node/ &pmcx0102_d0_thermal;
> +/delete-node/ &pmh0104_i_e0;
> +/delete-node/ &pmh0104_i0_thermal;
> +/delete-node/ &pmh0104_j_e0;
> +/delete-node/ &pmh0104_j0_thermal;
> +
> +/ {
> +	model = "Microsoft Surface Laptop 8th Edition (13.8 inch)";
> +	compatible = "microsoft,surface-laptop-8-13p8", "qcom,mahua";

[Severity: High]
Does "microsoft,surface-laptop-8-13p8" match ssam_platform_hub_of_match in
drivers/platform/surface/surface_aggregator_registry.c?

Commit e93536b1fcf7 ("platform/surface: aggregator_registry: Add Surface
Laptop 8th Edition") registered the match entry with the v1 compatible
string:

drivers/platform/surface/surface_aggregator_registry.c:
	/* Surface Laptop 8th Edition (13.8") */
	{ .compatible = "microsoft,surface-laptop-8-13in", (void *)ssam_node_group_sl7 },

With the root compatible renamed to "microsoft,surface-laptop-8-13p8",
of_machine_get_match_data() in ssam_platform_hub_probe() returns NULL and
fails with -ENODEV, leaving the SAM keyboard, fan, and platform profile
devices unregistered.

[ ... ]

> +&apps_rsc {
> +	regulators-0 {
> +		compatible = "qcom,pmh0101-rpmh-regulators";
> +		qcom,pmic-id = "B_E0";

[ ... ]

> +		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>;
> +		};
> +	};

[Severity: Medium]
Should this board DT use the common CoB power grid from glymur-cob.dtsi
instead of re-including the PMIC dtsi files and redefining regulators-0
through regulators-4?

Since commit 6fdce1f4a17b ("arm64: dts: qcom: Consolidate Glymur CoB power
grid"), mahua.dtsi includes glymur-cob.dtsi, deletes the cluster2 PMIC
nodes, and wires the common on-SoC supplies (&tcsr, &lpass_vamacro,
&mdss_dp3_phy, &pcie4_phy, &pcie5_phy, the eUSB2 repeaters, and the USB
PHYs).  Redefining the regulator nodes here overrides the consolidated
glymur-cob.dtsi rail voltages with old CRD values (such as lowering
vreg_l7b0, vreg_l1c1..vreg_l4c1, vreg_l2f0..vreg_l3f0, and
vreg_l1h0..vreg_l2h0) and re-introduces F_E0 ldo4 (VDD_LPI_MX), which
commit b7ff5f19bb27 ("arm64: dts: qcom: glymur: Drop L4F0") dropped
because RPMH manages it as an ARC/RPMHPD.

Dropping the six PMIC #include directives, the duplicate /delete-node/
statements, and the duplicate on-SoC supply assignments, and extending
&rpmh_vregs_b_e0, &rpmh_vregs_f_e0, and &rpmh_vregs_f_e1 with only the
board-specific rails would avoid overriding the common CoB rail
constraints.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261125-mahua-surface-laptop-v3-1-875b9c63d4e2@oss.qualcomm.com?part=1

  reply	other threads:[~2026-11-26  5:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  5:30 [PATCH v3] arm64: dts: qcom: Add Microsoft Surface Laptop 8th Edition Gopikrishna Garmidi
2026-11-26  5:43 ` sashiko-bot [this message]
2026-11-27  5:49   ` Gopikrishna Garmidi

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-234804@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.