devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Qianhui Xu" <xiaqinghuan@mail.ustc.edu.cn>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v9 2/2] arm64: dts: qcom: sm8750-lenovo-elden: add Lenovo Legion Y700 Gen4, a Qualcomm SM8750-based tablet
Date: Thu, 26 Nov 2026 00:31:11 +0000	[thread overview]
Message-ID: <sashiko-outbox-234477@kernel.org> (raw)
In-Reply-To: <20261126002157.1954799-3-xiaqinghuan@mail.ustc.edu.cn>

Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Medium] arm64: dts: qcom: missing willsemi,wl2868c binding schema in
  target tree
- [Medium] arm64: dts: qcom: missing core boot and power nodes in
  sm8750-lenovo-elden.dts
- [Medium] arm64: dts: qcom: missing vin*-supply properties on pmic@2f
  for active LDOs
--

commit f756b32431d85db31160b09abd11c951962794a8
Author: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>

arm64: dts: qcom: sm8750-lenovo-elden: add Lenovo Legion Y700 Gen4, a Qualcomm SM8750-based tablet

This commit adds the initial devicetree for the Qualcomm SM8750-based Lenovo
Legion Y700 Gen4 tablet, including board clocks, reserved GPIOs, and the
WL2868C camera PMIC on i2c10.

> diff --git a/arch/arm64/boot/dts/qcom/sm8750-lenovo-elden.dts b/arch/arm64/boot/dts/qcom/sm8750-lenovo-elden.dts
> new file mode 100644
> index 0000000000000..73f4452f46120
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/sm8750-lenovo-elden.dts
> @@ -0,0 +1,129 @@
> +// SPDX-License-Identifier: BSD-3-Clause
> +/*
> + * Copyright (c) 2026, Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
> + */
> +
> +/dts-v1/;
> +
> +#include <dt-bindings/gpio/gpio.h>
> +#include "sm8750.dtsi"
> +
> +/ {
> +	model = "Lenovo Legion Y700 Gen4";
> +	compatible = "lenovo,elden", "qcom,sm8750";
> +	chassis-type = "tablet";

[ ... ]

> +	/*
> +	 * VSYS of the camera PMIC is the always-on system rail of the tablet.
> +	 * The SPMI PMICs that generate it are not described yet, so it is
> +	 * modelled as a fixed regulator without a voltage constraint.
> +	 */
> +	wl2868c_vsys: regulator-vsys {
> +		compatible = "regulator-fixed";
> +		regulator-name = "wl2868c_vsys";
> +		regulator-always-on;
> +	};
> +};

[Severity: Medium]
Can this board devicetree boot or operate meaningfully without the core system
PMICs, RPMh regulators, console output, or boot peripherals?

Unlike the sibling SM8750 boards (sm8750-mtp.dts and sm8750-qrd.dts), this file
leaves all peripheral controllers disabled except i2c10, omits chosen
stdout-path, SPMI PMICs, RPMh regulators, storage, USB, and input devices,
models wl2868c_vsys as an unconstrained fixed regulator placeholder, and
defines camera_ldo1 through camera_ldo7 with no consumers in the devicetree.

[ ... ]

> +&i2c10 {
> +	status = "okay";
> +
> +	pmic@2f {
> +		compatible = "willsemi,wl2868c";
> +		reg = <0x2f>;

[Severity: Medium]
Does pmic@2f fail make dtbs_check in this tree because
Documentation/devicetree/bindings/regulator/willsemi,wl2868c.yaml is not
present?

Building and validating sm8750-lenovo-elden.dtb reports a schema match failure
on compatible "willsemi,wl2868c" until the regulator binding lands in the target
branch.

> +		reset-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&camera_pmic_default>;
> +		vsys-supply = <&wl2868c_vsys>;
> +
> +		regulators {
> +			/* Voltages include the offsets programmed by stock firmware. */
> +			camera_ldo1: ldo1 {
> +				regulator-name = "camera_ldo1";
> +				regulator-min-microvolt = <1128000>;
> +				regulator-max-microvolt = <1128000>;
> +			};

[Severity: Medium]
Should pmic@2f specify vin12-supply, vin34-supply, vin5-supply, and vin7-supply
for the populated LDO regulators?

The willsemi,wl2868c binding and driver map LDO1/LDO2 to vin12-supply,
LDO3/LDO4 to vin34-supply, LDO5 to vin5-supply, and LDO7 to vin7-supply, and
only allow omitting an input supply when the board does not use the outputs it
feeds.  Without those properties on pmic@2f, the regulator core cannot resolve
or enable the parent rails feeding camera_ldo1 through camera_ldo5 and
camera_ldo7 and falls back to dummy supplies.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261126002157.1954799-1-xiaqinghuan@mail.ustc.edu.cn?part=2

      reply	other threads:[~2026-11-26  0:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  0:21 [PATCH v9 0/2] arm64: dts: qcom: sm8750-lenovo-elden: add the Lenovo Legion Y700 Gen4 Qianhui Xu
2026-11-26  0:21 ` [PATCH v9 1/2] dt-bindings: arm: qcom: document " Qianhui Xu
2026-11-26  0:21 ` [PATCH v9 2/2] arm64: dts: qcom: sm8750-lenovo-elden: add Lenovo Legion Y700 Gen4, a Qualcomm SM8750-based tablet Qianhui Xu
2026-11-26  0:31   ` sashiko-bot [this message]

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-234477@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=xiaqinghuan@mail.ustc.edu.cn \
    /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;
as well as URLs for NNTP newsgroup(s).