* [PATCH v10 0/2] arm64: dts: qcom: sm8750-lenovo-elden: add the Lenovo Legion Y700 Gen4
@ 2026-11-26 5:20 Qianhui Xu
2026-11-26 5:20 ` [PATCH v10 1/2] dt-bindings: arm: qcom: document " Qianhui Xu
2026-11-26 5:20 ` [PATCH v10 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 5:20 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.
v10 changes one thing: the camera PMIC on i2c10 now describes its inputs.
1/2 is unchanged since v8 and needs no re-review.
Waiting on bindings
===================
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.
Merge order: 1/2 has no dependency and can be applied right away, 2/2
only after the binding 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: with the binding applied
on top, dtbs_check reports 0 diagnostics for this board; without it,
exactly one, "failed to match any schema with compatible:
['willsemi,wl2868c']" on pmic@2f.
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. Unchanged since v8.
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.
What v10 changes in 2/2
=======================
The WL2868C node declared no input supply although this board drives six
of its seven outputs, which the binding only allows for inputs whose
outputs are unused. It now declares them:
vin12-supply = <&wl2868c_vsys>;
vin34-supply = <&wl2868c_vsys>;
vin5-supply = <&wl2868c_vsys>;
vin7-supply = <&wl2868c_vsys>;
All four point at the same fixed regulator that vsys-supply already used.
That is not a shortcut: the four LDO inputs and the VSYS pin of this chip
are fed from the tablet's always-on system rail, and that rail is modelled
once, as a regulator-fixed without voltage constraints, because the SPMI
PMICs that generate it are not described yet. When they are, the rail and
these properties move to the real regulator in one step, exactly as
vsys-supply will. Declaring the same supply phandle for several inputs of
one chip is the shape the isl9305 binding has used for years
(Documentation/devicetree/bindings/regulator/isl9305.txt: VINDCD1-supply,
VINDCD2-supply, VINLDO1-supply and VINLDO2-supply all point at
&system_power).
VIN6 is not declared, in line with LDO6 being not wired out on this board;
the LDO6 node is absent too, as in v9.
Note what this does and does not change at runtime. The driver only
enables the control supply (vsys, falling back to vin7), so the board
already worked with the inputs undeclared: the regulator core substitutes
a dummy supply for an undeclared input and nothing fails. What the
properties change is the description: the DT now records where the LDO
inputs come from instead of leaving that unstated.
Review response: v9 2/2
=======================
sashiko posted three [Medium] notes against v9 2/2, all three answered
here; only the third one needed a change.
1. "missing willsemi,wl2868c binding schema in target tree"
True of the base, and deliberate: the binding is 84e67d2ee13f in
regulator.git for-7.5 and arrives with the 7.5 merge window. The
dependency and the merge order are at the top of this letter; nothing
in this series can change it.
2. "missing core boot and power nodes in sm8750-lenovo-elden.dts"
Correct, and out of scope: the SPMI PMICs, the RPMh regulators and the
console are the "not described, not claimed" part of this board, as
stated since v6. This series adds the board skeleton and the camera
PMIC; a tree with this applied builds and validates but boots nothing
by itself.
3. "missing vin*-supply properties on pmic@2f for active LDOs"
Accepted, fixed in v10: see "What v10 changes in 2/2". LDO1, LDO2
(VIN12), LDO3, LDO4 (VIN34), LDO5 (VIN5) and LDO7 (VIN7) are all used
by this board, so all four inputs are now declared. The binding keeps
them optional because they need not be described when the outputs they
feed are unused, which is not this board's case.
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; git am on the same base:
both commits applied, resulting blobs equal the patch "index" lines
(qcom.yaml a32cfb30a1, Makefile e0b65a36c5, board file d8e9ab1272).
- checkpatch.pl --strict --no-signoff: 1/2 and 2/2 both 0 errors 0
warnings 0 checks.
- dtbs_check with CHECK_DTBS=1 on sm8750-lenovo-elden, sm8750-mtp and
sm8750-qrd, with the willsemi,wl2868c binding applied: three builds,
0 diagnostics for all three, the board included.
- DTB of the board differs from v9's only in the five supply properties
and the regulator comment: both DTBs decompiled and diffed.
- 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 v9
(v9: https://lore.kernel.org/all/20261126002157.1954799-1-xiaqinghuan@mail.ustc.edu.cn/)
- 2/2 declares the camera PMIC inputs now: vin12-supply, vin34-supply,
vin5-supply and vin7-supply, all pointing at the always-on system rail
that vsys-supply already used, plus a comment saying which pins that
rail feeds. Reported against v9 2/2: "missing vin*-supply properties on
pmic@2f for active LDOs". Why the four share one phandle, and what it
does and does not change at runtime, is in "What v10 changes in 2/2".
- The letter answers the other two [Medium] notes of that review (binding
absent from the base tree, boot/power nodes absent) in "Review
response", and keeps the "Waiting on bindings" section Krzysztof asked
for in v8.
- Nothing else changed: 1/2 is unchanged since v8 and needs no re-review;
2/2's compatible, clocks, LDO voltages and reserved GPIO ranges are
unchanged since v9.
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 | 135 ++++++++++++++++++
3 files changed, 137 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 v10 1/2] dt-bindings: arm: qcom: document the Lenovo Legion Y700 Gen4
2026-11-26 5:20 [PATCH v10 0/2] arm64: dts: qcom: sm8750-lenovo-elden: add the Lenovo Legion Y700 Gen4 Qianhui Xu
@ 2026-11-26 5:20 ` Qianhui Xu
2026-11-26 5:20 ` [PATCH v10 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 5:20 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>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
---
Changes in v10:
- Unchanged since v9. Carry the Acked-by Krzysztof gave on v8 1/2
(2026-11-25T12:04:02Z): v9 was posted after it but missed the tag.
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 v10 2/2] arm64: dts: qcom: sm8750-lenovo-elden: add Lenovo Legion Y700 Gen4, a Qualcomm SM8750-based tablet
2026-11-26 5:20 [PATCH v10 0/2] arm64: dts: qcom: sm8750-lenovo-elden: add the Lenovo Legion Y700 Gen4 Qianhui Xu
2026-11-26 5:20 ` [PATCH v10 1/2] dt-bindings: arm: qcom: document " Qianhui Xu
@ 2026-11-26 5:20 ` Qianhui Xu
2026-11-26 5:30 ` sashiko-bot
1 sibling, 1 reply; 4+ messages in thread
From: Qianhui Xu @ 2026-11-26 5:20 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.
The camera PMIC has five inputs on this board: VSYS, which powers its
control logic and its I2C interface, and VIN12, VIN34, VIN5 and VIN7, which
feed the LDOs in use. The SPMI PMICs that generate those rails are not
described yet, so all five are modelled as one always-on fixed regulator
standing in for them; the board's actual input wiring is not documented in
the sources this file was derived from. VIN6 is left out together with
LDO6.
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 v10:
- Describe the camera PMIC inputs. The binding keeps vin12/vin34/vin5/vin6/
vin7-supply optional, but only because a board need not describe an input
whose outputs it does not use; this board uses LDO1, LDO2, LDO3, LDO4,
LDO5 and LDO7, so VIN12, VIN34, VIN5 and VIN7 are now declared. They all
point at the always-on system rail that vsys-supply already used, since
the SPMI PMICs that generate it are not described yet. Reported against
v9 2/2: "missing vin*-supply properties on pmic@2f for active LDOs".
- The comment on that regulator now says which pins it feeds.
- Everything else is as in v9: same compatible, same clocks, same LDO
voltages, same reserved GPIO ranges.
arch/arm64/boot/dts/qcom/Makefile | 1 +
.../boot/dts/qcom/sm8750-lenovo-elden.dts | 135 ++++++++++++++++++
2 files changed, 136 insertions(+)
create mode 100644 arch/arm64/boot/dts/qcom/sm8750-lenovo-elden.dts
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..d8e9ab1272
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/sm8750-lenovo-elden.dts
@@ -0,0 +1,136 @@
+// 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>;
+ };
+ };
+
+ /*
+ * Always-on input rail of the camera PMIC: VSYS (control logic and
+ * I2C) and the four LDO inputs. The SPMI PMICs that generate it are
+ * not described yet, so it is modelled as one fixed regulator without
+ * a voltage constraint, standing in for those rails; the board's
+ * actual input wiring is not documented in the sources this file
+ * derives from.
+ */
+ 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>;
+ vin12-supply = <&wl2868c_vsys>;
+ vin34-supply = <&wl2868c_vsys>;
+ vin5-supply = <&wl2868c_vsys>;
+ vin7-supply = <&wl2868c_vsys>;
+ 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;
+ };
+};
--
2.53.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v10 2/2] arm64: dts: qcom: sm8750-lenovo-elden: add Lenovo Legion Y700 Gen4, a Qualcomm SM8750-based tablet
2026-11-26 5:20 ` [PATCH v10 2/2] arm64: dts: qcom: sm8750-lenovo-elden: add Lenovo Legion Y700 Gen4, a Qualcomm SM8750-based tablet Qianhui Xu
@ 2026-11-26 5:30 ` sashiko-bot
0 siblings, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-11-26 5:30 UTC (permalink / raw)
To: Qianhui Xu; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 2 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
--
commit d9b5cd8f14c60fb013fdef6aa4211883343dd78a
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 devicetree for the Lenovo Legion Y700 Gen4 tablet with
board clocks, reserved GPIO ranges, and a 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..5fb094dd7efc5
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/sm8750-lenovo-elden.dts
> @@ -0,0 +1,136 @@
[ ... ]
> +/ {
> + model = "Lenovo Legion Y700 Gen4";
> + compatible = "lenovo,elden", "qcom,sm8750";
> + chassis-type = "tablet";
[ ... ]
> + /*
> + * Always-on input rail of the camera PMIC: VSYS (control logic and
> + * I2C) and the four LDO inputs. The SPMI PMICs that generate it are
> + * not described yet, so it is modelled as one fixed regulator without
> + * a voltage constraint, standing in for those rails; the board's
> + * actual input wiring is not documented in the sources this file
> + * derives from.
> + */
> + wl2868c_vsys: regulator-vsys {
> + compatible = "regulator-fixed";
> + regulator-name = "wl2868c_vsys";
> + regulator-always-on;
> + };
> +};
[Severity: Medium]
Should this board devicetree include the core boot peripherals and system
power rails (such as chosen/stdout-path, SPMI PMICs, RPMh regulators under
apps_rsc, boot storage, or USB) rather than only describing an isolated
camera PMIC whose input supplies are stubbed to wl2868c_vsys and whose LDO
outputs have no consumers? Because sm8750.dtsi leaves UARTs, storage, USB,
and display blocks disabled by default, this devicetree lacks the core
hardware description needed to boot or operate the board.
> +
> +&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>;
> + vin12-supply = <&wl2868c_vsys>;
> + vin34-supply = <&wl2868c_vsys>;
> + vin5-supply = <&wl2868c_vsys>;
> + vin7-supply = <&wl2868c_vsys>;
> + vsys-supply = <&wl2868c_vsys>;
[Severity: Medium]
Is the binding schema for "willsemi,wl2868c" present in the target tree?
Documentation/devicetree/bindings/regulator/willsemi,wl2868c.yaml has not
landed on this branch yet, so checkpatch reports an undocumented DT string
and make dtbs_check fails schema validation on pmic@2f.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261126052057.1544590-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 5:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 5:20 [PATCH v10 0/2] arm64: dts: qcom: sm8750-lenovo-elden: add the Lenovo Legion Y700 Gen4 Qianhui Xu
2026-11-26 5:20 ` [PATCH v10 1/2] dt-bindings: arm: qcom: document " Qianhui Xu
2026-11-26 5:20 ` [PATCH v10 2/2] arm64: dts: qcom: sm8750-lenovo-elden: add Lenovo Legion Y700 Gen4, a Qualcomm SM8750-based tablet Qianhui Xu
2026-11-26 5:30 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox