Skip to contentSkip to conversation

Introduce HONOR MagicBook Art 14 device tree

PATCH Superseded Konstantin Shabanov 5 participants 11 messages May 15 – Jun 24

Subsystems (3)

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

v2 cover Introduce 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 [1] and Valentin Manea [2].

I'm using it with an external display connected to the HDMI port as a daily driver for quite some time now.

eDP support is broken (screen is eigher grey or grey with noise), thus, keeping it disabled for now.

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

Broken:

- 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/x1e80100-magicbook-6.19/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
---
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  | 1314 +++++++++++++++++
 drivers/firmware/qcom/qcom_scm.c              |    1 +
 5 files changed, 1320 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts

base-commit: 917719c412c48687d4a176965d1fa35320ec457c --
2.53.0

#1 lore raw

PATCH v2 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 28784d66ae7b..b27b8f7b1c5d 100644
@@ -729,6 +729,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.53.0
#2 lore raw

PATCH v2 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 b4943123d2e4..f5401c9c4775 100644
@@ -1147,6 +1147,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.53.0
#3 lore raw

PATCH v2 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  | 1314 +++++++++++++++++
 2 files changed, 1316 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts
arch/arm64/boot/dts/qcom/Makefile +2 -0
index 4ba8e7306419..5b104bce5159 100644
@@ -449,3 +449,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 +1314 -0

1,314 lines not on this page · raw message

Signature · 1 line
2.53.0
#4 lore raw

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

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [Medium] The PMIC GLINK `usb-c-connector` nodes (`connector@0` and `connector@1`) lack `port@2`…

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The PMIC GLINK usb-c-connector nodes (connector@0 and connector@1) lack port@2 definitions for SBU (Sideband Use) routing, and there are no SBU mux nodes defined in the device tree.
- [Medium] The sound card model property is set to "X1E80100-CRD" instead of a unique board-specific name.
--

commit 8c00a576dbb39e5e379a22f05075db6f00396289
Author: Konstantin Shabanov <[email protected]>

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

This commit introduces support for the HONOR MagicBook Art 14 laptop, including features such as sound, Bluetooth, DP over USB-C, and more.

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

[ ... ]

Quoted 27 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +27 -0
+	pmic-glink {
+		compatible = "qcom,x1e80100-pmic-glink",
+			     "qcom,sm8550-pmic-glink",
+			     "qcom,pmic-glink";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		orientation-gpios = <&tlmm 121 GPIO_ACTIVE_HIGH>,
+				    <&tlmm 123 GPIO_ACTIVE_HIGH>;
+
+		/* 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 {
+					reg = <0>;
+
+					pmic_glink_ss0_hs_in: endpoint {
+						remote-endpoint = <&usb_1_ss0_dwc3_hs>;
+					};
+				};

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

Quoted 10 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +10 -0
+
+				port@1 {
+					reg = <1>;
+
+					pmic_glink_ss0_ss_in: endpoint {
+						remote-endpoint = <&usb_1_ss0_qmpphy_out>;
+					};
+				};
+			};
+		};

The commit message claims support for DP over USB-C, but the usb-c-connector nodes (both connector@0 and connector@1) appear to lack port@2 definitions for SBU (Sideband Use) routing, and there are no SBU mux nodes defined in the device tree.

Since DisplayPort Alternate Mode requires Type-C SBU pins to carry the DisplayPort AUX channel for EDID reading and link training, will DP over USB-C function correctly here?

Without port@2 and the SBU mux/retimer nodes, it seems the OS won't be able to control SBU routing or handle orientation switches.

[ ... ]

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

Quoted 5 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +5 -0
+	sound {
+		compatible = "qcom,x1e80100-sndcard";
+		model = "X1E80100-CRD";
+		audio-routing = "WooferLeft IN", "WSA WSA_SPK1 OUT",
+				"TweeterLeft IN", "WSA WSA_SPK2 OUT",

The model name is set to "X1E80100-CRD", which typically belongs to the Qualcomm Reference Design.

Since userspace ALSA UCM configurations rely on a unique, board-specific model name to apply the correct audio routing and mixer settings, will reusing the CRD name cause userspace to load an incorrect audio profile for this laptop?

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

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

In reply to Konstantin Shabanov
Quoted 38 lines · 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/x1e80100-honor-magicbook-art-14.dts line 164

Quoted 3 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +3 -0
+	sound {
+		compatible = "qcom,x1e80100-sndcard";
+		model = "X1E80100-CRD";

This should point to the actual name of the board, then you can make a ""symlink"" in ALSA UCM (there's a file that binds compatible soundcards in there)

[...]

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

Quoted 10 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +10 -0
+		wcd-playback-dai-link {
+			link-name = "WCD Playback";
+
+			cpu {
+				sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>;
+			};
+
+			codec {
+				sound-dai = <&wcd938x 0>, <&swr1 0>, <&lpass_rxmacro 0>;
+			};

'co'dec < 'cp'u

[...]

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

Quoted 12 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +12 -0
+	vreg_misc_3p3: regulator-misc-3p3 {
+		compatible = "regulator-fixed";
+
+		regulator-name = "VREG_MISC_3P3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+
+		gpio = <&pm8550ve_8_gpios 6 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&misc_3p3_reg_en>;

property-n
property-names

in this order, please

[...]

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

Quoted 3 lines

+&iris {

arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +2 -0
+	status = "okay";
+	firmware-name = "qcom/x1e80100/HONOR/MRO-XXX/qcvss8380.mbn";

status should be the last property, and it would be neat to keep a \n before it

[...]

Review

Quoted 2 lines

+&mdss_dp0_out {

(quoted diff) +1 -0
+	data-lanes = <0 1>;

If you change this to <0 1 2 3>, you should get 4-lane DP working

[...]

Quoted 5 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +5 -0
+	eusb5_reset_n: eusb5-reset-n-state {
+		pins = "gpio7";
+		function = "gpio";
+		drive-strength = <2>;
+		bias-disable;

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

Quoted 10 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +10 -0
+		output-low;
+	};
+
+	eusb6_reset_n: eusb6-reset-n-state {
+		pins = "gpio184";
+		function = "gpio";
+		drive-strength = <2>;
+		bias-disable;
+		output-low;
+	};

drop the output-foo properties from these two, they are controlled by the driver

[...]

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

Quoted 6 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +6 -0
+	wcd_default: wcd-reset-n-active-state {
+		pins = "gpio191";
+		function = "gpio";
+		drive-strength = <16>;
+		bias-disable;
+		output-low;

ditto

[...]

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

Quoted 2 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +2 -0
+/* usb1 covers left side typec ports */
+/* back (towards the display) typec port */

This is already described in a comment near pmic-glink {}

[...]

Quoted 1 line

+/* MP0 goes to the USB-A port(USB3) and FPC */

"MP0" refers to the first USB3+USB2 port on the multiport controller. Is there a hub inbetween? Should we describe it? Do we know if VBUS on the USB-A port is controllable?

[...]

Quoted 1 line

+&usb_2_hsphy {

"usb_2" < "usb_mp"

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

Quoted 4 lines
arch/arm64/boot/dts/qcom/x1e80100-honor-magicbook-art-14.dts new file +4 -0
+	vdd-supply = <&vreg_l3j_0p8>;
+	vdda12-supply = <&vreg_l2j_1p2>;
+	phys = <&eusb5_repeater>;
+	status = "okay";

Let's keep an \n before status

Konrad

#6 lore raw

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

Quoted 5 lines · On Tue, 16 Jun 2026 14:37:13 +0200 Konrad Dybcio wrote:
Quoted 1 line

+/* MP0 goes to the USB-A port(USB3) and FPC */

"MP0" refers to the first USB3+USB2 port on the multiport controller. Is there a hub inbetween? Should we describe it? Do we know if VBUS on the USB-A port is controllable?

Unfortunately, I couldn't find any documentation for this laptop, and all I can tell is that the USB-A port seems to work and the FPC is recognized:

Bus 005 Device 002: ID 10a5:9924 FPC FPC L:2407 FW:3334147

#7 lore raw

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

Quoted 7 lines · Konstantin Shabanov
Quoted 5 lines · On Tue, 16 Jun 2026 14:37:13 +0200 Konrad Dybcio wrote:
Quoted 1 line

+/* MP0 goes to the USB-A port(USB3) and FPC */

"MP0" refers to the first USB3+USB2 port on the multiport controller. Is there a hub inbetween? Should we describe it? Do we know if VBUS on the USB-A port is controllable?

Quoted 5 lines

Unfortunately, I couldn't find any documentation for this laptop, and all I can tell is that the USB-A port seems to work and the FPC is recognized:

Bus 005 Device 002: ID 10a5:9924 FPC FPC L:2407 FW:3334147

OK, if it works, it works

Konrad

#8 lore raw

PATCH v2 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 9b06a69d3a6d..2d6dc99c9567 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.53.0
#10 lore raw
In reply to Konstantin Shabanov

Hi

Quoted 1 line

I'm using it with an external display connected to the HDMI port as > a daily driver for quite some time now. > > eDP support is broken

(screen is eigher grey or grey with noise), > thus, keeping it disabled for now. The reason for the eDP problems is that the firmware enables DSC for the panel at boot, but the msm driver does not yet support it. There are some patches floating around to add the functionality but they seem to have some problems. In the repo with my name that you quoted I have integrated them for testing, but as they are they already have been rejected for mainline, so I think we just need to wait for qualcomm or linaro to finish their work.
Now I have a simpler solution for this problem, I just made a copy of the one of the eDP panel drivers and do a force disable of DSC on resume, which seems to work perfectly fine, there is enough bandwidth to drive the panel even at 120Hz even with DSC disabled. You can find my patch in the quoted repository in the qcom-x1e-7.0 branch.

If this is an acceptable solution I will cleanup the patch more and post it here. Perhaps the other solution is for the msm driver to disable DSC explicitly for panels that advertise it, because it might be enabled by bootloaders/firmware.

Valentin