Devicetree
 help / color / mirror / Atom feed
* [PATCH v9 0/2] arm64: dts: qcom: sm8750-lenovo-elden: add the Lenovo Legion Y700 Gen4
@ 2026-11-26  0:21 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
  0 siblings, 2 replies; 4+ messages in thread
From: Qianhui Xu @ 2026-11-26  0:21 UTC (permalink / raw)
  To: andersson, konradybcio
  Cc: abelvesa, mitltlatltl, robh, krzk+dt, conor+dt, devicetree,
	linux-arm-msm, linux-kernel

Adds the device tree for the Lenovo Legion Y700 Gen4 (TB322FC), an SM8750
tablet, and the board compatible it needs.  The device tree is byte for
byte the one posted as v7 and v8; v9 changes this letter and the changelog
of 2/2, nothing else.

Waiting on bindings
===================
Stated up front, as requested:

  2/2 waits on willsemi,wl2868c
    Documentation/devicetree/bindings/regulator/willsemi,wl2868c.yaml
    Landed as 84e67d2ee13f (binding) and 602f57223457 (driver) in
    regulator.git for-7.5; not in v7.4-rc3, the base of this series.  It
    appears in mainline with the 7.5 merge window.

  Merge order
    1/2 (arm/qcom.yaml) has no dependency and can be applied right away.
    2/2 only after the binding above is in the tree.  Taking 1/2 now and
    2/2 after 7.5-rc1 is fine with me and needs no repost.

  Cost of taking 2/2 early
    Measured on v7.4-rc3, not assumed: with the binding applied on top,
    dtbs_check reports 0 diagnostics for this board; without it, exactly
    one, from that compatible:

      sm8750-lenovo-elden.dtb: /soc@0/geniqup@8c0000/i2c@888000/pmic@2f:
      failed to match any schema with compatible: ['willsemi,wl2868c']

The USB Type-C receptacles are not part of this series for the same
reason: they wait on another binding, which is in review and not merged:

  [PATCH v16 0/3] usb: dwc3: support two connectors sharing one HS data bus
  https://lore.kernel.org/linux-usb/20261125142309.3265777-1-xiaqinghuan@mail.ustc.edu.cn/

The two patches
===============
1/2 documents "lenovo,elden" in the Qualcomm board binding.  Without that
line dtbs_check rejects the board's root node, so a tree that builds still
fails validation; it is the line v7 forgot.
2/2 is the board itself, in one commit as asked in the v6 review:
compatible, chassis type, the GPIO ranges the boot firmware reserves, the
board clocks the SM8750 dtsi consumes, and the WL2868C camera PMIC on
i2c10 with the voltages the stock firmware programs.

Relation to Pengyu Luo's posting
================================
The board file was posted by Pengyu Luo in July ("[PATCH v2 0/2] Introduce
Lenovo Legion Y700 Gen4"), which is at changes-requested with no v3.  We
agreed on 2026-10-25 that I send it, with him in the loop, so this
supersedes his v2.  The line in 1/2 is his: say which trailer form is
wanted and I will add it (Co-developed-by needs his Signed-off-by too).

Not described, not claimed
==========================
Wi-Fi/Bluetooth, camera sensors, ADSP sensors, audio, USB Type-C.  Neither
the SPMI PMICs, the RPMh regulators nor the console are described, so this
board description boots nothing by itself; that is the v6 comment, still
true and not addressed here.

Checks: v7.4-rc3 (aebb727447) worktree, 2026-11-26
==================================================
- git apply 1/2, 2/2: clean, no offset, no fuzz; resulting blobs equal the
  patch "index" lines (qcom.yaml a32cfb30a1, Makefile e0b65a36c5, board
  file 73f4452f46).
- checkpatch.pl --strict --no-signoff: 1/2 0 errors 0 warnings 0 checks;
  2/2 0 errors 1 warning 0 checks, the warning being the new-file
  "does MAINTAINERS need updating?" prompt.
- dt_binding_check, full tree: rc=0, no lint/style errors (5420 schemas)
  and no output for arm/qcom.yaml.
- dtbs_check with CHECK_DTBS=1 on sm8750-lenovo-elden, sm8750-mtp and
  sm8750-qrd: three builds; diagnostics 1 / 0 / 0, and 0 for the board
  once the willsemi,wl2868c binding above is applied.
- No boot claim: the tablet runs a vendor 7.3 kernel and this tree was not
  booted on it.

Disclosure: prepared with an LLM coding assistant; the trees, the checks
and every number in this letter were run and read by the author, who is
responsible for the content.

Qianhui Xu
---
Changes since v8
 (v8: https://lore.kernel.org/all/20261125091309.124354-1-xiaqinghuan@mail.ustc.edu.cn/)
- The letter now says "this series waits on bindings" explicitly, on its
  own section, and names them: willsemi,wl2868c, its file, the commits it
  landed as, which tree, and the merge order for 1/2 and 2/2.  The rest of
  the letter is cut accordingly (Krzysztof: "should be explicit about
  waiting on bindings, instead of wall of text").
- 2/2's changelog says the same thing on the patch itself.
- 2/2 also answers the two [Medium] notes sashiko posted against v8 2/2:
  the willsemi,wl2868c schema is the binding above (it arrives with 7.5 and
  needs nothing from this series), and the absent SPMI PMIC / RPMh
  regulators / console / storage nodes are the "not described" section of
  this letter, as in v6 - out of scope here.
- No diff change: 1/2 is unchanged since v8 and 2/2's diff is
  byte-identical to v7 and v8 (cmp on the "diff --git" section).

Qianhui Xu (2):
  dt-bindings: arm: qcom: document the Lenovo Legion Y700 Gen4
  arm64: dts: qcom: sm8750-lenovo-elden: add Lenovo Legion Y700 Gen4, a
    Qualcomm SM8750-based tablet

 .../devicetree/bindings/arm/qcom.yaml         |   1 +
 arch/arm64/boot/dts/qcom/Makefile             |   1 +
 .../boot/dts/qcom/sm8750-lenovo-elden.dts     | 129 +++++++++++++
 3 files changed, 131 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/sm8750-lenovo-elden.dts

-- 
2.53.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v9 1/2] dt-bindings: arm: qcom: document the Lenovo Legion Y700 Gen4
  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 ` 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
  1 sibling, 0 replies; 4+ messages in thread
From: Qianhui Xu @ 2026-11-26  0:21 UTC (permalink / raw)
  To: andersson, konradybcio
  Cc: abelvesa, mitltlatltl, robh, krzk+dt, conor+dt, devicetree,
	linux-arm-msm, linux-kernel

The Lenovo Legion Y700 Gen4 is an SM8750 tablet that ships with the
lenovo,elden board compatible. Add it to the SM8750 section of the
Qualcomm board binding.

Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
---
 Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml
index 121ca557ce..a32cfb30a1 100644
--- a/Documentation/devicetree/bindings/arm/qcom.yaml
+++ b/Documentation/devicetree/bindings/arm/qcom.yaml
@@ -1220,6 +1220,7 @@ properties:
 
       - items:
           - enum:
+              - lenovo,elden
               - qcom,sm8750-mtp
               - qcom,sm8750-qrd
           - const: qcom,sm8750
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v9 2/2] arm64: dts: qcom: sm8750-lenovo-elden: add Lenovo Legion Y700 Gen4, a Qualcomm SM8750-based tablet
  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 ` Qianhui Xu
  2026-11-26  0:31   ` sashiko-bot
  1 sibling, 1 reply; 4+ messages in thread
From: Qianhui Xu @ 2026-11-26  0:21 UTC (permalink / raw)
  To: andersson, konradybcio
  Cc: abelvesa, mitltlatltl, robh, krzk+dt, conor+dt, devicetree,
	linux-arm-msm, linux-kernel

The Lenovo Legion Y700 Gen4 (TB322FC) is an SM8750 tablet.  Add its
devicetree with the board compatible, the chassis type, the GPIOs the boot
firmware reserves and the board clocks, which the SM8750 dtsi consumes: the
XO and sleep clocks and the two divided CXO derivatives, as on the other
SM8750 boards.

The camera devices are powered by a WL2868C camera PMIC on i2c10: LDO1
feeds the rear sensor DVDD, LDO2 the front sensor DVDD, LDO3 the front
sensor AVDD, LDO4 the rear sensor AVDD, LDO5 the VCM VDD, LDO7 the DOVDD of
both sensors and the VCM VDDIO, all at fixed voltages including the offsets
programmed by the stock firmware.  LDO6 is not wired out on this board.

This is one logical action - "add this new hardware" - so the board and the
regulators it carries are described in a single commit.

Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
---
Changes in v9:
- State the dependency explicitly, as asked: this patch is waiting on the
  willsemi,wl2868c regulator binding,
  Documentation/devicetree/bindings/regulator/willsemi,wl2868c.yaml, which
  is in regulator.git for-7.5 (84e67d2ee13f binding, 602f57223457 driver)
  and not in v7.4-rc3.  Until it is in the tree, dtbs_check reports one
  diagnostic here, on pmic@2f: "failed to match any schema with
  compatible: ['willsemi,wl2868c']".  Merge this patch after that binding;
  1/2 has no such dependency and can go in on its own.
- No change to the device tree: the diff is byte-identical to v7 and v8.

Changes in v8:
- The series is split in two patches, with the board binding entry first;
  no change to the device tree itself.  See the cover letter.

Still open from the v6 thread (unchanged here, no way to validate them):
SPMI PMIC, RPMh regulators and console are not described, so this is still
the boot-infrastructure-less skeleton the v6 review commented on.

diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile
index 88230c4e00..e0b65a36c5 100644
--- a/arch/arm64/boot/dts/qcom/Makefile
+++ b/arch/arm64/boot/dts/qcom/Makefile
@@ -453,6 +453,7 @@ dtb-$(CONFIG_ARCH_QCOM)	+= sm8650-hdk.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm8650-mtp.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm8650-qrd.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm8650-valve-deckard.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= sm8750-lenovo-elden.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm8750-mtp.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm8750-qrd.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= talos-evk.dtb
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 0000000000..73f4452f46
--- /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";
+
+	clocks {
+		xo_board: xo-board {
+			compatible = "fixed-clock";
+			clock-frequency = <76800000>;
+			#clock-cells = <0>;
+		};
+
+		sleep_clk: sleep-clk {
+			compatible = "fixed-clock";
+			clock-frequency = <32000>;
+			#clock-cells = <0>;
+		};
+
+		bi_tcxo_div2: bi-tcxo-div2-clk {
+			compatible = "fixed-factor-clock";
+			#clock-cells = <0>;
+
+			clocks = <&rpmhcc RPMH_CXO_CLK>;
+			clock-mult = <1>;
+			clock-div = <2>;
+		};
+
+		bi_tcxo_ao_div2: bi-tcxo-ao-div2-clk {
+			compatible = "fixed-factor-clock";
+			#clock-cells = <0>;
+
+			clocks = <&rpmhcc RPMH_CXO_CLK_A>;
+			clock-mult = <1>;
+			clock-div = <2>;
+		};
+	};
+
+	/*
+	 * 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;
+	};
+};
+
+&gpi_dma2 {
+	status = "okay";
+};
+
+&qupv3_2 {
+	status = "okay";
+};
+
+&i2c10 {
+	status = "okay";
+
+	pmic@2f {
+		compatible = "willsemi,wl2868c";
+		reg = <0x2f>;
+		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>;
+			};
+
+			camera_ldo2: ldo2 {
+				regulator-name = "camera_ldo2";
+				regulator-min-microvolt = <1288000>;
+				regulator-max-microvolt = <1288000>;
+			};
+
+			camera_ldo3: ldo3 {
+				regulator-name = "camera_ldo3";
+				regulator-min-microvolt = <2816000>;
+				regulator-max-microvolt = <2816000>;
+			};
+
+			camera_ldo4: ldo4 {
+				regulator-name = "camera_ldo4";
+				regulator-min-microvolt = <2824000>;
+				regulator-max-microvolt = <2824000>;
+			};
+
+			camera_ldo5: ldo5 {
+				regulator-name = "camera_ldo5";
+				regulator-min-microvolt = <2808000>;
+				regulator-max-microvolt = <2808000>;
+			};
+
+			/* LDO6 is not wired out on this board. */
+			camera_ldo7: ldo7 {
+				regulator-name = "camera_ldo7";
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+			};
+		};
+	};
+};
+
+&tlmm {
+	gpio-reserved-ranges = <39 1>, <74 1>;
+
+	camera_pmic_default: camera-pmic-default-state {
+		pins = "gpio126";
+		function = "gpio";
+		bias-disable;
+	};
+};


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v9 2/2] arm64: dts: qcom: sm8750-lenovo-elden: add Lenovo Legion Y700 Gen4, a Qualcomm SM8750-based tablet
  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
  0 siblings, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-11-26  0:31 UTC (permalink / raw)
  To: Qianhui Xu; +Cc: devicetree, robh, conor+dt

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-26  0:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox