Skip to contentSkip to conversation

Introduce HONOR MagicBook Art 14 Snapdragon device tree

PATCH Superseded Konstantin Shabanov 3 participants 7 messages Jun 28

Subsystems (3)

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

v4 cover Introduce HONOR MagicBook Art 14 Snapdragon device tree

Introduce support for the HONOR MagicBook Art 14 Snapdragon laptop. This version is based on the initial work by Kirill A. Korinsky [1] and Valentin Manea [2].

I'm using it with two external displays connected to the HDMI port and DP<->USB-C (over external hub) as a daily driver.

eDP support is disabled and hopefully will be addressed in the follow-up [1]. I can confirm that the RFC patch by the link fixes output corruption (thanks Valentin!). Though, I have as suspicion that the issue can be resolved w/o introducing the panel driver as the very same panel seems to work out of the box in x86 version of the laptop [7].

Another caveat is USB-C orientation as I could boot from an external SSD only with specific cable orientation. I've tried the patch [8] but got some instabilities, so put it out of scope for the initial submission.

Supported:

- Sound (with alsa-ucm-conf config [5])
- Speakers
- Headphone jack
- Bluetooth
- Battery
- HDMI
- DP over USB-C
- Touchpad
- Keyboard (with backlight)
- Touchscreen
- WiFi
- USB-C ports
- USB-A port
- UFS
- H/W accel

Untested:

- Camera
- Fingerprint reader
- Sleep/Suspend

Disabled:

- eDP

ACPI dumps are available in aarch64-laptops repo [3]. HWids in dtbloader repo [4].

[1]: https://lore.kernel.org/all/[email protected]/
[2]: https://github.com/vamanea/linux-magicbook/blob/qcom-x1e-7.0/arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts
[3]: https://github.com/aarch64-laptops/build/tree/master/misc/honor-magicbook-art-14/acpi
[4]: https://github.com/TravMurav/dtbloader/blob/main/src/devices/honor_magicbook_art_14.c
[5]: https://github.com/alsa-project/alsa-ucm-conf/pull/755
[6]: https://lore.kernel.org/linux-arm-msm/[email protected]/
[7]: https://linux-hardware.org/?id=eisa:edo-edo4179
[8]: https://github.com/vamanea/linux-magicbook/commit/b855efb02268677d84dac4b9e27b1c5c9425d81d.patch
---
Changes in v4:
- Dropped output-foo properties from TLMM pins
- Sorted pins by their index
- Dropped data-lanes from mdss_dpX to use the default (4-lane)
- Added a space before the opening bracket in the comment
- Link to v3: https://lore.kernel.org/linux-arm-msm/[email protected]

Changes in v3:
- Update sound model to the board's name
- Dropped unnecessary output-foo properties as they are controlled by the driver
- Reordered properties alphabetically where needed
- Updated mdss_dp0_out from 2 to 4 data lanes
- Dropped extraneous USB related comments
- Link to v2: https://lore.kernel.org/linux-arm-msm/[email protected]

Changes in v2:
- Disabled eDP;
- Dropped displayport dai links (they weren't tested);
- Dropped SBU MUXes as they make DP over USB-C unreliable;
- Link to v1: https://lore.kernel.org/linux-arm-msm/[email protected]
---
Konstantin Shabanov (4):
dt-bindings: vendor-prefixes: Add HONOR
dt-bindings: arm: qcom: Add HONOR MagicBook Art 14
arm64: dts: qcom: Add HONOR MagicBook Art 14 device tree
firmware: qcom: scm: Allow QSEECOM on Honor Magicbook Art 14

 .../devicetree/bindings/arm/qcom.yaml         |    1 +
 .../devicetree/bindings/vendor-prefixes.yaml  |    2 +
 arch/arm64/boot/dts/qcom/Makefile             |    2 +
 .../qcom/x1e80100-honor-magicbook-art-14.dts  | 1305 +++++++++++++++++
 drivers/firmware/qcom/qcom_scm.c              |    1 +
 5 files changed, 1311 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts

base-commit: 4edcdefd4083ae04b1a5656f4be6cd83ae919ef4 --
2.54.0

#1 lore raw

PATCH v4 1/4 dt-bindings: vendor-prefixes: Add HONOR

Add vendor prefix for Honor Device Co., Ltd.

---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 396044f368e7..9ca2508f531f 100644
@@ -735,6 +735,8 @@ patternProperties:
     description: Honestar Technologies Co., Ltd.
   "^honeywell,.*":
     description: Honeywell
+  "^honor,.*":
+    description: Honor Device Co., Ltd.
   "^hoperf,.*":
     description: Shenzhen Hope Microelectronics Co., Ltd.
   "^hoperun,.*":
Signature · 1 line
2.54.0
#2 lore raw

PATCH v4 2/4 dt-bindings: arm: qcom: Add HONOR MagicBook Art 14

In reply to Konstantin Shabanov

Document the X1E-80-100 variant of the HONOR MagicBook Art 14.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
index 50cc18a6ec5e..fd985f8adb0e 100644
@@ -1160,6 +1160,7 @@ properties:
               - dell,inspiron-14-plus-7441
               - dell,latitude-7455
               - dell,xps13-9345
+              - honor,magicbook-art-14-snapdragon
               - hp,elitebook-ultra-g1q
               - hp,omnibook-x14
               - lenovo,ideacentre-mini-01q8x10
Signature · 1 line
2.54.0
#3 lore raw

PATCH v4 3/4 arm64: dts: qcom: Add HONOR MagicBook Art 14 device tree

In reply to Konstantin Shabanov

Introduce support for the HONOR MagicBook Art 14 laptop. This version is based on the initial work by Kirill A. Korinsky [1] and Valentin Manea [2].

Supported:

- Sound (with alsa-ucm-conf config [3])
- Speakers
- Headphone jack
- Bluetooth
- Battery
- HDMI
- Touchpad
- Keyboard (with backlight)
- Touchscreen
- WiFi
- USB-C ports
- USB-A port
- UFS
- H/W accel
- DP over USB-C

Untested:

- Camera
- Fingerprint reader
- Sleep/Suspend

Broken:

- eDP

[1]: https://lore.kernel.org/all/[email protected]/
[2]: https://github.com/vamanea/linux-magicbook/blob/x1e80100-magicbook-6.19/arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts
[3]: https://github.com/alsa-project/alsa-ucm-conf/pull/755

---
 arch/arm64/boot/dts/qcom/Makefile             |    2 +
 .../qcom/x1e80100-honor-magicbook-art-14.dts  | 1305 +++++++++++++++++
 2 files changed, 1307 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts
arch/arm64/boot/dts/qcom/Makefile +2 -0
index 6f33c4e2f09c..26d568ac5e8f 100644
@@ -457,3 +457,5 @@ x1p42100-lenovo-thinkbook-16-el2-dtbs	:= x1p42100-lenovo-thinkbook-16.dtb x1-el2
 dtb-$(CONFIG_ARCH_QCOM)	+= x1p42100-lenovo-thinkbook-16.dtb x1p42100-lenovo-thinkbook-16-el2.dtb
 x1p64100-microsoft-denali-el2-dtbs	:= x1p64100-microsoft-denali.dtb x1-el2.dtbo
 dtb-$(CONFIG_ARCH_QCOM)	+= x1p64100-microsoft-denali.dtb x1p64100-microsoft-denali-el2.dtb
+x1e80100-honor-magicbook-art-14-el2-dtbs := x1e80100-honor-magicbook-art-14.dtb x1-el2.dtbo
+dtb-$(CONFIG_ARCH_QCOM) += x1e80100-honor-magicbook-art-14.dtb x1e80100-honor-magicbook-art-14-el2.dtb
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +1305 -0

1,305 lines not on this page · raw message

Signature · 1 line
2.54.0
#4 lore raw

Re: [PATCH v4 3/4] arm64: dts: qcom: Add HONOR MagicBook Art 14 device tree

Thank you for your contribution! Sashiko AI review found 5 potential issue(s) to consider: - [High] Mismatch between touchpad interrupt GPIO and its pinctrl configuration. - [Medium] Type-C SBU…

Thank you for your contribution! Sashiko AI review found 5 potential issue(s) to consider:
- [High] Mismatch between touchpad interrupt GPIO and its pinctrl configuration.
- [Medium] Type-C SBU (Sideband Use) routing is omitted from the USB-C connectors in pmic-glink, breaking the DisplayPort Alt Mode AUX channel.
- [Medium] QMP DisplayPort PHY is directly connected to hdmi-connector without an intervening DP-to-HDMI bridge node.
- [Medium] Both WooferRight and TweeterRight are routed to the same 'WSA2 WSA_SPK2 OUT' source widget.
- [Medium] The touchscreen reset pin (gpio48) is configured in pinctrl but never driven to an active output state.
--

commit 856d8e361f3fb8f4f8c9dce853782183cccf8f2e
Author: Konstantin Shabanov <[email protected]>

arm64: dts: qcom: Add HONOR MagicBook Art 14 device tree

Introduce support for the HONOR MagicBook Art 14 laptop. This version is based on the initial work by Kirill A. Korinsky and Valentin Manea.

Quoted 5 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +0 -0
new file mode 100644
index 0000000000000..b3113a0ee9283

[ ... ]

arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts line 83

Quoted 13 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +13 -0
+	hdmi-connector {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		pinctrl-0 = <&hdmi_hpd_default>;
+		pinctrl-names = "default";
+
+		port {
+			hdmi_con: endpoint {
+				remote-endpoint = <&usb_1_ss2_qmpphy_out_dp>;
+			};
+		};
+	};

[Severity: Medium]
Is this missing an active DP-to-HDMI bridge node? The Snapdragon QMP DP PHY outputs native DisplayPort signaling, but the remote-endpoint is directly connected to an hdmi-connector node here.

Because the SoC does not support native TMDS (HDMI) output, this bypasses the necessary hardware bridge, which can leave the bridge unmanaged by the kernel.

[ ... ]

Quoted 2 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +2 -0
+	pmic-glink {
+		compatible = "qcom,x1e80100-pmic-glink",

[ ... ]

Quoted 12 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +12 -0
+		/* Left-side port, closer to the screen */
+		connector@0 {
+			compatible = "usb-c-connector";
+			reg = <0>;
+			power-role = "dual";
+			data-role = "dual";
+
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				port@0 {

[ ... ]

Quoted 1 line
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +1 -0
+				port@1 {

[ ... ]

arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts

Quoted 2 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +2 -0
+			};
+		};

[Severity: Medium]
Does this routing omit the Type-C SBU (Sideband Use) ports? DisplayPort Alt Mode requires the SBU lines for the AUX channel.

Without a port@2 node for SBU routing, the orientation switch cannot correctly flip the AUX channel lines, which will likely break DisplayPort link training.

[ ... ]

arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts line 168

Quoted 7 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +7 -0
+	sound {
+		compatible = "qcom,x1e80100-sndcard";
+		model = "X1E80100-HONOR-MagicBook-Art-14-Snapdragon";
+		audio-routing = "WooferLeft IN", "WSA WSA_SPK1 OUT",
+				"TweeterLeft IN", "WSA WSA_SPK2 OUT",
+				"WooferRight IN", "WSA2 WSA_SPK2 OUT",
+				"TweeterRight IN", "WSA2 WSA_SPK2 OUT",

[Severity: Medium]
Are both the WooferRight and TweeterRight meant to map to the exact same output source widget (WSA2 WSA_SPK2 OUT)? This leaves WSA2 WSA_SPK1 OUT unused and might prevent the right audio channels from mixing and playing properly.

[ ... ]

Quoted 11 lines

+&i2c1 {

arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +10 -0
+	clock-frequency = <400000>;
+
+	status = "okay";
+
+	touchpad@5d {
+		compatible = "hid-over-i2c";
+		reg = <0x5d>;
+
+		hid-descr-addr = <0x1>;
+		interrupts-extended = <&tlmm 24 IRQ_TYPE_LEVEL_LOW>;

[ ... ]

arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts

Quoted 2 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +2 -0
+		pinctrl-0 = <&tpad_default>;
+		pinctrl-names = "default";

[Severity: High]
Could there be a mismatch between the interrupt GPIO and the pinctrl configuration here?

The interrupts-extended property declares the interrupt on gpio24, but the tpad_default node configured below targets gpio3:

[ ... ]

Quoted 1 line

+&tlmm {

[ ... ]

arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts line 1052

Quoted 5 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +5 -0
+	tpad_default: tpad-default-state {
+		pins = "gpio3";
+		function = "gpio";
+		bias-disable;
+	};

This might lead to an improperly biased interrupt line for the touchpad, resulting in spurious interrupts or failure of touchpad input.

[ ... ]

arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts line 1066

Quoted 6 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +6 -0
+	ts0_default: ts0-default-state {
+		reset-n-pins {
+			pins = "gpio48";
+			function = "gpio";
+			drive-strength = <16>;
+		};

[Severity: Medium]
Should this reset pin be actively driven high, or managed by the hid-over-i2c touchscreen driver?

The pin is configured in pinctrl but lacks an explicit state (like output-high) and is not assigned to a reset-gpios property in the touchscreen node. This could leave the GPIO floating or in a bootloader-assigned state, potentially causing the touchscreen to fail initialization or sporadically reset.

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

Re: [PATCH v4 3/4] arm64: dts: qcom: Add HONOR MagicBook Art 14 device tree

Quoted 3 lines · On Sun, Jun 28, 2026 at 09:54:19AM +0000, [email protected] wrote:

Thank you for your contribution! Sashiko AI review found 5 potential issue(s) to consider:
- [High] Mismatch between touchpad interrupt GPIO and its pinctrl configuration.
- [Medium] Type-C SBU (Sideband Use) routing is omitted from the USB-C connectors in pmic-glink, breaking the DisplayPort Alt Mode AUX channel.

This is fine, assuming that DP is rewrired...

Quoted 1 line

- [Medium] QMP DisplayPort PHY is directly connected to hdmi-connector without an intervening DP-to-HDMI bridge node.

... and it is. But here Sahiko is right. There should be some kind of bridge device on your laptop. Could you please check and describe it? It might be driven by the simple-bridge Linux driver, it can need no control, but it should be present in DT.

Quoted 4 lines

- [Medium] Both WooferRight and TweeterRight are routed to the same 'WSA2 WSA_SPK2 OUT' source widget.
- [Medium] The touchscreen reset pin (gpio48) is configured in pinctrl but never driven to an active output state. --

Signature · 2 lines
With best wishes
Dmitry
#6 lore raw

PATCH v4 4/4 firmware: qcom: scm: Allow QSEECOM on Honor Magicbook Art 14

In reply to Konstantin Shabanov

Allow particular machine accessing eg. efivars.

---
 drivers/firmware/qcom/qcom_scm.c | 1 +
 1 file changed, 1 insertion(+)
drivers/firmware/qcom/qcom_scm.c +1 -0
index 6b601a4b89db..b6f7c567d4a8 100644
@@ -2295,6 +2295,7 @@ static const struct of_device_id qcom_scm_qseecom_allowlist[] __maybe_unused = {
 	{ .compatible = "dell,latitude-7455" },
 	{ .compatible = "dell,xps13-9345" },
 	{ .compatible = "ecs,liva-qc710" },
+	{ .compatible = "honor,magicbook-art-14-snapdragon" },
 	{ .compatible = "hp,elitebook-ultra-g1q" },
 	{ .compatible = "hp,omnibook-x14" },
 	{ .compatible = "huawei,gaokun3" },
Signature · 1 line
2.54.0