* [PATCH v8 0/2] arm64: dts: qcom: sm8750-lenovo-elden: add the Lenovo Legion Y700 Gen4
@ 2026-11-25 9:13 Qianhui Xu
2026-11-25 9:13 ` [PATCH v8 1/2] dt-bindings: arm: qcom: document " Qianhui Xu
2026-11-25 9:13 ` [PATCH v8 2/2] arm64: dts: qcom: sm8750-lenovo-elden: add Lenovo Legion Y700 Gen4, a Qualcomm SM8750-based tablet Qianhui Xu
0 siblings, 2 replies; 5+ messages in thread
From: Qianhui Xu @ 2026-11-25 9:13 UTC (permalink / raw)
To: andersson, konradybcio
Cc: abelvesa, mitltlatltl, robh, krzk+dt, conor+dt, devicetree,
linux-arm-msm, linux-kernel
This adds a device tree for the Lenovo Legion Y700 Gen4 (TB322FC), an
SM8750 tablet, together with the board compatible it needs. The device
tree itself is unchanged from v7; what is new is that 1/2 now documents
"lenovo,elden" in the Qualcomm board binding, which v7 forgot.
Why that is a real gap and not cosmetics: with the device tree alone,
dtbs_check rejects the root node,
sm8750-lenovo-elden.dtb: / (lenovo,elden): compatible: 'oneOf'
conditional failed ... 'lenovo,elden' is not one of [...]
sm8750-lenovo-elden.dtb: /: failed to match any schema with compatible:
['lenovo,elden', 'qcom,sm8750']
so a board that builds still fails schema validation. Adding the one line
to the binding removes that diagnostic, and the same three SM8750 device
trees then compile and validate clean (see "Checks" below).
Relation to Pengyu Luo's series
The same file was posted before, by Pengyu Luo, as "[PATCH v2 0/2]
Introduce Lenovo Legion Y700 Gen4" (2026-07-26, 1170 lines, based on
sm8750-qrd). That series did not go in: it is at changes-requested, Abel
Vesa and Konrad Dybcio both reviewed it, and there is no v3.
This posting supersedes it, with the author of that series in the loop:
we agreed on 2026-10-25 to squash the board descriptions and send the whole
thing this way. The binding entry in 1/2 is the same line Pengyu added in
his v2, so credit belongs to him for it - if a trailer is preferred,
say which (Co-developed-by needs his Signed-off-by as well) and I will
add it in v9.
What is in here, and what is not
Included, in one commit as asked in the v6 review ("one logical action,
one commit"): the board compatible and chassis type, the GPIO ranges the
boot firmware reserves, the board clocks the SM8750 dtsi consumes (XO,
sleep, and the two divided CXO derivatives), and the WL2868C camera PMIC
on i2c10 with the regulator voltages the stock firmware programs.
Not included, and not claimed to work: Wi-Fi/Bluetooth, camera sensors,
sensors on the ADSP, audio, and the two USB Type-C receptacles. The USB
side needs the DWC3 two-connector series, which is in review separately
("[PATCH v15 0/3] usb: dwc3: support two connectors sharing one HS data
bus"), so it is deliberately not part of this posting.
Known dependencies and gaps
- The WL2868C regulator binding and driver are not in v7.4-rc3 yet
(accepted into the regulator tree for 7.5 - commit 84e67d2ee13f and
602f57223457). Until that lands, dtbs_check reports one diagnostic for
this board:
/soc@0/geniqup@8c0000/i2c@888000/pmic@2f: failed to match any schema
with compatible: ['willsemi,wl2868c']
All other diagnostics are zero.
- The SPMI PMICs, the RPMh regulators and the console are still not
described, so this is a board description that boots nothing by itself;
it is the board's hardware description, sent ahead of the pieces that
will consume it. This was raised in the v6 thread and is unchanged.
Checks
All on a clean worktree of v7.4-rc3 (aebb727447), 2026-11-25:
- git apply: 1/2 and 2/2 apply without offset or fuzz; the resulting
blobs equal the "index" right-hand sides (qcom.yaml a32cfb30a1,
Makefile e0b65a36c5, board file 73f4452f46).
- checkpatch.pl --strict --no-signoff - <patch: 1/2 0 errors 0 warnings
0 checks; 2/2 0 errors 1 warning ("added, moved or deleted file(s), does
MAINTAINERS need updating?", the usual new-file prompt).
- dtbs_check with CHECK_DTBS=1 on qcom/sm8750-lenovo-elden.dtb,
qcom/sm8750-mtp.dtb and qcom/sm8750-qrd.dtb: all three compile, the
diagnostic count for the board is 1 (the WL2868C binding, above) and 0
for mtp/qrd.
- dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/arm/
qcom.yaml: rc=0, no errors.
Testing on hardware
The device tree describes the author's own tablet, which runs a
vendor-derived 7.3 kernel; that is where the GPIO ranges, board clocks and
regulator voltages come from (read back from the running stock firmware).
The v7.4-rc3 tree this series is based on was not booted on the tablet:
without the SPMI PMICs, RPMh regulators and console described, it cannot
reach a shell there, so no boot claim is made for it.
Disclosure
This series was prepared with the help of an LLM coding assistant; the
trees, the checks above and every number in this letter were run and read
by the author, who is responsible for the content.
Qianhui Xu
Changes since v7
- 1/2 is new: document "lenovo,elden" in the Qualcomm board binding, so
the board's compatible validates. The line is the one Pengyu Luo added
in his v2; see "Relation to Pengyu Luo's series".
- 2/2 is the v7 patch unchanged (same diff, same blobs); only the
"Changes" section and the version number differ.
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] 5+ messages in thread
* [PATCH v8 1/2] dt-bindings: arm: qcom: document the Lenovo Legion Y700 Gen4
2026-11-25 9:13 [PATCH v8 0/2] arm64: dts: qcom: sm8750-lenovo-elden: add the Lenovo Legion Y700 Gen4 Qianhui Xu
@ 2026-11-25 9:13 ` Qianhui Xu
2026-11-25 12:03 ` Krzysztof Kozlowski
2026-11-25 9:13 ` [PATCH v8 2/2] arm64: dts: qcom: sm8750-lenovo-elden: add Lenovo Legion Y700 Gen4, a Qualcomm SM8750-based tablet Qianhui Xu
1 sibling, 1 reply; 5+ messages in thread
From: Qianhui Xu @ 2026-11-25 9:13 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 [flat|nested] 5+ messages in thread
* [PATCH v8 2/2] arm64: dts: qcom: sm8750-lenovo-elden: add Lenovo Legion Y700 Gen4, a Qualcomm SM8750-based tablet
2026-11-25 9:13 [PATCH v8 0/2] arm64: dts: qcom: sm8750-lenovo-elden: add the Lenovo Legion Y700 Gen4 Qianhui Xu
2026-11-25 9:13 ` [PATCH v8 1/2] dt-bindings: arm: qcom: document " Qianhui Xu
@ 2026-11-25 9:13 ` Qianhui Xu
2026-11-25 12:03 ` Krzysztof Kozlowski
1 sibling, 1 reply; 5+ messages in thread
From: Qianhui Xu @ 2026-11-25 9:13 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 v8:
- No change to the device tree itself; the series is now two patches, with
the board binding entry first. 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 [flat|nested] 5+ messages in thread
* Re: [PATCH v8 2/2] arm64: dts: qcom: sm8750-lenovo-elden: add Lenovo Legion Y700 Gen4, a Qualcomm SM8750-based tablet
2026-11-25 9:13 ` [PATCH v8 2/2] arm64: dts: qcom: sm8750-lenovo-elden: add Lenovo Legion Y700 Gen4, a Qualcomm SM8750-based tablet Qianhui Xu
@ 2026-11-25 12:03 ` Krzysztof Kozlowski
0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-25 12:03 UTC (permalink / raw)
To: Qianhui Xu
Cc: andersson, konradybcio, abelvesa, mitltlatltl, robh, krzk+dt,
conor+dt, devicetree, linux-arm-msm, linux-kernel,
Krzysztof Kozlowski
On 2026-11-25 17:13 +0800, Qianhui Xu wrote:
> 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 v8:
> - No change to the device tree itself; the series is now two patches, with
> the board binding entry first. See the cover letter.
>
Your changelog or cover letter should be explicit about waiting on
bindings, instead of wall of text.
Best regards,
Krzysztof
--
Krzysztof Kozlowski <krzk@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v8 1/2] dt-bindings: arm: qcom: document the Lenovo Legion Y700 Gen4
2026-11-25 9:13 ` [PATCH v8 1/2] dt-bindings: arm: qcom: document " Qianhui Xu
@ 2026-11-25 12:03 ` Krzysztof Kozlowski
0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-25 12:03 UTC (permalink / raw)
To: Qianhui Xu
Cc: andersson, konradybcio, abelvesa, mitltlatltl, robh, krzk+dt,
conor+dt, devicetree, linux-arm-msm, linux-kernel,
Krzysztof Kozlowski
On 2026-11-25 17:13 +0800, Qianhui Xu wrote:
> 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(+)
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Best regards,
Krzysztof
--
Krzysztof Kozlowski <krzk@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-25 12:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 9:13 [PATCH v8 0/2] arm64: dts: qcom: sm8750-lenovo-elden: add the Lenovo Legion Y700 Gen4 Qianhui Xu
2026-11-25 9:13 ` [PATCH v8 1/2] dt-bindings: arm: qcom: document " Qianhui Xu
2026-11-25 12:03 ` Krzysztof Kozlowski
2026-11-25 9:13 ` [PATCH v8 2/2] arm64: dts: qcom: sm8750-lenovo-elden: add Lenovo Legion Y700 Gen4, a Qualcomm SM8750-based tablet Qianhui Xu
2026-11-25 12:03 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®