arm64: dts: qcom: Add HP OmniBook X 16-cp1
v6 cover arm64: dts: qcom: Add HP OmniBook X 16-cp1
This adds a device tree for the HP OmniBook X 16-cp1 (board 8F46), a 16" laptop with the 12-core Snapdragon X2 Elite (Mahua).
Tested with Ubuntu's 7.3-based linux-qcom-x1e
kernel. Everything listed in patch 2 works there, including suspend (s2idle).
Notes:
- DisplayPort at HBR2 needs "phy: qualcomm: qmp-combo: update DP PHY PLL programming on Glymur" v6 [1] (tested with v5). Without it the stream runs at half rate and the monitor shows no picture. With it, about 1 in 4 plug-ins still gives no picture; replugging fixes it.
- The GPU is enabled as in mahua.dtsi. Tested with the msm driver patch from "drm/msm: Mahua GPU support" [2].
- Audio needs a topology and UCM config for the "HP-OmniBook-X16" model, which are not upstream yet. The headphone jack (SDCA) is not described.
This series was written with the help of an AI coding assistant (Claude): the device tree started from glymur-hp-elitebook-x-g2q.dts and the laptop's ACPI tables. I went through the regulators against the ACPI power votes for v3. I reviewed it and tested it on the laptop.
Earlier bring-up report: [3]
Changes in v6:
- Drop the data-lanes override and the mode-switch/orientation-switch deletes from usb_2_qmpphy, plain status = "okay" is enough. Tested:
USB-A still runs at 5 Gbps, also after replug and suspend (Konrad)
- Keep dr_mode = "host" on &usb_2, nothing sets a USB role on the USB-A port (not tested without it)
- Rebase on current qcom for-next
- Link to v5: https://lore.kernel.org/r/[email protected]
Changes in v5:
- Drop the &gpu and &gmu "disabled" overrides, mahua.dtsi now describes the Mahua GPU (reported by Sashiko)
- Drop refgen-supply from usb_2_qmpphy and use the common l4f1. The ACPI tables vote both l1c1 and l4f1 for this port, so they don't decide it (reported by Sashiko)
- Drop the stale regulator sentence from the commit message
- Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- Rebase on qcom for-next: drop the PMIC includes, &apps_rsc, &tcsr, the SMB2370 repeaters and the phy supplies that mahua.dtsi and glymur-cob.dtsi now provide, and use the new regulator labels
- vreg_l2f0 is now 944 mV from the common file (was 936 mV); tested
- Keep refgen-supply = <&vreg_l1c1> on usb_2_qmpphy, which matches the ACPI power votes on this laptop
- Move the pcie4 endpoint under &pcie4_port0, since glymur.dtsi no longer has pcie4_port0_ep
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Set vreg_l1f_e1 to 904 mV (was 880 mV, copied from the EliteBook) to match the ACPI power votes on this laptop, rename it to vreg_l1f_e1_0p9 (Konrad)
- Add Acked-by to patch 1 (Krzysztof)
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Add static data-lanes to usb_2_qmpphy so the PHY uses USB3-only mode (reported by Sashiko)
- Drop the Assisted-by tag, describe the tool use in the changelog instead (Krzysztof)
- Link to v1: https://lore.kernel.org/r/[email protected]
[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/
[3] https://lore.kernel.org/all/CAAnD8Rb4ZZrHFWMJayabioB_8bOHh1mqZ5LCXZz0jTNGMA7UZQ@mail.gmail.com/
Jeff Roach (2):
dt-bindings: arm: qcom: Add HP OmniBook X 16-cp1
arm64: dts: qcom: Add HP OmniBook X 16-cp1
.../devicetree/bindings/arm/qcom.yaml | 1 + arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/mahua-hp-omnibook-x16.dts | 629 ++++++++++++++++++ 3 files changed, 631 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/mahua-hp-omnibook-x16.dts
base-commit: 1efdc78dced92081a648d823589ae975558deadd
Signature · 1 line
2.55.0
PATCH v6 1/2 dt-bindings: arm: qcom: Add HP OmniBook X 16-cp1
Document the HP OmniBook X 16-cp1 laptop, based on the Qualcomm Mahua (Snapdragon X2 Elite, 12 cores) SoC.
--- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
@@ -213,6 +213,7 @@ properties: - items: - enum: + - hp,omnibook-x16-cp1 - microsoft,surface-laptop-8-13p8 - qcom,mahua-crd - qcom,mahua-qcb
Signature · 1 line
2.55.0
PATCH v6 2/2 arm64: dts: qcom: Add HP OmniBook X 16-cp1
In reply to Jeff RoachAdd a device tree for the HP OmniBook X 16-cp1 laptop, based on the Qualcomm Mahua (Snapdragon X2 Elite, 12 cores) SoC.
Supported and tested:
- Keyboard, touchpad and touchscreen over I2C HID
- Lid switch
- NVMe SSD (PCIe 5)
- Qualcomm QCC2072 Wi-Fi (PCIe 4, M.2 key E slot)
- Two USB-C ports with orientation switching, USB PD and battery reporting through pmic-glink
- USB-A port (usb_2)
- Webcam on the internal USB 2.0 host
- eDP OLED panel with DP AUX backlight
- DisplayPort alt mode on both USB-C ports
- ADSP and CDSP remoteprocs
- Two speakers (WSA8845) and two digital microphones
This device tree was written with the help of an AI coding assistant (Claude), starting from glymur-hp-elitebook-x-g2q.dts and the laptop's ACPI tables. I reviewed it and tested every feature listed above on the laptop.
--- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/mahua-hp-omnibook-x16.dts | 629 ++++++++++++++++++ 2 files changed, 630 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/mahua-hp-omnibook-x16.dts
arch/arm64/boot/dts/qcom/Makefile +1 -0
@@ -87,6 +87,7 @@ dtb-$(CONFIG_ARCH_QCOM) += lemans-evk-ifp-mezzanine.dtb dtb-$(CONFIG_ARCH_QCOM) += lemans-sa8255p-ride.dtb dtb-$(CONFIG_ARCH_QCOM) += lemans-vicharak-axon-pro.dtb dtb-$(CONFIG_ARCH_QCOM) += mahua-crd.dtb +dtb-$(CONFIG_ARCH_QCOM) += mahua-hp-omnibook-x16.dtb dtb-$(CONFIG_ARCH_QCOM) += mahua-lenovo-thinkpad-t14s-gen7-lcd.dtb dtb-$(CONFIG_ARCH_QCOM) += mahua-qcb.dtb dtb-$(CONFIG_ARCH_QCOM) += maili-mtp.dtb
arch/arm64/boot/dts/qcom/mahua-hp-omnibook-x16.dts new file +629 -0
629 lines not on this page · raw message
Signature · 1 line
2.55.0
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Medium] arm64: dts: qcom: usb_2_qmpphy keeps Type-C switches on fixed USB-A port - [Medium] arm64: dts…
Thank you for your contribution! Sashiko AI review found 2 potential issues to consider:
- [Medium] arm64: dts: qcom: usb_2_qmpphy keeps Type-C switches on fixed USB-A port
- [Medium] arm64: dts: qcom: mdss_dp3 omits edp0_hot HPD pinctrl configuration
--
commit 60ec9c8ab01bda19760cc99d7cb96cd8f28a5acc
Author: Jeff Roach <[email protected]>
arm64: dts: qcom: Add HP OmniBook X 16-cp1
This commit adds the device tree for the HP OmniBook X 16-cp1 laptop based on the Qualcomm Mahua SoC and adds it to the qcom DTS Makefile.
Quoted 5 lines
arch/arm64/boot/dts/qcom/mahua-hp-omnibook-x16.dts new file +0
-0
[ ... ]
Quoted 12 lines
+&mdss_dp3 {
arch/arm64/boot/dts/qcom/mahua-hp-omnibook-x16.dts new file +11
-0+ /delete-property/ #sound-dai-cells; + + status = "okay"; + + aux-bus { + panel { + compatible = "samsung,atna33xc20"; + enable-gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>; + power-supply = <&vreg_edp_3p3>; + + pinctrl-0 = <&edp_bl_en>;
arch/arm64/boot/dts/qcom/mahua-hp-omnibook-x16.dts line 345
Quoted 10 lines
arch/arm64/boot/dts/qcom/mahua-hp-omnibook-x16.dts new file +10
-0+ pinctrl-names = "default"; + + port { + edp_panel_in: endpoint { + remote-endpoint = <&mdss_dp3_out>; + }; + }; + }; + }; +};
[Severity: Medium]
Does &mdss_dp3 need pinctrl configuration for the edp0_hot HPD pin on gpio119?
Neither glymur.dtsi nor mahua.dtsi sets a default pinctrl state for mdss_dp3, and the panel node has neither no-hpd nor hpd-gpios. If firmware does not leave gpio119 muxed to edp0_hot, atana33xc20_resume() times out in wait_hpd_asserted() and aborts panel power-on.
Adding an edp0_hot pinctrl state for gpio119 and referencing it in pinctrl-0 here would avoid relying on firmware pinmux state.
[ ... ]
Quoted 6 lines
arch/arm64/boot/dts/qcom/mahua-hp-omnibook-x16.dts new file +6
-0+/* USB-A port on the right side */ +&usb_2 { + dr_mode = "host"; + + /delete-property/ usb-role-switch; +
arch/arm64/boot/dts/qcom/mahua-hp-omnibook-x16.dts line 618
Quoted 10 lines
arch/arm64/boot/dts/qcom/mahua-hp-omnibook-x16.dts new file +10
-0+ status = "okay"; +}; + +&usb_2_hsphy { + status = "okay"; +}; + +&usb_2_qmpphy { + status = "okay"; +};
[Severity: Medium]
Should &usb_2_qmpphy delete the Type-C mode-switch and orientation-switch properties inherited from glymur.dtsi?
Because usb_2 is a fixed host-only USB-A port and those properties remain present, qmp_combo_probe() registers unused Type-C switch and mux devices and skips the static data-lanes path that selects QMPPHY_MODE_USB3_ONLY.
As a result, qmp_combo_com_init() leaves the PHY in QMPPHY_MODE_USB3DP, enabling DP_MODE and releasing reset on the unused DP PHY PCS block. Deleting mode-switch, orientation-switch, and port@0/endpoint, then adding static data-lanes under port@0/endpoint@1, would fix this.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2