Skip to contentSkip to conversation

arm64: dts: qcom: Add ASUS Vivobook S16 S3607QA

PATCH New Ingo A. Kubbilun 2 participants 4 messages Nov 20

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v2 cover arm64: dts: qcom: Add ASUS Vivobook S16 S3607QA

This series adds support for the ASUS Vivobook S 16 S3607QA, a 16" laptop based on the Snapdragon X X1-26-100 (X1P42100, Purwa) with 16 GB RAM.

The device tree was derived from the Windows ACPI tables (DSDT, PEP) and the existing X1 laptop device trees (Vivobook S15, Zenbook A14).

Working: eDP panel and backlight, GPU (Adreno X1-45), HDMI, USB-A, USB-C, NVMe, Wi-Fi/BT (WCN6855 NFA765), keyboard, touchpad, lid switch, battery, speakers (2x WSA8845), headphone jack (WCD9385), efivars/RTC via QSEECOM, CPU frequency scaling.

Not enabled yet: video codec (iris; the Windows firmware is rejected) and the camera.

Dependency: Wi-Fi needs the NFA765 firmware, which is now selected by ath11k instead of the deprecated firmware-name property:
"wifi: ath11k: use the NFA765 firmware on the ASUS Vivobook S16 S3607QA", sent separately to linux-wireless. Without it, Wi-Fi falls back to the default WCN6855 firmware, which crashes on this module.

Tooling: an AI coding assistant (Anthropic Claude) analyzed the ACPI tables and drafted the device tree; I reviewed, built (dtbs_check clean) and tested everything on the device. v2 has been running daily for over a week on next-20261112.

EL2: the EL2 variant boots via slbounce (VHE, KVM available). At EL2 the ADSP/CDSP and QSEECOM don't come up (the SCM calls fail with -22), so there is no audio, battery data or efivars there; I have not tried qebspil yet. With the default EL1 boot, everything listed above works.

Changes in v2:
- Add the EL2 DTB target (x1p42100-asus-vivobook-s16-el2.dtb)
- Sort nodes alphabetically, drop a provenance comment
- Drop the unused i2c1 and qupv3_2 nodes
- Drop the deprecated firmware-name from the Wi-Fi node; NFA765
firmware selection moved to ath11k (see above)
- Link to v1: https://lore.kernel.org/r/[email protected]

Ingo A. Kubbilun (2):
dt-bindings: arm: qcom: add ASUS Vivobook S16 S3607QA
arm64: dts: qcom: add ASUS Vivobook S16 S3607QA (X1P42100)

 .../devicetree/bindings/arm/qcom.yaml         |    1 +
 arch/arm64/boot/dts/qcom/Makefile             |    2 +
 .../dts/qcom/x1p42100-asus-vivobook-s16.dts   | 2115 +++++++++++++++++
 3 files changed, 2118 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/x1p42100-asus-vivobook-s16.dts

base-commit: 6d582d78fad9d828e575ca0cdcff8ea47a77220b
prerequisite-patch-id: ae6c33cce4db2472b5aa360b5e6cbf29763cfd69
prerequisite-patch-id: 85373c0c0ff98ec4cda496c612feffd19f715d52
prerequisite-patch-id: d752bf7c6f8768fa3d4d39387455c3d4551a8481

Signature · 1 line
2.47.3
#1 lore raw

PATCH v2 1/2 dt-bindings: arm: qcom: add ASUS Vivobook S16 S3607QA

Document the ASUS Vivobook S 16 S3607QA, a laptop based on the Snapdragon X X1-26-100 (X1P42100, Purwa).

Developed with the help of an AI coding assistant (Anthropic Claude), which drafted the changes from the Windows ACPI tables, existing device trees and test logs; reviewed, built and tested on the device by the submitter.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
index 7ffa4f69987f..2390568de805 100644
@@ -1350,6 +1350,7 @@ properties:
       - items:
           - enum:
               - asus,vivobook-s15-x1p4
+              - asus,vivobook-s16-s3607qa
               - hp,omnibook-x14-fe1
               - lenovo,thinkbook-16
               - qcom,x1p42100-crd
Signature · 1 line
2.47.3
#2 lore raw

PATCH v2 2/2 arm64: dts: qcom: add ASUS Vivobook S16 S3607QA (X1P42100)

In reply to Ingo A. Kubbilun

Add the device tree for the ASUS Vivobook S 16 S3607QA, a 16" laptop based on the Snapdragon X X1-26-100 (X1P42100, Purwa): BOE eDP panel with PMIC PWM backlight, Adreno X1-45, WCN6855 NFA765 Wi-Fi/BT, 2x WSA8845 speakers and a WCD9385 headset codec, NVMe, USB-A, USB-C and HDMI.

It was derived from the Windows ACPI tables of the device and the Vivobook S15 device tree.

The CPU thermal zones get 90 C passive trips with cpufreq cooling: the SoC dtsi only has critical trips, and without an EC fan driver the machine reached its thermal limit under sustained load.

Developed with the help of an AI coding assistant (Anthropic Claude), which drafted the changes from the Windows ACPI tables, existing device trees and test logs; reviewed, built and tested on the device by the submitter.

---
 arch/arm64/boot/dts/qcom/Makefile             |    2 +
 .../dts/qcom/x1p42100-asus-vivobook-s16.dts   | 2115 +++++++++++++++++
 2 files changed, 2117 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/x1p42100-asus-vivobook-s16.dts
arch/arm64/boot/dts/qcom/Makefile +2 -0
index 8329c06b60a3..a5bda4af4b41 100644
@@ -542,6 +542,8 @@ x1e80100-qcp-el2-dtbs	:= x1e80100-qcp.dtb x1-el2.dtbo
 dtb-$(CONFIG_ARCH_QCOM)	+= x1e80100-qcp.dtb x1e80100-qcp-el2.dtb
 x1p42100-asus-vivobook-s15-el2-dtbs	:= x1p42100-asus-vivobook-s15.dtb x1-el2.dtbo
 dtb-$(CONFIG_ARCH_QCOM)	+= x1p42100-asus-vivobook-s15.dtb x1p42100-asus-vivobook-s15-el2.dtb
+x1p42100-asus-vivobook-s16-el2-dtbs	:= x1p42100-asus-vivobook-s16.dtb x1-el2.dtbo
+dtb-$(CONFIG_ARCH_QCOM)	+= x1p42100-asus-vivobook-s16.dtb x1p42100-asus-vivobook-s16-el2.dtb
 x1p42100-asus-zenbook-a14-el2-dtbs	:= x1p42100-asus-zenbook-a14.dtb x1-el2.dtbo
 dtb-$(CONFIG_ARCH_QCOM)	+= x1p42100-asus-zenbook-a14.dtb x1p42100-asus-zenbook-a14-el2.dtb
 x1p42100-asus-zenbook-a14-lcd-el2-dtbs	:= x1p42100-asus-zenbook-a14-lcd.dtb x1-el2.dtbo
arch/arm64/boot/dts/qcom/x1p42100-asus-vivobook-s16.dts new file +2115 -0

2,115 lines not on this page · raw message

Signature · 1 line
2.47.3
#3 lore raw

Re: [PATCH v2 2/2] arm64: dts: qcom: add ASUS Vivobook S16 S3607QA (X1P42100)

Thank you for your contribution! Sashiko AI review found 3 potential issues to consider: - [Medium] arm64: dts: qcom: vivobook-s16: missing regulator-always-on on vreg_l15b_1p8 - [Low] arm64: dts…

Thank you for your contribution! Sashiko AI review found 3 potential issues to consider:
- [Medium] arm64: dts: qcom: vivobook-s16: missing regulator-always-on on vreg_l15b_1p8
- [Low] arm64: dts: qcom: SoC CPU thermal zones overridden via path refs in board DTS
- [Low] arm64: dts: qcom: unsorted pinctrl state nodes in vivobook-s16 tlmm
--

commit cd103c40e0e47c852a865a1b61babe596be2c220
Author: Ingo A. Kubbilun <[email protected]>

arm64: dts: qcom: add ASUS Vivobook S16 S3607QA (X1P42100)

This commit adds the device tree for the ASUS Vivobook S16 S3607QA laptop based on the Qualcomm Snapdragon X X1-26-100 (X1P42100) SoC.

Quoted 5 lines
arch/arm64/boot/dts/qcom/x1p42100-asus-vivobook-s16.dts new file +0 -0
new file mode 100644
index 0000000000000..dba56bd114a00

[ ... ]

Quoted 4 lines

+&apps_rsc {

arch/arm64/boot/dts/qcom/x1p42100-asus-vivobook-s16.dts new file +3 -0
+	regulators-0 {
+		compatible = "qcom,pm8550-rpmh-regulators";
+		qcom,pmic-id = "b";

[ ... ]

Quoted 7 lines
arch/arm64/boot/dts/qcom/x1p42100-asus-vivobook-s16.dts new file +7 -0
+		vreg_l12b_1p2: ldo12 {
+			regulator-name = "vreg_l12b_1p2";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <1200000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+			regulator-always-on;
+		};

[ ... ]

arch/arm64/boot/dts/qcom/x1p42100-asus-vivobook-s16.dts line 643

Quoted 6 lines
arch/arm64/boot/dts/qcom/x1p42100-asus-vivobook-s16.dts new file +6 -0
+		vreg_l15b_1p8: ldo15 {
+			regulator-name = "vreg_l15b_1p8";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <1800000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};

[Severity: Medium]
Should vreg_l15b_1p8 have regulator-always-on like vreg_l12b_1p2 and the matching L15B rail on other X1 laptops (such as x1-asus-zenbook-a14.dtsi and x1-crd.dtsi)?

Because wcn6855-pmu uses vreg_wcn_1p9 for vddio-supply, the audio codecs (wcd938x, left_spkr, and right_spkr) are the only consumers of vreg_l15b_1p8 described in DT. If the audio codec drivers defer probe after enabling their supplies or are unbound, the regulator framework will drop the use count to zero and disable the 1.8V L15B rail powering shared on-board components not modeled in DT.

[ ... ]

Quoted 19 lines

+&tlmm {

arch/arm64/boot/dts/qcom/x1p42100-asus-vivobook-s16.dts new file +18 -0
+	gpio-reserved-ranges = <34 2>, /* Unused */
+			       <44 4>, /* SPI (TPM) */
+			       <65 1>, /* EC reset */
+			       <238 1>; /* UFS Reset */
+
+	edp_reg_en: edp-reg-en-state {
+		pins = "gpio70";
+		function = "gpio";
+		drive-strength = <16>;
+		bias-disable;
+	};
+
+	us_euro_hs_sel: us-euro-hs-sel-state {
+		pins = "gpio68";
+		function = "gpio";
+		bias-pull-down;
+		drive-strength = <2>;
+	};

arch/arm64/boot/dts/qcom/x1p42100-asus-vivobook-s16.dts line 1360

Quoted 10 lines
arch/arm64/boot/dts/qcom/x1p42100-asus-vivobook-s16.dts new file +10 -0
+
+	wcd_default: wcd-reset-n-active-state {
+		pins = "gpio191";
+		function = "gpio";
+		drive-strength = <16>;
+		bias-disable;
+		output-low;
+	};
+
+	eusb3_reset_n: eusb3-reset-n-state {

[Severity: Low]
This isn't a bug, but us-euro-hs-sel-state and wcd-reset-n-active-state are placed ahead of eusb3-reset-n-state instead of in alphabetical order by node name inside &tlmm.

[ ... ]

Quoted 18 lines
arch/arm64/boot/dts/qcom/x1p42100-asus-vivobook-s16.dts new file +18 -0
+/*
+ * CPU thermal throttling. hamoa.dtsi only has 115 C critical trips for the
+ * CPU zones, so under sustained load (e.g. make -j8) the SoC ran into the
+ * hardware/EC protection and powered off abruptly. Add a passive trip at
+ * 90 C that lets the thermal core reduce the cluster frequency (scmi-cpufreq
+ * cooling devices), like the GPU zones already do at 95 C.
+ */
+&{/thermal-zones/cpu0-0-top-thermal} {
+	polling-delay-passive = <250>;
+
+	trips {
+		cpu0_0_top_alert: cpu-alert {
+			temperature = <90000>;
+			hysteresis = <2000>;
+			type = "passive";
+		};
+	};
+

arch/arm64/boot/dts/qcom/x1p42100-asus-vivobook-s16.dts line 1697

Quoted 10 lines
arch/arm64/boot/dts/qcom/x1p42100-asus-vivobook-s16.dts new file +10 -0
+	cooling-maps {
+		map0 {
+			trip = <&cpu0_0_top_alert>;
+			cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+						 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+						 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+						 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+		};
+	};
+};

[Severity: Low]
Both the TSENS CPU sensors and the SCMI cpufreq cooling devices are SoC-internal components defined in hamoa.dtsi (where commit 06eadce93697 ("arm64: dts: qcom: x1e80100: Drop unused passive thermal trip points for CPU") previously removed passive CPU trips in favor of hardware limits management and board-level skin thermistor cooling maps).

If TSENS-based passive CPU cooling is needed across Purwa/Hamoa machines without EC or skin thermal control, should these definitions live in a shared SoC/platform DTSI, or at least reference the &thermal_zones label from hamoa.dtsi rather than using 20 &{/thermal-zones/...} root-path overrides in this board DTS?

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2