Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Vineeth Pillai <vineethrp@gmail.com>
Date: Fri, 27 Nov 2026 12:02:49 -0500
Subject: [PATCH] arm64: dts: qcom: sc7280-hp-omnibook-3-16-ct0: Fix
booting on the laptop

The tree was written from the DSDT without the laptop. Booted on a
16-ct0 (SKU DZ3U1UA#ABA, board 8FD0), it needs three fixes to reach the
desktop:

- Reserve TLMM GPIOs 32-33 and 48-50. The firmware keeps the QSPI and
the security SPI pins out of the OS's reach, and the first access to
them, when pinctrl reads the pins at probe, resets the machine about
two seconds into the boot.
- Drop regulator-boot-on from the NVMe 3.3 V supply. The Longsys
FSB0C256G (Maxio MAP1202) never reports ready after the controller
reset at PCIe probe unless its rail is cycled, so leave the rail to
the PCIe port, which powers it up after asserting PERST#.
- Keep the eDP backlight regulator always on. Nothing claims it until
msm binds the panel, so the late regulator cleanup switched it off
and the backlight died about 30 seconds into the boot.

Signed-off-by: Vineeth Pillai <vineethrp@gmail.com>
---
.../dts/qcom/sc7280-hp-omnibook-3-16-ct0.dts | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sc7280-hp-omnibook-3-16-ct0.dts b/arch/arm64/boot/dts/qcom/sc7280-hp-omnibook-3-16-ct0.dts
index 9819d05..79e85b5 100644
--- a/arch/arm64/boot/dts/qcom/sc7280-hp-omnibook-3-16-ct0.dts
+++ b/arch/arm64/boot/dts/qcom/sc7280-hp-omnibook-3-16-ct0.dts
@@ -68,6 +68,12 @@
pinctrl-0 = <&edp_bl_reg_en>;
pinctrl-names = "default";

+ /*
+ * Nothing claims this supply until msm binds the panel, and
+ * the late regulator cleanup turned it off: the backlight died
+ * about 30 s into the boot. Keep it on.
+ */
+ regulator-always-on;
regulator-boot-on;
};

@@ -103,7 +109,11 @@
pinctrl-0 = <&nvme_reg_en>;
pinctrl-names = "default";

- regulator-boot-on;
+ /*
+ * No regulator-boot-on: the Longsys FSB0C256G (Maxio MAP1202)
+ * never reports ready after a controller reset unless its 3.3 V
+ * rail is cycled, so let the PCIe port power it up itself.
+ */
};

/* TSC1 D0 in PEP drives GPIO 62 before releasing the reset. */
@@ -469,6 +479,12 @@
};

&tlmm {
+ /*
+ * Reading these pins resets the machine: the firmware keeps them
+ * (QSPI and the security SPI) out of the OS's reach.
+ */
+ gpio-reserved-ranges = <32 2>, <48 3>;
+
tpad_default: tpad-default-state {
pins = "gpio7";
function = "gpio";
--
2.56.1

Original file line number Diff line number Diff line change
@@ -0,0 +1,253 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Vineeth Pillai <vineethrp@gmail.com>
Date: Fri, 27 Nov 2026 12:03:12 -0500
Subject: [PATCH] arm64: dts: qcom: sc7280-hp-omnibook-3-16-ct0: Add the
headphones and the DMICs

AUCD in the DSDT is Qualcomm's CRD audio (qcaucd_ext_crd8270.inf,
CRD08270). The codec on the RX and TX SoundWire buses enumerates as
part 0217:010a, a WCD937x as on the QCM6490 IDP, not the CRD's WCD9385,
with its reset on GPIO 83. The buck and RX/TX/PX rails are LDO17B and
LDO8C at 1.8 V, the two rails the ACDB votes for the codec. The mic bias
runs from BOB, as on the QCM6490 IDP. The two DMICs of MicArray1 sit on
the VA macro's DMIC0/1 lines.

On the AudioReach firmware the ADSP owns the LPASS clocks, so the audio
clock controller only gives the SoundWire resets, as on the QCM6490 IDP
and the RB3 Gen 2.

The card uses the RB3 Gen 2 machine driver, which loads
qcom/qcs6490/SC7280-HP-OmniBook-3-16-ct0-tplg.bin, from
hp-omnibook-3-16-ct0-audio.

Tested on a 16-ct0 (board 8FD0): headphone playback, jack detection and
both DMICs work in PipeWire. The headset mic is routed (AMIC2, MIC
BIAS2, ADC2) and its whole DAPM path powers up with the jack detected,
but it captures only silence, so it is left in for whoever finds out
why. The speakers are not on SoundWire and come in a later patch.

Signed-off-by: Vineeth Pillai <vineethrp@gmail.com>
---
.../dts/qcom/sc7280-hp-omnibook-3-16-ct0.dts | 164 ++++++++++++++++++
1 file changed, 164 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sc7280-hp-omnibook-3-16-ct0.dts b/arch/arm64/boot/dts/qcom/sc7280-hp-omnibook-3-16-ct0.dts
index 79e85b5..2b11a42 100644
--- a/arch/arm64/boot/dts/qcom/sc7280-hp-omnibook-3-16-ct0.dts
+++ b/arch/arm64/boot/dts/qcom/sc7280-hp-omnibook-3-16-ct0.dts
@@ -30,6 +30,36 @@
serial1 = &uart7;
};

+ /*
+ * AUCD: Qualcomm's CRD audio layout (qcaucd_ext_crd8270.inf, CRD08270).
+ * The codec enumerates as SoundWire part 0217:010a, a WCD937x as on the
+ * QCM6490 IDP; reset on GPIO 83. Its ACDB votes LDO17_B and LDO8_C at
+ * 1.8 V; the mic bias comes from BOB.
+ */
+ wcd937x: audio-codec {
+ compatible = "qcom,wcd9370-codec";
+
+ pinctrl-0 = <&wcd_default>;
+ pinctrl-names = "default";
+
+ reset-gpios = <&tlmm 83 GPIO_ACTIVE_LOW>;
+
+ vdd-buck-supply = <&vreg_l17b_1p8>;
+ vdd-rxtx-supply = <&vreg_l8c_1p8>;
+ vdd-px-supply = <&vreg_l8c_1p8>;
+ vdd-mic-bias-supply = <&vreg_bob_3p296>;
+
+ qcom,micbias1-microvolt = <1800000>;
+ qcom,micbias2-microvolt = <1800000>;
+ qcom,micbias3-microvolt = <1800000>;
+ qcom,micbias4-microvolt = <1800000>;
+
+ qcom,rx-device = <&wcd_rx>;
+ qcom,tx-device = <&wcd_tx>;
+
+ #sound-dai-cells = <1>;
+ };
+
/* LID0 reads GPIO 93 (LIDR); GIO0's _AEI wakes on it through PDC pin 320. */
gpio-keys {
compatible = "gpio-keys";
@@ -204,6 +234,13 @@
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
};

+ vreg_l17b_1p8: ldo17 {
+ regulator-name = "vreg_l17b";
+ regulator-min-microvolt = <1700000>;
+ regulator-max-microvolt = <1900000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
vreg_l19b_1p8: ldo19 {
regulator-name = "vreg_l19b";
regulator-min-microvolt = <1800000>;
@@ -222,6 +259,13 @@
regulator-max-microvolt = <1800000>;
};

+ vreg_l8c_1p8: ldo8 {
+ regulator-name = "vreg_l8c";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <2000000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
vreg_l10c_0p88: ldo10 {
regulator-name = "vreg_l10c";
regulator-min-microvolt = <880000>;
@@ -235,6 +279,12 @@
regulator-max-microvolt = <1800000>;
regulator-always-on;
};
+
+ vreg_bob_3p296: bob {
+ regulator-name = "vreg_bob";
+ regulator-min-microvolt = <3008000>;
+ regulator-max-microvolt = <3960000>;
+ };
};
};

@@ -352,6 +402,30 @@
};
};

+/* The ADSP owns the LPASS clocks; only the SoundWire resets are left to Linux. */
+&lpass_audiocc {
+ compatible = "qcom,qcm6490-lpassaudiocc";
+ /delete-property/ power-domains;
+};
+
+&lpass_rx_macro {
+ status = "okay";
+};
+
+&lpass_tx_macro {
+ status = "okay";
+};
+
+/* MicArray1: two DMICs on the VA macro (dmic01). */
+&lpass_va_macro {
+ vdd-micb-supply = <&vreg_bob_3p296>;
+
+ pinctrl-0 = <&lpass_dmic01_clk>, <&lpass_dmic01_data>;
+ pinctrl-names = "default";
+
+ status = "okay";
+};
+
&mdss {
status = "okay";
};
@@ -478,6 +552,88 @@
status = "okay";
};

+&sound {
+ compatible = "qcom,qcs6490-rb3gen2-sndcard";
+ model = "SC7280-HP-OmniBook-3-16-ct0";
+
+ audio-routing = "IN1_HPHL", "HPHL_OUT",
+ "IN2_HPHR", "HPHR_OUT",
+ "AMIC2", "MIC BIAS2",
+ "VA DMIC0", "MIC BIAS1",
+ "VA DMIC1", "MIC BIAS1",
+ "TX SWR_ADC1", "ADC2_OUTPUT";
+
+ wcd-playback-dai-link {
+ link-name = "WCD Playback";
+
+ codec {
+ sound-dai = <&wcd937x 0>, <&swr0 0>, <&lpass_rx_macro 0>;
+ };
+
+ cpu {
+ sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
+ wcd-capture-dai-link {
+ link-name = "WCD Capture";
+
+ codec {
+ sound-dai = <&wcd937x 1>, <&swr1 0>, <&lpass_tx_macro 0>;
+ };
+
+ cpu {
+ sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
+ va-dai-link {
+ link-name = "VA Capture";
+
+ codec {
+ sound-dai = <&lpass_va_macro 0>;
+ };
+
+ cpu {
+ sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+};
+
+&swr0 {
+ status = "okay";
+
+ wcd_rx: codec@0,4 {
+ compatible = "sdw20217010a00";
+ reg = <0 4>;
+ qcom,rx-port-mapping = <1 2 3 4 5>;
+ qcom,rx-channel-mapping = /bits/ 8 <1 2 1 1 2 1 1 2>;
+ };
+};
+
+&swr1 {
+ status = "okay";
+
+ wcd_tx: codec@0,3 {
+ compatible = "sdw20217010a00";
+ reg = <0 3>;
+ qcom,tx-port-mapping = <1 1 2 3>;
+ qcom,tx-channel-mapping = /bits/ 8 <1 2 1 1 2 3 3 4 1 2 3 4>;
+ };
+};
+
&tlmm {
/*
* Reading these pins resets the machine: the firmware keeps them
@@ -534,6 +690,14 @@
output-high;
};

+ wcd_default: wcd-reset-n-active-state {
+ pins = "gpio83";
+ function = "gpio";
+ drive-strength = <16>;
+ bias-disable;
+ output-low;
+ };
+
wlan_en: wlan-en-state {
pins = "gpio84";
function = "gpio";
--
2.56.1

Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Vineeth Pillai <vineethrp@gmail.com>
Date: Sat, 28 Nov 2026 10:01:46 -0500
Subject: [PATCH] arm64: dts: qcom: sc7280-hp-omnibook-3-16-ct0: Add the
embedded controller

The battery and the AC adapter are not on pmic_glink on this laptop: HP's
ACPI reads them from its embedded controller, IC11's device at 0x76 on
QUP1 SE2 (i2c10), and takes the EC's events on ECGE's interrupt, PDC pin
384, which is GPIO 18, falling edge with a pull-up.

Describe the EC there, for the hp-omnibook-3-16-ct0-ec driver.

Tested on a 16-ct0 (board 8FD0) with an equivalent tree: the battery and
the AC adapter show up in UPower and the Omarchy bar, and plugging or
unplugging the charger raises an EC event that updates them at once.

Signed-off-by: Vineeth Pillai <vineethrp@gmail.com>
---
.../dts/qcom/sc7280-hp-omnibook-3-16-ct0.dts | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sc7280-hp-omnibook-3-16-ct0.dts b/arch/arm64/boot/dts/qcom/sc7280-hp-omnibook-3-16-ct0.dts
index 2b11a42..c80016c 100644
--- a/arch/arm64/boot/dts/qcom/sc7280-hp-omnibook-3-16-ct0.dts
+++ b/arch/arm64/boot/dts/qcom/sc7280-hp-omnibook-3-16-ct0.dts
@@ -373,6 +373,24 @@
};
};

+/* ACPI IC11 (QUP1 SE2) */
+&i2c10 {
+ clock-frequency = <400000>;
+
+ status = "okay";
+
+ /* ECGE, PDC pin 384 = GPIO 18, edge low. */
+ embedded-controller@76 {
+ compatible = "hp,omnibook-3-16-ct0-ec";
+ reg = <0x76>;
+
+ interrupts-extended = <&tlmm 18 IRQ_TYPE_EDGE_FALLING>;
+
+ pinctrl-0 = <&ec_int_default>;
+ pinctrl-names = "default";
+ };
+};
+
/* ACPI IC14 (QUP1 SE5) */
&i2c13 {
clock-frequency = <400000>;
@@ -647,6 +665,12 @@
bias-pull-up;
};

+ ec_int_default: ec-int-default-state {
+ pins = "gpio18";
+ function = "gpio";
+ bias-pull-up;
+ };
+
kybd_default: kybd-default-state {
pins = "gpio39";
function = "gpio";
Loading
Loading