Skip to contentSkip to conversation

X1E Asus Zenbook A14 support

PATCH Superseded Aleksandrs Vinarskis 6 participants 23 messages Mar 31, 2025 – Apr 3, 2025

Subsystems (5)

v1 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

cover X1E Asus Zenbook A14 support

Introduce support for the mentioned laptop.

Particular device exists in two model numbers:
* UX3407QA: X1P-42-100 or X1-26-100 (as tested)
* UX3407RA: X1E-78-100

Mostly similar to other X1-based laptops. Notable differences are:
* Wifi/Bluetooth combo being Qualcomm FastConnect 6900 on UX3407QA and Qualcomm FastConnect 7800 on UX3407RA
* USB Type-C retimers are Parade PS8833, appear to behave identical to Parade PS8830
* gpio90 is TZ protected

Document new Parade PS883x variant. Move pcie6a_phy's compatible change from X1P-42-100's dtsi to be CRD specific, at it seems it does not apply to all machines - on X1-26-100 phy times-out when using new x1p compatible.

When comparing device firmware between UX3407QA, UX3407RA, it seems that only ADSP firmware is different, CDSP and GPU firmware appears to be the same. (At least assuming the GPU firmware name in both cases is qcdxkmsuc8380.mbn). Since at least some blobs are different betweeen X1E and X1/X1P, define new firmware directory for qcom/x1p42100. This also makes it easier for distros to automatically extract firmware from Windows and place all blobs for the model under the same path. If/When firmware blobs make it to linux-firmware, same blobs can be easily symlinked between qcom/x1e80100 and qcom/x1p42100.

Qualcomm FastConnect 6900 on UX3407QA did not work out of the box, and additionally required both newer firmware and patches to board-2.bin. I added a short how-to [1], as it is not exactly trivial.

ACPI dumps can be found on aarch64-laptops' github [2]. HWids on dtbloader's github [3].

[1] https://github.com/alexVinarskis/linux-x1e80100-zenbook-a14?tab=readme-ov-file#wcn688x-wifi
[2] https://github.com/aarch64-laptops/build/pull/134/files
[3] https://github.com/TravMurav/dtbloader/pull/4/files

Aleksandrs Vinarskis (6):
arm64: dts: qcom: move pcie6a type change from X1P42100 to

    X1P42100-crd

usb: typec: Add Parade PS8833 Type-C Retimer variant
dt-bindings: usb: Add Parade PS8833 Type-C retimer variant
dt-bindings: arm: qcom: Add Asus Zenbook A14
firmware: qcom: scm: Allow QSEECOM on Asus Zenbook A14
arm64: dts: qcom: Add support for X1-based Asus Zenbook A14

 .../devicetree/bindings/arm/qcom.yaml         |    2 +
 .../bindings/usb/parade,ps8830.yaml           |    1 +
 arch/arm64/boot/dts/qcom/Makefile             |    2 +
 arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi  | 1251 +++++++++++++++++
 .../dts/qcom/x1e80100-asus-zenbook-a14.dts    |   45 +
 .../dts/qcom/x1p42100-asus-zenbook-a14.dts    |   48 +
 arch/arm64/boot/dts/qcom/x1p42100-crd.dts     |    4 +
 arch/arm64/boot/dts/qcom/x1p42100.dtsi        |    4 -
 drivers/firmware/qcom/qcom_scm.c              |    2 +
 drivers/usb/typec/mux/ps883x.c                |    1 +
 10 files changed, 1356 insertions(+), 4 deletions(-)
 create mode 100644 arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi
 create mode 100644 arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts
 create mode 100644 arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts
Signature · 1 line
2.45.2
#1 lore raw

PATCH 1/6 arm64: dts: qcom: move pcie6a type change from X1P42100 to X1P42100-crd

It appears at least on some devices (Asus Zenbook A14, x1-26-100) change of pcie6a_phy's compatible breaks the controller. Move compatible change from generic x1p42100.dtsi to CRD's specific x1p42100-crd.dts instead.

---
 arch/arm64/boot/dts/qcom/x1p42100-crd.dts | 4 ++++
 arch/arm64/boot/dts/qcom/x1p42100.dtsi    | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/qcom/x1p42100-crd.dts +4 -0
index cf07860a63e9..a2a212b31556 100644
@@ -15,3 +15,7 @@ / {
 	model = "Qualcomm Technologies, Inc. X1P42100 CRD";
 	compatible = "qcom,x1p42100-crd", "qcom,x1p42100";
 };
+
+&pcie6a_phy {
+	compatible = "qcom,x1p42100-qmp-gen4x4-pcie-phy";
+};
arch/arm64/boot/dts/qcom/x1p42100.dtsi +0 -4
index 27f479010bc3..4424a8708d39 100644
@@ -37,10 +37,6 @@ &pcie3 {
 	num-lanes = <4>;
 };
 
-&pcie6a_phy {
-	compatible = "qcom,x1p42100-qmp-gen4x4-pcie-phy";
-};
-
 &soc {
 	/* The PCIe3 PHY on X1P42100 uses a different IP block */
 	pcie3_phy: phy@1bd4000 {
Signature · 1 line
2.45.2
#4 lore raw

PATCH 2/6 usb: typec: Add Parade PS8833 Type-C Retimer variant

In reply to Aleksandrs Vinarskis

Appears to behave similarly to Parade PS8830. Found on some Qualcomm Snapdragon X1 devices, such as Asus Zenbook A14.

---
 drivers/usb/typec/mux/ps883x.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/typec/mux/ps883x.c +1 -0
index ad59babf7cce..095c36530904 100644
@@ -447,6 +447,7 @@ static void ps883x_retimer_remove(struct i2c_client *client)
 
 static const struct of_device_id ps883x_retimer_of_table[] = {
 	{ .compatible = "parade,ps8830" },
+	{ .compatible = "parade,ps8833" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, ps883x_retimer_of_table);
Signature · 1 line
2.45.2
#6 lore raw

PATCH 3/6 dt-bindings: usb: Add Parade PS8833 Type-C retimer variant

In reply to Aleksandrs Vinarskis

Appears to behave similarly to Parade PS8830. Found on some Qualcomm Snapdragon X1 devices, such as Asus Zenbook A14.

---
 Documentation/devicetree/bindings/usb/parade,ps8830.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/usb/parade,ps8830.yaml +1 -0
index 935d57f5d26f..699f4e1d9283 100644
@@ -13,6 +13,7 @@ properties:
   compatible:
     enum:
       - parade,ps8830
+      - parade,ps8833
 
   reg:
     maxItems: 1
Signature · 1 line
2.45.2
#8 lore raw

PATCH 4/6 dt-bindings: arm: qcom: Add Asus Zenbook A14

In reply to Aleksandrs Vinarskis

Document the X1E-78-100 and X1P-42-100/X1-26-100 variants.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/arm/qcom.yaml +2 -0
index 08c329b1e919..1b7e2ed56baa 100644
@@ -1133,6 +1133,7 @@ properties:
       - items:
           - enum:
               - asus,vivobook-s15
+              - asus,x1e80100-zenbook-a14
               - dell,xps13-9345
               - hp,omnibook-x14
               - lenovo,yoga-slim7x
@@ -1144,6 +1145,7 @@ properties:
 
       - items:
           - enum:
+              - asus,x1p42100-zenbook-a14
               - qcom,x1p42100-crd
           - const: qcom,x1p42100
 
Signature · 1 line
2.45.2
#13 lore raw

PATCH 5/6 firmware: qcom: scm: Allow QSEECOM on Asus Zenbook A14

In reply to Aleksandrs Vinarskis

Allow particular machine accessing eg. efivars.

---
 drivers/firmware/qcom/qcom_scm.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/firmware/qcom/qcom_scm.c +2 -0
index fc4d67e4c4a6..0d2467c04248 100644
@@ -1986,6 +1986,8 @@ EXPORT_SYMBOL_GPL(qcom_scm_qseecom_app_send);
  */
 static const struct of_device_id qcom_scm_qseecom_allowlist[] __maybe_unused = {
 	{ .compatible = "asus,vivobook-s15" },
+	{ .compatible = "asus,x1e80100-zenbook-a14" },
+	{ .compatible = "asus,x1p42100-zenbook-a14" },
 	{ .compatible = "dell,xps13-9345" },
 	{ .compatible = "hp,omnibook-x14" },
 	{ .compatible = "huawei,gaokun3" },
Signature · 1 line
2.45.2
#14 lore raw

PATCH 6/6 arm64: dts: qcom: Add support for X1-based Asus Zenbook A14

In reply to Aleksandrs Vinarskis

Initial support for Asus Zenbook A14. Particular moddel exists in X1-26-100, X1P-42-100 (UX3407QA) and X1E-78-100 (UX3407RA).

Mostly similar to other X1-based laptops. Notable differences are:
* Wifi/Bluetooth combo being Qualcomm FastConnect 6900 on UX3407QA and Qualcomm FastConnect 7800 on UX3407RA
* USB Type-C retimers are Parade PS8833, appear to behave identical to Parade PS8830
* gpio90 is TZ protected

Working:
* Keyboard
* Touchpad
* NVME
* Lid switch
* Camera LED
* eDP (FHD OLED, SDC420D) with brightness control
* Bluetooth, WiFi (WCN6855)
* USB Type-A port
* USB Type-C ports in USB2/USB3/DP (both orientations)
* aDSP/cDPS firmware loading, battery info
* Sleep/suspend, nothing visibly broken on resume

Out of scope of this series:
* Audio (Speakers/microphones/headphone jack)
* Camera (OmniVision OV02C10)
* HDMI (Parade PS185HDM)
* EC

Add dtsi and create two configurations for UX3407QA, UX3407RA. Tested on UX3407QA with X1-26-100.

---
 arch/arm64/boot/dts/qcom/Makefile             |    2 +
 arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi  | 1251 +++++++++++++++++
 .../dts/qcom/x1e80100-asus-zenbook-a14.dts    |   45 +
 .../dts/qcom/x1p42100-asus-zenbook-a14.dts    |   48 +
 4 files changed, 1346 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi
 create mode 100644 arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts
 create mode 100644 arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts
arch/arm64/boot/dts/qcom/Makefile +2 -0
index adb4d026bcc4..baa99f9e43ab 100644
@@ -297,6 +297,7 @@ dtb-$(CONFIG_ARCH_QCOM)	+= x1e001de-devkit.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= x1e78100-lenovo-thinkpad-t14s.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= x1e78100-lenovo-thinkpad-t14s-oled.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= x1e80100-asus-vivobook-s15.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= x1e80100-asus-zenbook-a14.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= x1e80100-crd.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= x1e80100-dell-xps13-9345.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= x1e80100-hp-omnibook-x14.dtb
@@ -304,4 +305,5 @@ dtb-$(CONFIG_ARCH_QCOM)	+= x1e80100-lenovo-yoga-slim7x.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= x1e80100-microsoft-romulus13.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= x1e80100-microsoft-romulus15.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= x1e80100-qcp.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= x1p42100-asus-zenbook-a14.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= x1p42100-crd.dtb
arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +1251 -0

1,251 lines not on this page · raw message

arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts new file +45 -0

45 lines not on this page · raw message

arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts new file +48 -0

48 lines not on this page · raw message

Signature · 1 line
2.45.2
#22 lore raw
In reply to Aleksandrs Vinarskis
Quoted 63 lines · Aleksandrs Vinarskis

Introduce support for the mentioned laptop.

Particular device exists in two model numbers:
* UX3407QA: X1P-42-100 or X1-26-100 (as tested)
* UX3407RA: X1E-78-100

Mostly similar to other X1-based laptops. Notable differences are:
* Wifi/Bluetooth combo being Qualcomm FastConnect 6900 on UX3407QA and Qualcomm FastConnect 7800 on UX3407RA
* USB Type-C retimers are Parade PS8833, appear to behave identical to Parade PS8830
* gpio90 is TZ protected

Document new Parade PS883x variant. Move pcie6a_phy's compatible change from X1P-42-100's dtsi to be CRD specific, at it seems it does not apply to all machines - on X1-26-100 phy times-out when using new x1p compatible.

When comparing device firmware between UX3407QA, UX3407RA, it seems that only ADSP firmware is different, CDSP and GPU firmware appears to be the same. (At least assuming the GPU firmware name in both cases is qcdxkmsuc8380.mbn). Since at least some blobs are different betweeen X1E and X1/X1P, define new firmware directory for qcom/x1p42100. This also makes it easier for distros to automatically extract firmware from Windows and place all blobs for the model under the same path. If/When firmware blobs make it to linux-firmware, same blobs can be easily symlinked between qcom/x1e80100 and qcom/x1p42100.

Qualcomm FastConnect 6900 on UX3407QA did not work out of the box, and additionally required both newer firmware and patches to board-2.bin. I added a short how-to [1], as it is not exactly trivial.

ACPI dumps can be found on aarch64-laptops' github [2]. HWids on dtbloader's github [3].

[1] https://github.com/alexVinarskis/linux-x1e80100-zenbook-a14?tab=readme-ov-file#wcn688x-wifi
[2] https://github.com/aarch64-laptops/build/pull/134/files
[3] https://github.com/TravMurav/dtbloader/pull/4/files

Aleksandrs Vinarskis (6):
arm64: dts: qcom: move pcie6a type change from X1P42100 to

    X1P42100-crd

usb: typec: Add Parade PS8833 Type-C Retimer variant
dt-bindings: usb: Add Parade PS8833 Type-C retimer variant
dt-bindings: arm: qcom: Add Asus Zenbook A14
firmware: qcom: scm: Allow QSEECOM on Asus Zenbook A14
arm64: dts: qcom: Add support for X1-based Asus Zenbook A14

 .../devicetree/bindings/arm/qcom.yaml         |    2 +
 .../bindings/usb/parade,ps8830.yaml           |    1 +
 arch/arm64/boot/dts/qcom/Makefile             |    2 +
 arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi  | 1251 +++++++++++++++++
 .../dts/qcom/x1e80100-asus-zenbook-a14.dts    |   45 +
 .../dts/qcom/x1p42100-asus-zenbook-a14.dts    |   48 +
 arch/arm64/boot/dts/qcom/x1p42100-crd.dts     |    4 +
 arch/arm64/boot/dts/qcom/x1p42100.dtsi        |    4 -
 drivers/firmware/qcom/qcom_scm.c              |    2 +
 drivers/usb/typec/mux/ps883x.c                |    1 +
 10 files changed, 1356 insertions(+), 4 deletions(-)
 create mode 100644 arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi
 create mode 100644 arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts
 create mode 100644 arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts
Quoted 5 lines

--
2.45.2

My bot found new DTB warnings on the .dts files added or changed in this series.

Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.

If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:

  pip3 install dtschema --upgrade

This patch series was applied (using b4) to base:
Base: attempting to guess base-commit...
Base: tags/next-20250331 (exact match)

If this is not the correct base, please add 'base-commit' tag (or use b4 which does this automatically)

New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/qcom/' for [email protected]:

arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dtb: bluetooth: 'vddrfacmn-supply' is a required property
from schema $id: http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dtb: bluetooth: 'vddaon-supply' is a required property
from schema $id: http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dtb: bluetooth: 'vddwlcx-supply' is a required property
from schema $id: http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dtb: bluetooth: 'vddwlmx-supply' is a required property
from schema $id: http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dtb: bluetooth: 'vddrfa0p8-supply' is a required property
from schema $id: http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dtb: bluetooth: 'vddrfa1p2-supply' is a required property
from schema $id: http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dtb: bluetooth: 'vddrfa1p8-supply' is a required property
from schema $id: http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dtb: pinctrl@f100000: Unevaluated properties are not allowed ('bt-en-sleep' was unexpected)
from schema $id: http://devicetree.org/schemas/pinctrl/qcom,x1e80100-tlmm.yaml#
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dtb: bluetooth: 'vddrfacmn-supply' is a required property
from schema $id: http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dtb: bluetooth: 'vddaon-supply' is a required property
from schema $id: http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dtb: bluetooth: 'vddwlcx-supply' is a required property
from schema $id: http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dtb: bluetooth: 'vddwlmx-supply' is a required property
from schema $id: http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dtb: bluetooth: 'vddbtcmx-supply' is a required property
from schema $id: http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dtb: bluetooth: 'vddrfa0p8-supply' is a required property
from schema $id: http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dtb: bluetooth: 'vddrfa1p2-supply' is a required property
from schema $id: http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dtb: bluetooth: 'vddrfa1p8-supply' is a required property
from schema $id: http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dtb: pinctrl@f100000: Unevaluated properties are not allowed ('bt-en-sleep' was unexpected)
from schema $id: http://devicetree.org/schemas/pinctrl/qcom,x1e80100-tlmm.yaml#

#5 lore raw

Re: [PATCH v1 2/6] usb: typec: Add Parade PS8833 Type-C Retimer variant

In reply to Aleksandrs Vinarskis
Quoted 13 lines · Aleksandrs Vinarskis

Appears to behave similarly to Parade PS8830. Found on some Qualcomm Snapdragon X1 devices, such as Asus Zenbook A14.

---
 drivers/usb/typec/mux/ps883x.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/typec/mux/ps883x.c +0 -0
index ad59babf7cce..095c36530904 100644

drivers/usb/typec/mux/ps883x.c static void ps883x_retimer_remove(struct i2c_client *client) · line 450

Quoted 4 lines
drivers/usb/typec/mux/ps883x.c +1 -0
@@ -447,6 +447,7 @@ static void ps883x_retimer_remove(struct i2c_client *client)
 
 static const struct of_device_id ps883x_retimer_of_table[] = {
 	{ .compatible = "parade,ps8830" },
+	{ .compatible = "parade,ps8833" },

Don't create unnecessary entries for compatible devices. Patch should be dropped.

Best regards,
Krzysztof

#9 lore raw

Re: [PATCH v1 4/6] dt-bindings: arm: qcom: Add Asus Zenbook A14

In reply to Aleksandrs Vinarskis
Quoted 12 lines · Aleksandrs Vinarskis

Document the X1E-78-100 and X1P-42-100/X1-26-100 variants.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/arm/qcom.yaml +0 -0
index 08c329b1e919..1b7e2ed56baa 100644

Documentation/devicetree/bindings/arm/qcom.yaml properties: · line 1136

Quoted 4 lines
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
@@ -1133,6 +1133,7 @@ properties:
       - items:
           - enum:
               - asus,vivobook-s15
+              - asus,x1e80100-zenbook-a14

asus,zenbook-a14-x1e80100

asus did not make a component of x1e80100 soc.

Documentation/devicetree/bindings/arm/qcom.yaml properties: · line 1148

Quoted 8 lines
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
               - dell,xps13-9345
               - hp,omnibook-x14
               - lenovo,yoga-slim7x
@@ -1144,6 +1145,7 @@ properties:
 
       - items:
           - enum:
+              - asus,x1p42100-zenbook-a14

Same here.

Best regards,
Krzysztof

#10 lore raw

Re: [PATCH v1 4/6] dt-bindings: arm: qcom: Add Asus Zenbook A14

Quoted 21 lines · Krzysztof Kozlowski
Quoted 12 lines · Aleksandrs Vinarskis

Document the X1E-78-100 and X1P-42-100/X1-26-100 variants.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/arm/qcom.yaml +0 -0
index 08c329b1e919..1b7e2ed56baa 100644

Documentation/devicetree/bindings/arm/qcom.yaml properties: · line 1136

Quoted 4 lines
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
@@ -1133,6 +1133,7 @@ properties:
       - items:
           - enum:
               - asus,vivobook-s15
+              - asus,x1e80100-zenbook-a14

asus,zenbook-a14-x1e80100

Quoted 1 line

asus did not make a component of x1e80100 soc.

I see, I misunderstood the meaning of qcom,x1e80100-crd, clear now. In that case, perhaps follow pattern of other devices, describe by model differences (eg. -oled) instead of soc? eg:

asus,zenbook-a14-ux3407ra (for x1e variant)
asus,zenbook-a14-ux3407qa (for x1/x1p variants)

Thanks for the review,
Alex

Quoted 15 lines

Documentation/devicetree/bindings/arm/qcom.yaml properties: · line 1148

Quoted 9 lines
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
               - dell,xps13-9345
               - hp,omnibook-x14
               - lenovo,yoga-slim7x
@@ -1144,6 +1145,7 @@ properties:
 
       - items:
           - enum:
+              - asus,x1p42100-zenbook-a14

Same here.

Best regards,
Krzysztof

#2 lore raw

Re: [PATCH v1 1/6] arm64: dts: qcom: move pcie6a type change from X1P42100 to X1P42100-crd

In reply to Aleksandrs Vinarskis
Quoted 27 lines · Aleksandrs Vinarskis

It appears at least on some devices (Asus Zenbook A14, x1-26-100) change of pcie6a_phy's compatible breaks the controller. Move compatible change from generic x1p42100.dtsi to CRD's specific x1p42100-crd.dts instead.

---
 arch/arm64/boot/dts/qcom/x1p42100-crd.dts | 4 ++++
 arch/arm64/boot/dts/qcom/x1p42100.dtsi    | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/qcom/x1p42100-crd.dts +4 -0
index cf07860a63e9..a2a212b31556 100644
@@ -15,3 +15,7 @@ / {
 	model = "Qualcomm Technologies, Inc. X1P42100 CRD";
 	compatible = "qcom,x1p42100-crd", "qcom,x1p42100";
 };
+
+&pcie6a_phy {
+	compatible = "qcom,x1p42100-qmp-gen4x4-pcie-phy";
+};
arch/arm64/boot/dts/qcom/x1p42100.dtsi +0 -0
index 27f479010bc3..4424a8708d39 100644

arch/arm64/boot/dts/qcom/x1p42100.dtsi &pcie3 { · line 42

Quoted 6 lines
arch/arm64/boot/dts/qcom/x1p42100.dtsi +0 -3
@@ -37,10 +37,6 @@ &pcie3 {
 	num-lanes = <4>;
 };
 
-&pcie6a_phy {
-	compatible = "qcom,x1p42100-qmp-gen4x4-pcie-phy";
-};

This is not correct. The hardware is different in all SoCs, not just the ones put in the CRD.

You're probably missing this change [1], please test it out and leave a t-b if it's confirmed working for you.

Konrad

[1] https://lore.kernel.org/linux-arm-msm/[email protected]/T/#m9675593a62b2334ab2afd4269da6938464a03fa6

#11 lore raw

Re: [PATCH v1 4/6] dt-bindings: arm: qcom: Add Asus Zenbook A14

In reply to Aleksandrs Vinarskis
Quoted 23 lines · Aleksandrs Vinarskis
Quoted 21 lines · Krzysztof Kozlowski
Quoted 12 lines · Aleksandrs Vinarskis

Document the X1E-78-100 and X1P-42-100/X1-26-100 variants.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/arm/qcom.yaml +0 -0
index 08c329b1e919..1b7e2ed56baa 100644

Documentation/devicetree/bindings/arm/qcom.yaml properties: · line 1136

Quoted 4 lines
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
@@ -1133,6 +1133,7 @@ properties:
       - items:
           - enum:
               - asus,vivobook-s15
+              - asus,x1e80100-zenbook-a14

asus,zenbook-a14-x1e80100

Quoted 8 lines
Quoted 1 line

asus did not make a component of x1e80100 soc.

I see, I misunderstood the meaning of qcom,x1e80100-crd, clear now. In that case, perhaps follow pattern of other devices, describe by model differences (eg. -oled) instead of soc? eg:

asus,zenbook-a14-ux3407ra (for x1e variant)
asus,zenbook-a14-ux3407qa (for x1/x1p variants)

This seems to make more sense indeed, we don't want to put the SoC name in the compatible, as it may turn out that there's some other variants (e.g. different panel or present/absent modem) that may make it impossible to maintain in the future

Konrad

#12 lore raw

Re: [PATCH v1 4/6] dt-bindings: arm: qcom: Add Asus Zenbook A14

In reply to Aleksandrs Vinarskis
Quoted 23 lines · Aleksandrs Vinarskis
Quoted 21 lines · Krzysztof Kozlowski
Quoted 12 lines · Aleksandrs Vinarskis

Document the X1E-78-100 and X1P-42-100/X1-26-100 variants.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/arm/qcom.yaml +0 -0
index 08c329b1e919..1b7e2ed56baa 100644

Documentation/devicetree/bindings/arm/qcom.yaml properties: · line 1136

Quoted 4 lines
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
@@ -1133,6 +1133,7 @@ properties:
       - items:
           - enum:
               - asus,vivobook-s15
+              - asus,x1e80100-zenbook-a14

asus,zenbook-a14-x1e80100

Quoted 4 lines
Quoted 1 line

asus did not make a component of x1e80100 soc.

I see, I misunderstood the meaning of qcom,x1e80100-crd, clear now. In that case, perhaps follow pattern of other devices, describe by

Qualcomm dev boards follow such pattern, even though actual name is for example mtp8750.

Quoted 4 lines

model differences (eg. -oled) instead of soc? eg:

asus,zenbook-a14-ux3407ra (for x1e variant)
asus,zenbook-a14-ux3407qa (for x1/x1p variants)

I am fine with both, just wanted the actual generic/common product name first.

Quoted 19 lines

Thanks for the review,
Alex

Quoted 15 lines

Documentation/devicetree/bindings/arm/qcom.yaml properties: · line 1148

Quoted 9 lines
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
               - dell,xps13-9345
               - hp,omnibook-x14
               - lenovo,yoga-slim7x
@@ -1144,6 +1145,7 @@ properties:
 
       - items:
           - enum:
+              - asus,x1p42100-zenbook-a14

Same here.

Best regards,
Krzysztof

Best regards,
Krzysztof

#3 lore raw

Re: [PATCH v1 1/6] arm64: dts: qcom: move pcie6a type change from X1P42100 to X1P42100-crd

In reply to Konrad Dybcio
Quoted 40 lines · Konrad Dybcio
Quoted 27 lines · Aleksandrs Vinarskis

It appears at least on some devices (Asus Zenbook A14, x1-26-100) change of pcie6a_phy's compatible breaks the controller. Move compatible change from generic x1p42100.dtsi to CRD's specific x1p42100-crd.dts instead.

---
 arch/arm64/boot/dts/qcom/x1p42100-crd.dts | 4 ++++
 arch/arm64/boot/dts/qcom/x1p42100.dtsi    | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/qcom/x1p42100-crd.dts +4 -0
index cf07860a63e9..a2a212b31556 100644
@@ -15,3 +15,7 @@ / {
      model = "Qualcomm Technologies, Inc. X1P42100 CRD";
      compatible = "qcom,x1p42100-crd", "qcom,x1p42100";
 };
+
+&pcie6a_phy {
+     compatible = "qcom,x1p42100-qmp-gen4x4-pcie-phy";
+};
arch/arm64/boot/dts/qcom/x1p42100.dtsi +0 -0
index 27f479010bc3..4424a8708d39 100644

arch/arm64/boot/dts/qcom/x1p42100.dtsi &pcie3 { · line 42

Quoted 6 lines
arch/arm64/boot/dts/qcom/x1p42100.dtsi +0 -3
@@ -37,10 +37,6 @@ &pcie3 {
      num-lanes = <4>;
 };
 
-&pcie6a_phy {
-     compatible = "qcom,x1p42100-qmp-gen4x4-pcie-phy";
-};

This is not correct. The hardware is different in all SoCs, not just the ones put in the CRD.

Quoted 2 lines

You're probably missing this change [1], please test it out and leave a t-b if it's confirmed working for you.

Thanks for the pointer, with the missing peace it indeed works now! Left t-b. Will drop this change on re-spin later today.

Thanks for the review,
Alex

Quoted 4 lines

Konrad

[1] https://lore.kernel.org/linux-arm-msm/[email protected]/T/#m9675593a62b2334ab2afd4269da6938464a03fa6

#15 lore raw

Re: [PATCH v1 6/6] arm64: dts: qcom: Add support for X1-based Asus Zenbook A14

In reply to Aleksandrs Vinarskis
Quoted 9 lines · Aleksandrs Vinarskis

Initial support for Asus Zenbook A14. Particular moddel exists in X1-26-100, X1P-42-100 (UX3407QA) and X1E-78-100 (UX3407RA).

Mostly similar to other X1-based laptops. Notable differences are:
* Wifi/Bluetooth combo being Qualcomm FastConnect 6900 on UX3407QA and Qualcomm FastConnect 7800 on UX3407RA
* USB Type-C retimers are Parade PS8833, appear to behave identical to Parade PS8830
* gpio90 is TZ protected

[...]

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi line 45

Quoted 5 lines
arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +5 -0
+	leds {
+		compatible = "gpio-leds";
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&cam_indicator_en>;

property-n
property-names

please, we're trying to unify such small things even though we know it's "wrong" in a lot of places

Quoted 13 lines
arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +13 -0
+
+&i2c0 {
+	clock-frequency = <400000>;
+	status = "okay";
+
+	/* ELAN, 04F3:3315 */
+	touchpad@15 {
+		compatible = "hid-over-i2c";
+		reg = <0x15>;
+
+		hid-descr-addr = <0x1>;
+		interrupts-extended = <&tlmm 3 IRQ_TYPE_LEVEL_LOW>;
+

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi line 637

Quoted 10 lines
arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +10 -0
+		pinctrl-0 = <&tpad_default>;
+		pinctrl-names = "default";
+
+		wakeup-source;
+	};
+};
+
+&i2c3 {
+	clock-frequency = <400000>;
+	status = "okay";

It's also customary to leave a newline before 'status'

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi line 914

Quoted 5 lines

+&pm8550_gpios {

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +4 -0
+	rtmr0_default: rtmr0-reset-n-active-state {
+		pins = "gpio10";
+		function = "normal";
+		power-source = <1>; /* 1.8V */

Drop the 1.8v comments please

[...]

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi line 1009

Quoted 5 lines

+&spi10 {

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +4 -0
+	status = "disabled";
+
+	/* Unknown device */
+};

Does the device crash if you enable this bus? Keeping it 'okay' would make it easier for folks to poke at it

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi line 1020

Quoted 11 lines
arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +11 -0
+
+&tlmm {
+	gpio-reserved-ranges = <44 4>,  /* SPI11, TZ Protected */
+			       <90 1>;	/* Unknown, TZ Protected */
+
+	bt_en_default: bt-en-sleep {
+		pins = "gpio116";
+		function = "gpio";
+		output-low;
+		bias-disable;
+		qcom,drive-strength = <16>;

drop "qcom," and please keep the order of:

pins
function
drive-strength
bias
output/input

as you did below

arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts line 13

Quoted 3 lines
arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts new file +3 -0
+
+/ {
+	model = "ASUS Zenbook A14 UX3407RA";

There's no strict policy, but variants usually go in braces

Quoted 50 lines
arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts new file +32 -0
+	compatible = "asus,x1e80100-zenbook-a14", "qcom,x1e80100";
+};
+
+&gpu_zap_shader {
+	firmware-name = "qcom/x1e80100/ASUSTeK/zenbook-a14/qcdxkmsuc8380.mbn";
+};
+
+&remoteproc_adsp {
+	firmware-name = "qcom/x1e80100/ASUSTeK/zenbook-a14/qcadsp8380.mbn",
+			"qcom/x1e80100/ASUSTeK/zenbook-a14/adsp_dtbs.elf";
+
+	status = "okay";
+};
+
+&remoteproc_cdsp {
+	firmware-name = "qcom/x1e80100/ASUSTeK/zenbook-a14/qccdsp8380.mbn",
+			"qcom/x1e80100/ASUSTeK/zenbook-a14/cdsp_dtbs.elf";
+
+	status = "okay";
+};
+
+&uart14 {
+	status = "okay";
+
+	bluetooth {
+		compatible = "qcom,wcn7850-bt";
+		pinctrl-names = "default";
+		pinctrl-0 = <&bt_en_default>;
+		enable-gpios = <&tlmm 116 GPIO_ACTIVE_HIGH>;
+		max-speed = <3000000>;
+	};
+};
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts new file +12 -0
new file mode 100644
index 000000000000..b6c9a707090f
@@ -0,0 +1,48 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) 2025 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2025 Aleksandrs Vinarskis <[email protected]>
+ */
+
+/dts-v1/;
+
+#include "x1p42100.dtsi"
+#include "x1-zenbook-a14.dtsi"
+
+/delete-node/ &pmc8380_6;

arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts line 22

Quoted 10 lines
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts new file +10 -0
+/delete-node/ &pmc8380_6_thermal;
+
+/ {
+	model = "ASUS Zenbook A14 UX3407QA";
+	compatible = "asus,x1p42100-zenbook-a14", "qcom,x1p42100";
+};
+
+&gpu_zap_shader {
+	firmware-name = "qcom/x1p42100/ASUSTeK/zenbook-a14/qcdxkmsuc8380.mbn";
+};

This file is not going to work on this SoC, you can drop it

arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts line 35

Quoted 13 lines
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts new file +13 -0
+
+&remoteproc_adsp {
+	firmware-name = "qcom/x1p42100/ASUSTeK/zenbook-a14/qcadsp8380.mbn",
+			"qcom/x1p42100/ASUSTeK/zenbook-a14/adsp_dtbs.elf";
+
+	status = "okay";
+};
+
+&remoteproc_cdsp {
+	firmware-name = "qcom/x1p42100/ASUSTeK/zenbook-a14/qccdsp8380.mbn",
+			"qcom/x1p42100/ASUSTeK/zenbook-a14/cdsp_dtbs.elf";
+
+	status = "okay";

Are the DSP firmware files actually different between the two?

Konrad

#16 lore raw

Re: [PATCH v1 6/6] arm64: dts: qcom: Add support for X1-based Asus Zenbook A14

Quoted 20 lines · Konrad Dybcio
Quoted 9 lines · Aleksandrs Vinarskis

Initial support for Asus Zenbook A14. Particular moddel exists in X1-26-100, X1P-42-100 (UX3407QA) and X1E-78-100 (UX3407RA).

Mostly similar to other X1-based laptops. Notable differences are:
* Wifi/Bluetooth combo being Qualcomm FastConnect 6900 on UX3407QA and Qualcomm FastConnect 7800 on UX3407RA
* USB Type-C retimers are Parade PS8833, appear to behave identical to Parade PS8830
* gpio90 is TZ protected

[...]

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi line 45

Quoted 5 lines
arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +5 -0
+     leds {
+             compatible = "gpio-leds";
+
+             pinctrl-names = "default";
+             pinctrl-0 = <&cam_indicator_en>;
Quoted 6 lines

property-n
property-names

please, we're trying to unify such small things even though we know it's "wrong" in a lot of places

will do.

Quoted 17 lines
Quoted 17 lines
arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +17 -0
+
+&i2c0 {
+     clock-frequency = <400000>;
+     status = "okay";
+
+     /* ELAN, 04F3:3315 */
+     touchpad@15 {
+             compatible = "hid-over-i2c";
+             reg = <0x15>;
+
+             hid-descr-addr = <0x1>;
+             interrupts-extended = <&tlmm 3 IRQ_TYPE_LEVEL_LOW>;
+
+             pinctrl-0 = <&tpad_default>;
+             pinctrl-names = "default";
+
+             wakeup-source;
Quoted 8 lines

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi line 637

Quoted 6 lines
arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +6 -0
+     };
+};
+
+&i2c3 {
+     clock-frequency = <400000>;
+     status = "okay";

It's also customary to leave a newline before 'status'

will do.

Quoted 8 lines

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi line 914

Quoted 6 lines

+&pm8550_gpios {

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +4 -0
+     rtmr0_default: rtmr0-reset-n-active-state {
+             pins = "gpio10";
+             function = "normal";
+             power-source = <1>; /* 1.8V */

Drop the 1.8v comments please

will do.

Quoted 11 lines

[...]

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi line 1009

Quoted 5 lines

+&spi10 {

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +4 -0
+     status = "disabled";
+
+     /* Unknown device */
+};

Does the device crash if you enable this bus? Keeping it 'okay' would make it easier for folks to poke at it

It does boot just fine, but does not initialize:

```
geni_spi a88000.spi: Invalid proto 9
...
qnoc-x1e80100 interconnect-1: sync_state() pending due to a88000.spi
...
```

I only quickly checked that 9 is indeed invalid state, iirc should've been 2. But haven't looked deeper into it, so left it disabled. So I thought best to leave it off for now. Unless you prefer to drop it altogether?

Quoted 15 lines

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi line 1020

Quoted 12 lines
arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +11 -0
+
+&tlmm {
+     gpio-reserved-ranges = <44 4>,  /* SPI11, TZ Protected */
+                            <90 1>;  /* Unknown, TZ Protected */
+
+     bt_en_default: bt-en-sleep {
+             pins = "gpio116";
+             function = "gpio";
+             output-low;
+             bias-disable;
+             qcom,drive-strength = <16>;

drop "qcom," and please keep the order of:

Quoted 7 lines

pins
function
drive-strength
bias
output/input

as you did below

Will do.

Should I also drop 'qcom,' from the 'misc_3p3_reg_en' and adjust order the same way, or that one is somehow special?

Quoted 6 lines

arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts line 13

Quoted 4 lines
arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts new file +3 -0
+
+/ {
+     model = "ASUS Zenbook A14 UX3407RA";

There's no strict policy, but variants usually go in braces

Parenthesis I guess, "ASUS Zenbook A14 (UX3407RA)" ?

Quoted 55 lines
Quoted 55 lines
arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts new file +32 -0
+     compatible = "asus,x1e80100-zenbook-a14", "qcom,x1e80100";
+};
+
+&gpu_zap_shader {
+     firmware-name = "qcom/x1e80100/ASUSTeK/zenbook-a14/qcdxkmsuc8380.mbn";
+};
+
+&remoteproc_adsp {
+     firmware-name = "qcom/x1e80100/ASUSTeK/zenbook-a14/qcadsp8380.mbn",
+                     "qcom/x1e80100/ASUSTeK/zenbook-a14/adsp_dtbs.elf";
+
+     status = "okay";
+};
+
+&remoteproc_cdsp {
+     firmware-name = "qcom/x1e80100/ASUSTeK/zenbook-a14/qccdsp8380.mbn",
+                     "qcom/x1e80100/ASUSTeK/zenbook-a14/cdsp_dtbs.elf";
+
+     status = "okay";
+};
+
+&uart14 {
+     status = "okay";
+
+     bluetooth {
+             compatible = "qcom,wcn7850-bt";
+             pinctrl-names = "default";
+             pinctrl-0 = <&bt_en_default>;
+             enable-gpios = <&tlmm 116 GPIO_ACTIVE_HIGH>;
+             max-speed = <3000000>;
+     };
+};
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts new file +16 -0
new file mode 100644
index 000000000000..b6c9a707090f
@@ -0,0 +1,48 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) 2025 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2025 Aleksandrs Vinarskis <[email protected]>
+ */
+
+/dts-v1/;
+
+#include "x1p42100.dtsi"
+#include "x1-zenbook-a14.dtsi"
+
+/delete-node/ &pmc8380_6;
+/delete-node/ &pmc8380_6_thermal;
+
+/ {
+     model = "ASUS Zenbook A14 UX3407QA";
Quoted 8 lines

arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts line 22

Quoted 6 lines
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts new file +6 -0
+     compatible = "asus,x1p42100-zenbook-a14", "qcom,x1p42100";
+};
+
+&gpu_zap_shader {
+     firmware-name = "qcom/x1p42100/ASUSTeK/zenbook-a14/qcdxkmsuc8380.mbn";
+};

This file is not going to work on this SoC, you can drop it

I guess it would need a different firmware name? If yes, can we already add the new name, such that once x1p42100 gains GPU support it will get enabled 'automatically'?

Otherwise, I will just drop it.

Quoted 16 lines
Quoted 4 lines
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts new file +3 -0
+
+&remoteproc_adsp {
+     firmware-name = "qcom/x1p42100/ASUSTeK/zenbook-a14/qcadsp8380.mbn",

arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts line 35

Quoted 10 lines
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts new file +10 -0
+                     "qcom/x1p42100/ASUSTeK/zenbook-a14/adsp_dtbs.elf";
+
+     status = "okay";
+};
+
+&remoteproc_cdsp {
+     firmware-name = "qcom/x1p42100/ASUSTeK/zenbook-a14/qccdsp8380.mbn",
+                     "qcom/x1p42100/ASUSTeK/zenbook-a14/cdsp_dtbs.elf";
+
+     status = "okay";

Are the DSP firmware files actually different between the two?

CDSP is the same. ADSP blobs to my surprise are different, both '.elf' and '.mbn'. But like I wrote in the cover letter, perhaps Asus just forgot to update adsp firmware? Though according to changelong on device pages [2],[4] both have "ADSP Driver : 2.0.4135.0200"

Compared by:
* Downloading UX3407QA's drivers [1], from the device page [2] and UX3407RA'a drivers [3] from the device page [4]
* Extract and flatten with 7z e filename.exe
* Compare via md5sum *dsp*elf *dsp*mbn *dsp*jsn

Though, even if the blobs would be/will be the same, I think it is still beneficial to define firmware path per model, as this makes firmware extraction from driver/Windows partition and placement much easier. Unfortunately, as it seems so far, most of the devices besides Lenovos are not having firmware upstreamed, so this is pretty relevant. Eg. Ubuntu already has 'firmware extracting tool' [5] (draft MR to include Zenbook as well), I'm guessing other distros have something similar, though I haven't followed up.

On the other hand, these tools could of course get path from device tree directly, eg. via cat /sys/firmware/devicetree/base/soc@0/remoteproc@32300000/firmware-name, then having all the blobs for the device in one location is less relevant...

Thanks for reviewing,
Alex

[1] https://dlcdnets.asus.com/pub/ASUS/nb/Image/Driver/DriverPackage/42706/SOCPackage_forWebSite_Qualcomm_Z_V1.305.7550.2_42706.exe?model=UX3407QA
[2] https://www.asus.com/ch-en/laptops/for-home/zenbook/asus-zenbook-a14-ux3407/helpdesk_download?model2Name=UX3407QA
[3] https://dlcdnets.asus.com/pub/ASUS/nb/Image/Driver/DriverPackage/42705/SOCPackage_forWebSite_Qualcomm_Z_V1.305.7550.2_42705.exe?model=UX3407RA
[4] https://www.asus.com/ch-en/laptops/for-home/zenbook/asus-zenbook-a14-ux3407/helpdesk_download?model2Name=UX3407RA
[5] https://git.launchpad.net/~alexvinarskis/ubuntu/+source/qcom-firmware-extract/tree/qcom-firmware-extract?h=asus-zenbook-a14

Quoted 2 lines

Konrad

#17 lore raw

Re: [PATCH v1 6/6] arm64: dts: qcom: Add support for X1-based Asus Zenbook A14

Quoted 14 lines · Aleksandrs Vinarskis
Quoted 12 lines · Konrad Dybcio
Quoted 9 lines · Aleksandrs Vinarskis

Initial support for Asus Zenbook A14. Particular moddel exists in X1-26-100, X1P-42-100 (UX3407QA) and X1E-78-100 (UX3407RA).

Mostly similar to other X1-based laptops. Notable differences are:
* Wifi/Bluetooth combo being Qualcomm FastConnect 6900 on UX3407QA and Qualcomm FastConnect 7800 on UX3407RA
* USB Type-C retimers are Parade PS8833, appear to behave identical to Parade PS8830
* gpio90 is TZ protected

[...]

Quoted 18 lines
Quoted 9 lines

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi line 1009

Quoted 6 lines

+&spi10 {

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +4 -0
+     status = "disabled";
+
+     /* Unknown device */
+};

Does the device crash if you enable this bus? Keeping it 'okay' would make it easier for folks to poke at it

It does boot just fine, but does not initialize:

```
geni_spi a88000.spi: Invalid proto 9
...
qnoc-x1e80100 interconnect-1: sync_state() pending due to a88000.spi
...
```
Quoted 4 lines

I only quickly checked that 9 is indeed invalid state, iirc should've been 2. But haven't looked deeper into it, so left it disabled. So I thought best to leave it off for now. Unless you prefer to drop it altogether?

That means this QUP is configured to work as a QSPI host, which is not yet supported upstream. I looked at the DSDT you submitted to aa64-laptops, but there doesn't seem to be anything connected there, perhaps it's loaded at runtime. Since your keyboard and touchpad work, maybe it's a touchscreen?

Quoted 22 lines
Quoted 22 lines

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi line 1020

Quoted 13 lines
arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +11 -0
+
+&tlmm {
+     gpio-reserved-ranges = <44 4>,  /* SPI11, TZ Protected */
+                            <90 1>;  /* Unknown, TZ Protected */
+
+     bt_en_default: bt-en-sleep {
+             pins = "gpio116";
+             function = "gpio";
+             output-low;
+             bias-disable;
+             qcom,drive-strength = <16>;

drop "qcom," and please keep the order of:

pins
function
drive-strength
bias
output/input

Quoted 6 lines
Quoted 1 line

as you did below

Will do.

Should I also drop 'qcom,' from the 'misc_3p3_reg_en' and adjust order the same way, or that one is somehow special?

Sort of. &tlmm and &pm8xxx_gpios use two different drivers, each one of which has slightly different expectations about their subnodes.

Quoted 9 lines
Quoted 7 lines

arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts line 13

Quoted 5 lines
arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts new file +3 -0
+
+/ {
+     model = "ASUS Zenbook A14 UX3407RA";

There's no strict policy, but variants usually go in braces

Parenthesis I guess, "ASUS Zenbook A14 (UX3407RA)" ?

Ugh, yes!

[...]

Quoted 10 lines
Quoted 6 lines

arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts line 22

Quoted 4 lines
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts new file +4 -0
+
+&gpu_zap_shader {
+     firmware-name = "qcom/x1p42100/ASUSTeK/zenbook-a14/qcdxkmsuc8380.mbn";
+};

This file is not going to work on this SoC, you can drop it

I guess it would need a different firmware name? If yes, can we already add the new name, such that once x1p42100 gains GPU support it will get enabled 'automatically'?

The filename is different indeed. You can add it, as currently this property is not yet consumed by anything, anyway.

[...]

Quoted 37 lines
Quoted 16 lines
Quoted 4 lines
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts new file +3 -0
+
+&remoteproc_adsp {
+     firmware-name = "qcom/x1p42100/ASUSTeK/zenbook-a14/qcadsp8380.mbn",

arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts line 35

Quoted 10 lines
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts new file +10 -0
+                     "qcom/x1p42100/ASUSTeK/zenbook-a14/adsp_dtbs.elf";
+
+     status = "okay";
+};
+
+&remoteproc_cdsp {
+     firmware-name = "qcom/x1p42100/ASUSTeK/zenbook-a14/qccdsp8380.mbn",
+                     "qcom/x1p42100/ASUSTeK/zenbook-a14/cdsp_dtbs.elf";
+
+     status = "okay";

Are the DSP firmware files actually different between the two?

CDSP is the same. ADSP blobs to my surprise are different, both '.elf' and '.mbn'. But like I wrote in the cover letter, perhaps Asus just forgot to update adsp firmware? Though according to changelong on device pages [2],[4] both have "ADSP Driver : 2.0.4135.0200"

Compared by:
* Downloading UX3407QA's drivers [1], from the device page [2] and UX3407RA'a drivers [3] from the device page [4]
* Extract and flatten with 7z e filename.exe
* Compare via md5sum *dsp*elf *dsp*mbn *dsp*jsn

Though, even if the blobs would be/will be the same, I think it is still beneficial to define firmware path per model, as this makes firmware extraction from driver/Windows partition and placement much easier. Unfortunately, as it seems so far, most of the devices besides Lenovos are not having firmware upstreamed, so this is pretty relevant. Eg. Ubuntu already has 'firmware extracting tool' [5] (draft MR to include Zenbook as well), I'm guessing other distros have something similar, though I haven't followed up.

Quoted 5 lines

On the other hand, these tools could of course get path from device tree directly, eg. via cat /sys/firmware/devicetree/base/soc@0/remoteproc@32300000/firmware-name, then having all the blobs for the device in one location is less relevant...

More importantly, different blobs may (but don't necessarily have to) include different, hardcoded expectations about the board (or platform) they run on. So let's keep them separate.

Konrad

#18 lore raw

Re: [PATCH v1 6/6] arm64: dts: qcom: Add support for X1-based Asus Zenbook A14

Quoted 42 lines · Konrad Dybcio
Quoted 14 lines · Aleksandrs Vinarskis
Quoted 12 lines · Konrad Dybcio
Quoted 9 lines · Aleksandrs Vinarskis

Initial support for Asus Zenbook A14. Particular moddel exists in X1-26-100, X1P-42-100 (UX3407QA) and X1E-78-100 (UX3407RA).

Mostly similar to other X1-based laptops. Notable differences are:
* Wifi/Bluetooth combo being Qualcomm FastConnect 6900 on UX3407QA and Qualcomm FastConnect 7800 on UX3407RA
* USB Type-C retimers are Parade PS8833, appear to behave identical to Parade PS8830
* gpio90 is TZ protected

[...]

Quoted 18 lines
Quoted 9 lines

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi line 1009

Quoted 6 lines

+&spi10 {

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +4 -0
+     status = "disabled";
+
+     /* Unknown device */
+};

Does the device crash if you enable this bus? Keeping it 'okay' would make it easier for folks to poke at it

It does boot just fine, but does not initialize:

```
geni_spi a88000.spi: Invalid proto 9
...
qnoc-x1e80100 interconnect-1: sync_state() pending due to a88000.spi
...
```
Quoted 4 lines

I only quickly checked that 9 is indeed invalid state, iirc should've been 2. But haven't looked deeper into it, so left it disabled. So I thought best to leave it off for now. Unless you prefer to drop it altogether?

Quoted 5 lines

That means this QUP is configured to work as a QSPI host, which is not yet supported upstream. I looked at the DSDT you submitted to aa64-laptops, but there doesn't seem to be anything connected there, perhaps it's loaded at runtime. Since your keyboard and touchpad work, maybe it's a touchscreen?

Indeed it is just defined without anything attached. I am suspecting it also may be just leftover, won't be the first one... No, this particular laptop doesn't have a touchscreen in any of the three screen configurations announced.

It also does not have a fingerprint reader, nor hardware TPM2.0 (yet SPI11 typically used for it is still TZ protected :). EC seems to be over i2c5. Asus's touchpad supports some fancy gesture controls, but there is in fact another 'extra' hidraw device 'hdtl', I assume that's the one. No sdcard reader.
Only other still unsupported features are audio (i guess unlikely that they used different smart amp?), camera (ov02c01, pm8010, so also no) and DP-HDMI bridge PS185HDM, which from what I can guesstimate is i2c.

So I am a bit out of ideas of what it could be...only thing that comes to my mind is headphone jack smart amp, ifff they did not use qcom amp one there as well?

Quoted 25 lines
Quoted 25 lines
Quoted 24 lines
Quoted 4 lines
arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +1 -0
+

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi line 1020

Quoted 10 lines
arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +10 -0
+&tlmm {
+     gpio-reserved-ranges = <44 4>,  /* SPI11, TZ Protected */
+                            <90 1>;  /* Unknown, TZ Protected */
+
+     bt_en_default: bt-en-sleep {
+             pins = "gpio116";
+             function = "gpio";
+             output-low;
+             bias-disable;
+             qcom,drive-strength = <16>;

drop "qcom," and please keep the order of:

pins
function
drive-strength
bias
output/input

as you did below

Quoted 7 lines
Quoted 4 lines

Will do.

Should I also drop 'qcom,' from the 'misc_3p3_reg_en' and adjust order the same way, or that one is somehow special?

Sort of. &tlmm and &pm8xxx_gpios use two different drivers, each one of which has slightly different expectations about their subnodes.

Ah I see. Okay, will fix the order, but will leave qcom, as is.

Quoted 11 lines
Quoted 9 lines
Quoted 7 lines

arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts line 13

Quoted 5 lines
arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts new file +3 -0
+
+/ {
+     model = "ASUS Zenbook A14 UX3407RA";

There's no strict policy, but variants usually go in braces

Parenthesis I guess, "ASUS Zenbook A14 (UX3407RA)" ?

Ugh, yes!

Sounds reasonable and looks a bit better, will update.

Quoted 10 lines

[...]

Quoted 7 lines
Quoted 6 lines

arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts line 22

Quoted 4 lines
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts new file +4 -0
+
+&gpu_zap_shader {
+     firmware-name = "qcom/x1p42100/ASUSTeK/zenbook-a14/qcdxkmsuc8380.mbn";
+};

This file is not going to work on this SoC, you can drop it

Quoted 6 lines
Quoted 3 lines

I guess it would need a different firmware name? If yes, can we already add the new name, such that once x1p42100 gains GPU support it will get enabled 'automatically'?

The filename is different indeed. You can add it, as currently this property is not yet consumed by anything, anyway.

Just checked, should be the qcdxkmsucpurwa.mbn then. Will update it, thanks for confirmation.

Quoted 46 lines

[...]

Quoted 37 lines
Quoted 16 lines
Quoted 4 lines
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts new file +3 -0
+
+&remoteproc_adsp {
+     firmware-name = "qcom/x1p42100/ASUSTeK/zenbook-a14/qcadsp8380.mbn",

arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts line 35

Quoted 10 lines
arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts new file +10 -0
+                     "qcom/x1p42100/ASUSTeK/zenbook-a14/adsp_dtbs.elf";
+
+     status = "okay";
+};
+
+&remoteproc_cdsp {
+     firmware-name = "qcom/x1p42100/ASUSTeK/zenbook-a14/qccdsp8380.mbn",
+                     "qcom/x1p42100/ASUSTeK/zenbook-a14/cdsp_dtbs.elf";
+
+     status = "okay";

Are the DSP firmware files actually different between the two?

CDSP is the same. ADSP blobs to my surprise are different, both '.elf' and '.mbn'. But like I wrote in the cover letter, perhaps Asus just forgot to update adsp firmware? Though according to changelong on device pages [2],[4] both have "ADSP Driver : 2.0.4135.0200"

Compared by:
* Downloading UX3407QA's drivers [1], from the device page [2] and UX3407RA'a drivers [3] from the device page [4]
* Extract and flatten with 7z e filename.exe
* Compare via md5sum *dsp*elf *dsp*mbn *dsp*jsn

Though, even if the blobs would be/will be the same, I think it is still beneficial to define firmware path per model, as this makes firmware extraction from driver/Windows partition and placement much easier. Unfortunately, as it seems so far, most of the devices besides Lenovos are not having firmware upstreamed, so this is pretty relevant. Eg. Ubuntu already has 'firmware extracting tool' [5] (draft MR to include Zenbook as well), I'm guessing other distros have something similar, though I haven't followed up.

Quoted 5 lines

On the other hand, these tools could of course get path from device tree directly, eg. via cat /sys/firmware/devicetree/base/soc@0/remoteproc@32300000/firmware-name, then having all the blobs for the device in one location is less relevant...

Quoted 3 lines

More importantly, different blobs may (but don't necessarily have to) include different, hardcoded expectations about the board (or platform) they run on. So let's keep them separate.

Ah okay. Perfect, keeping as is.

Thanks,
Alex

Quoted 2 lines

Konrad

#19 lore raw

Re: [PATCH v1 6/6] arm64: dts: qcom: Add support for X1-based Asus Zenbook A14

Quoted 55 lines
Quoted 42 lines · Konrad Dybcio
Quoted 14 lines · Aleksandrs Vinarskis
Quoted 12 lines · Konrad Dybcio
Quoted 9 lines · Aleksandrs Vinarskis

Initial support for Asus Zenbook A14. Particular moddel exists in X1-26-100, X1P-42-100 (UX3407QA) and X1E-78-100 (UX3407RA).

Mostly similar to other X1-based laptops. Notable differences are:
* Wifi/Bluetooth combo being Qualcomm FastConnect 6900 on UX3407QA and Qualcomm FastConnect 7800 on UX3407RA
* USB Type-C retimers are Parade PS8833, appear to behave identical to Parade PS8830
* gpio90 is TZ protected

[...]

Quoted 18 lines
Quoted 9 lines

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi line 1009

Quoted 6 lines

+&spi10 {

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +4 -0
+     status = "disabled";
+
+     /* Unknown device */
+};

Does the device crash if you enable this bus? Keeping it 'okay' would make it easier for folks to poke at it

It does boot just fine, but does not initialize:

```
geni_spi a88000.spi: Invalid proto 9
...
qnoc-x1e80100 interconnect-1: sync_state() pending due to a88000.spi
...
```
Quoted 4 lines

I only quickly checked that 9 is indeed invalid state, iirc should've been 2. But haven't looked deeper into it, so left it disabled. So I thought best to leave it off for now. Unless you prefer to drop it altogether?

Quoted 5 lines

That means this QUP is configured to work as a QSPI host, which is not yet supported upstream. I looked at the DSDT you submitted to aa64-laptops, but there doesn't seem to be anything connected there, perhaps it's loaded at runtime. Since your keyboard and touchpad work, maybe it's a touchscreen?

Indeed it is just defined without anything attached. I am suspecting it also may be just leftover, won't be the first one... No, this particular laptop doesn't have a touchscreen in any of the three screen configurations announced.

Quoted 8 lines

It also does not have a fingerprint reader, nor hardware TPM2.0 (yet SPI11 typically used for it is still TZ protected :). EC seems to be over i2c5. Asus's touchpad supports some fancy gesture controls, but there is in fact another 'extra' hidraw device 'hdtl', I assume that's the one. No sdcard reader.
Only other still unsupported features are audio (i guess unlikely that they used different smart amp?), camera (ov02c01, pm8010, so also no) and DP-HDMI bridge PS185HDM, which from what I can guesstimate is i2c.

I actually managed to contact someone about the ps185hdm as it is also used in my asus vivobook s15. But from what they told me it is a dumb bridge that does not require any further configuration. I have tried getting it to work but I've had no luck yet. I did find a hpd gpio at tlmm 126.

I currently have just tried ignoring its existence and describing a non existent dp-connector with the hpd gpio hooked up to mdss_dp2_out but no luck. I get a timeout on the aux bus communication I think, so something is blocking that still.

I think it may just be some regulator or something required to actually power up the ps185hdm

from my correspondence:
`
Hi Maud,

There is no “enable pin” on the PS185 but there are several GPIO’s. The FW associated with the device is programmable so the manufacturer of the motherboard you are using may have requested a special feature (such as an enable pin on one of the GPIO) to be added by Parade. If that’s the case then you would need to contact the motherboard manufacturer to find out more details.

Hot plug events are normally routed through the DP_HPD pin but, as noted above, it’s possible that the motherboard manufacturer asked for this to be replicated on the GPIO pin. `

some messing around of me in the dts can be found here: [1]

[...]

[1]: https://github.com/SpieringsAE/linux/blob/wip/x1e80100-6.14/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts

kind regards,
Maud

#20 lore raw

Re: [PATCH v1 6/6] arm64: dts: qcom: Add support for X1-based Asus Zenbook A14

Quoted 71 lines · Maud Spierings
Quoted 56 lines
Quoted 42 lines · Konrad Dybcio
Quoted 14 lines · Aleksandrs Vinarskis
Quoted 12 lines · Konrad Dybcio
Quoted 9 lines · Aleksandrs Vinarskis

Initial support for Asus Zenbook A14. Particular moddel exists in X1-26-100, X1P-42-100 (UX3407QA) and X1E-78-100 (UX3407RA).

Mostly similar to other X1-based laptops. Notable differences are:
* Wifi/Bluetooth combo being Qualcomm FastConnect 6900 on UX3407QA and Qualcomm FastConnect 7800 on UX3407RA
* USB Type-C retimers are Parade PS8833, appear to behave identical to Parade PS8830
* gpio90 is TZ protected

[...]

Quoted 18 lines
Quoted 9 lines

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi line 1009

Quoted 6 lines

+&spi10 {

arch/arm64/boot/dts/qcom/x1-zenbook-a14.dtsi new file +4 -0
+     status = "disabled";
+
+     /* Unknown device */
+};

Does the device crash if you enable this bus? Keeping it 'okay' would make it easier for folks to poke at it

It does boot just fine, but does not initialize:

```
geni_spi a88000.spi: Invalid proto 9
...
qnoc-x1e80100 interconnect-1: sync_state() pending due to a88000.spi
...
```
Quoted 4 lines

I only quickly checked that 9 is indeed invalid state, iirc should've been 2. But haven't looked deeper into it, so left it disabled. So I thought best to leave it off for now. Unless you prefer to drop it altogether?

Quoted 5 lines

That means this QUP is configured to work as a QSPI host, which is not yet supported upstream. I looked at the DSDT you submitted to aa64-laptops, but there doesn't seem to be anything connected there, perhaps it's loaded at runtime. Since your keyboard and touchpad work, maybe it's a touchscreen?

Indeed it is just defined without anything attached. I am suspecting it also may be just leftover, won't be the first one... No, this particular laptop doesn't have a touchscreen in any of the three screen configurations announced.

Quoted 8 lines

It also does not have a fingerprint reader, nor hardware TPM2.0 (yet SPI11 typically used for it is still TZ protected :). EC seems to be over i2c5. Asus's touchpad supports some fancy gesture controls, but there is in fact another 'extra' hidraw device 'hdtl', I assume that's the one. No sdcard reader.
Only other still unsupported features are audio (i guess unlikely that they used different smart amp?), camera (ov02c01, pm8010, so also no) and DP-HDMI bridge PS185HDM, which from what I can guesstimate is i2c.

I actually managed to contact someone about the ps185hdm as it is also used in my asus vivobook s15. But from what they told me it is a dumb bridge that does not require any further configuration. I have tried getting it to work but I've had no luck yet. I did find a hpd gpio at tlmm 126.

Quoted 4 lines

I currently have just tried ignoring its existence and describing a non existent dp-connector with the hpd gpio hooked up to mdss_dp2_out but no luck. I get a timeout on the aux bus communication I think, so something is blocking that still.

I think it was your messages that I saw on IRC of aarch64-laptops then. Can confirm both HPD on tlmm, and lack of any i2c devices on newly created virtual bus.

Quoted 3 lines

I think it may just be some regulator or something required to actually power up the ps185hdm

That was my conclusion as well. Would you mind following up with them, if they could disclose the amount of voltage supplies the IC is expecting? if it's 1 or 2, it's rather easy to bruteforce all unused pin combinations. If it's more than that, it's only reasonable to enable all unused GPIOs to high at once, which I wouldn't do tbh :)

The weird thing is that according to a rather simplified publically available diagram, HPD is actually propagated through the PS185, implying that bridge is on. It could be that IC requires multiple supplies, hence Aux bus is not working, but in my experience these devices typically don't start until all of the required supplies are up.

Quoted 12 lines

from my correspondence:
`
Hi Maud,

There is no “enable pin” on the PS185 but there are several GPIO’s. The FW associated with the device is programmable so the manufacturer of the motherboard you are using may have requested a special feature (such as an enable pin on one of the GPIO) to be added by Parade. If that’s the case then you would need to contact the motherboard manufacturer to find out more details.

Quoted 6 lines

Hot plug events are normally routed through the DP_HPD pin but, as noted above, it’s possible that the motherboard manufacturer asked for this to be replicated on the GPIO pin.
`

some messing around of me in the dts can be found here: [1]

I think, you would also need to enable usb_1_ss2 combo phy, afaik only mdss3 (for eDP) has a dedicated DP phy, for the rest it's a combo qmpphy. Konrad could probably confirm?
Once i2c/aux works, maybe we would also need a small driver to set phy to DP mode, as afaik pmic-glink handles these. Just hypothesis though. I have tried adding a dummy "dp-connector" like you did, but as a child node to pmic-glink, hoping that it would handle the alt mode, but it is probably not that easy :)

Would be happy to cooperate on debugging this offline.

Alex

Quoted 8 lines

[...]

[1]:
https://github.com/SpieringsAE/linux/blob/wip/x1e80100-6.14/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts

kind regards,
Maud

#21 lore raw

Re: [PATCH v1 6/6] arm64: dts: qcom: Add support for X1-based Asus Zenbook A14

Quoted 127 lines · Aleksandrs Vinarskis
Quoted 71 lines · Maud Spierings
Quoted 56 lines
Quoted 42 lines · Konrad Dybcio
Quoted 14 lines · Aleksandrs Vinarskis
Quoted 12 lines · Konrad Dybcio
Quoted 9 lines · Aleksandrs Vinarskis

Initial support for Asus Zenbook A14. Particular moddel exists in X1-26-100, X1P-42-100 (UX3407QA) and X1E-78-100 (UX3407RA).

Mostly similar to other X1-based laptops. Notable differences are:
* Wifi/Bluetooth combo being Qualcomm FastConnect 6900 on UX3407QA and Qualcomm FastConnect 7800 on UX3407RA
* USB Type-C retimers are Parade PS8833, appear to behave identical to Parade PS8830
* gpio90 is TZ protected

[...]

Quoted 18 lines
Quoted 9 lines

Review

Quoted 6 lines

+&spi10 {

(quoted diff) +4 -0
+     status = "disabled";
+
+     /* Unknown device */
+};

Does the device crash if you enable this bus? Keeping it 'okay' would make it easier for folks to poke at it

It does boot just fine, but does not initialize:

```
geni_spi a88000.spi: Invalid proto 9
...
qnoc-x1e80100 interconnect-1: sync_state() pending due to a88000.spi
...
```
Quoted 4 lines

I only quickly checked that 9 is indeed invalid state, iirc should've been 2. But haven't looked deeper into it, so left it disabled. So I thought best to leave it off for now. Unless you prefer to drop it altogether?

Quoted 5 lines

That means this QUP is configured to work as a QSPI host, which is not yet supported upstream. I looked at the DSDT you submitted to aa64-laptops, but there doesn't seem to be anything connected there, perhaps it's loaded at runtime. Since your keyboard and touchpad work, maybe it's a touchscreen?

Indeed it is just defined without anything attached. I am suspecting it also may be just leftover, won't be the first one... No, this particular laptop doesn't have a touchscreen in any of the three screen configurations announced.

Quoted 8 lines

It also does not have a fingerprint reader, nor hardware TPM2.0 (yet SPI11 typically used for it is still TZ protected :). EC seems to be over i2c5. Asus's touchpad supports some fancy gesture controls, but there is in fact another 'extra' hidraw device 'hdtl', I assume that's the one. No sdcard reader.
Only other still unsupported features are audio (i guess unlikely that they used different smart amp?), camera (ov02c01, pm8010, so also no) and DP-HDMI bridge PS185HDM, which from what I can guesstimate is i2c.

I actually managed to contact someone about the ps185hdm as it is also used in my asus vivobook s15. But from what they told me it is a dumb bridge that does not require any further configuration. I have tried getting it to work but I've had no luck yet. I did find a hpd gpio at tlmm 126.

Quoted 4 lines

I currently have just tried ignoring its existence and describing a non existent dp-connector with the hpd gpio hooked up to mdss_dp2_out but no luck. I get a timeout on the aux bus communication I think, so something is blocking that still.

I think it was your messages that I saw on IRC of aarch64-laptops then. Can confirm both HPD on tlmm, and lack of any i2c devices on newly created virtual bus.

Quoted 3 lines

I think it may just be some regulator or something required to actually power up the ps185hdm

That was my conclusion as well. Would you mind following up with them, if they could disclose the amount of voltage supplies the IC is expecting? if it's 1 or 2, it's rather easy to bruteforce all unused pin combinations. If it's more than that, it's only reasonable to enable all unused GPIOs to high at once, which I wouldn't do tbh :)

The weird thing is that according to a rather simplified publically available diagram, HPD is actually propagated through the PS185, implying that bridge is on. It could be that IC requires multiple supplies, hence Aux bus is not working, but in my experience these devices typically don't start until all of the required supplies are up.

Quoted 12 lines

from my correspondence:
`
Hi Maud,

There is no “enable pin” on the PS185 but there are several GPIO’s. The FW associated with the device is programmable so the manufacturer of the motherboard you are using may have requested a special feature (such as an enable pin on one of the GPIO) to be added by Parade. If that’s the case then you would need to contact the motherboard manufacturer to find out more details.

Quoted 6 lines

Hot plug events are normally routed through the DP_HPD pin but, as noted above, it’s possible that the motherboard manufacturer asked for this to be replicated on the GPIO pin.
`

some messing around of me in the dts can be found here: [1]

I think, you would also need to enable usb_1_ss2 combo phy, afaik only mdss3 (for eDP) has a dedicated DP phy, for the rest it's a combo qmpphy. Konrad could probably confirm?
Once i2c/aux works, maybe we would also need a small driver to set phy to DP mode, as afaik pmic-glink handles these. Just hypothesis though. I have tried adding a dummy "dp-connector" like you did, but as a child node to pmic-glink, hoping that it would handle the alt mode, but it is probably not that easy :)

Quoted 3 lines

Would be happy to cooperate on debugging this offline.

Alex

Small update,

Following initial work from Maud, I hacked around a bit and got HDMI working _most of the times_ on cold boot. Far from complete, but this proves the IC is indeed working as dumb bridge. At least non Zenbook DP routed to qmphy, like hinted by DSDT.
I am guessing the HPD event comes too early, before AUX is ready for EDID readout to be the cause of the hotplug almost never working, since I can always readout EDID manually just fine. Will need to investigate it a bit more.

Initial (dirty) change for Asus Zenbook A14 [1].

[1] https://github.com/alexVinarskis/linux-x1e80100-zenbook-a14/commit/90466cd004c3df5d717295ae7dcd5ed183701de0

Quoted 11 lines
Quoted 11 lines

[...]

[1]:
https://github.com/SpieringsAE/linux/blob/wip/x1e80100-6.14/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts

kind regards,
Maud