diff --git a/pkgbuilds/linux-omarchy-dtbs/0103-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Fix-booti.patch b/pkgbuilds/linux-omarchy-dtbs/0103-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Fix-booti.patch new file mode 100644 index 0000000000..4871a50c97 --- /dev/null +++ b/pkgbuilds/linux-omarchy-dtbs/0103-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Fix-booti.patch @@ -0,0 +1,73 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Vineeth Pillai +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 +--- + .../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 + diff --git a/pkgbuilds/linux-omarchy-dtbs/0104-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Add-the-h.patch b/pkgbuilds/linux-omarchy-dtbs/0104-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Add-the-h.patch new file mode 100644 index 0000000000..d5f706f779 --- /dev/null +++ b/pkgbuilds/linux-omarchy-dtbs/0104-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Add-the-h.patch @@ -0,0 +1,253 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Vineeth Pillai +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 +--- + .../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 = ; + }; + ++ vreg_l17b_1p8: ldo17 { ++ regulator-name = "vreg_l17b"; ++ regulator-min-microvolt = <1700000>; ++ regulator-max-microvolt = <1900000>; ++ regulator-initial-mode = ; ++ }; ++ + 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 = ; ++ }; ++ + 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 + diff --git a/pkgbuilds/linux-omarchy-dtbs/0105-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Add-the-e.patch b/pkgbuilds/linux-omarchy-dtbs/0105-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Add-the-e.patch new file mode 100644 index 0000000000..54dfe9d681 --- /dev/null +++ b/pkgbuilds/linux-omarchy-dtbs/0105-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Add-the-e.patch @@ -0,0 +1,64 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Vineeth Pillai +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 +--- + .../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"; diff --git a/pkgbuilds/linux-omarchy-dtbs/0106-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Keep-the-ADSP-heap-unmapped.patch b/pkgbuilds/linux-omarchy-dtbs/0106-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Keep-the-ADSP-heap-unmapped.patch new file mode 100644 index 0000000000..0eab0664bc --- /dev/null +++ b/pkgbuilds/linux-omarchy-dtbs/0106-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Keep-the-ADSP-heap-unmapped.patch @@ -0,0 +1,53 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Vineeth Pillai +Date: Mon, 30 Nov 2026 22:40:00 -0500 +Subject: [PATCH] arm64: dts: qcom: sc7280-hp-omnibook-3-16-ct0: Keep the + ADSP heap unmapped + +Since "misc: fastrpc: Allocate entire reserved memory for Audio PD in +probe" (9e47ad9c562e, 827cf4797be4 in 7.3.4), fastrpc assigns the whole +ADSP remote heap to the ADSP's VMIDs when it probes. It takes the region +from the device tree and does not allocate it, but kodiak.dtsi makes it a +reusable shared-dma-pool, so Linux goes on lending the pages to programs +and keeps them mapped. The laptop froze within minutes of logging in: CPU 4 +stopped responding. + +Make the region no-map on this laptop, as hamoa, lemans and monaco have +it. It costs the 8 MiB Linux could lend out before, which 7.3.4 and later +hand to the ADSP anyway. + +Tested on a 16-ct0 (board 8FD0) with 7.3.4: five boots out of five froze +without this, with the last heartbeat 54 to 207 seconds after boot. With +it two boots out of two ran for over 21 minutes, and each suspended and +resumed once. Reverting the fastrpc commit also stops the freeze. + +Signed-off-by: Vineeth Pillai +--- + arch/arm64/boot/dts/qcom/sc7280-hp-omnibook-3-16-ct0.dts | 12 ++++++++++++ + 1 file changed, 12 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 c80016c..72e4057 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 +@@ -176,6 +176,18 @@ + }; + }; + ++/* ++ * fastrpc assigns this whole region to the ADSP when it probes, without ++ * claiming it from CMA first, so Linux must not lend it out or map it. ++ * ++ * TODO: revisit once fastrpc claims the region before assigning it. ++ */ ++&adsp_rpc_remote_heap_mem { ++ /delete-property/ compatible; ++ /delete-property/ reusable; ++ no-map; ++}; ++ + &apps_rsc { + regulators-0 { + compatible = "qcom,pm7325-rpmh-regulators"; +-- +2.56.1 diff --git a/pkgbuilds/linux-omarchy-dtbs/0107-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Add-the-speakers.patch b/pkgbuilds/linux-omarchy-dtbs/0107-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Add-the-speakers.patch new file mode 100644 index 0000000000..487efb4572 --- /dev/null +++ b/pkgbuilds/linux-omarchy-dtbs/0107-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Add-the-speakers.patch @@ -0,0 +1,87 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Vineeth Pillai +Date: Tue, 1 Dec 2026 13:20:00 -0500 +Subject: [PATCH] arm64: dts: qcom: sc7280-hp-omnibook-3-16-ct0: Add the + speakers + +HP's Windows driver pack powers the speakers up by raising TLMM GPIO 136 and, +after a delay, switching GPIOs 106, 107 and 108 to MI2S1 (ADCMResources.bin +in qcacsp_crd8270, for the CRD08270 subsystem this laptop reports). So they +are on an I2S amplifier on the secondary MI2S, not on SoundWire ones: nothing +enumerates on swr2. + +Describe it as a MAX98360A, which is an enable pin on an I2S port. The part +fitted is not known and may be another. Nothing here protects the speakers, +so the sound profile does not go above unity gain. + +Tested on a 16-ct0 (board 8FD0) with an equivalent tree and the topology in +hp-omnibook-3-16-ct0-audio: both speakers play, with the channels the right +way round. With the amplifier on GPIO 63 the speakers were silent. + +Signed-off-by: Vineeth Pillai +--- + arch/arm64/boot/dts/qcom/sc7280-hp-omnibook-3-16-ct0.dts | 39 ++++++++++++++++++++++++++++++ + 1 file changed, 39 insertions(+) + +--- 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 +@@ -31,6 +31,19 @@ + }; + + /* ++ * The speakers are on an I2S amplifier on MI2S1, enabled by GPIO 136: ++ * HP's ADCM power sequence raises it before the port's pins. The part ++ * is not known; a plain enable pin is all it needs. ++ */ ++ max98360a: audio-codec-amp { ++ compatible = "maxim,max98360a"; ++ pinctrl-0 = <&_en>; ++ pinctrl-names = "default"; ++ sdmode-gpios = <&tlmm 136 GPIO_ACTIVE_HIGH>; ++ #sound-dai-cells = <0>; ++ }; ++ ++ /* + * 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 +@@ -593,6 +606,25 @@ + "VA DMIC1", "MIC BIAS1", + "TX SWR_ADC1", "ADC2_OUTPUT"; + ++ pinctrl-0 = <&mi2s1_data0>, <&mi2s1_sclk>, <&mi2s1_ws>; ++ pinctrl-names = "default"; ++ ++ mi2s-playback-dai-link { ++ link-name = "Speaker Playback"; ++ ++ codec { ++ sound-dai = <&max98360a>; ++ }; ++ ++ cpu { ++ sound-dai = <&q6apmbedai SECONDARY_MI2S_RX>; ++ }; ++ ++ platform { ++ sound-dai = <&q6apm>; ++ }; ++ }; ++ + wcd-playback-dai-link { + link-name = "WCD Playback"; + +@@ -726,6 +758,13 @@ + output-high; + }; + ++ amp_en: amp-en-state { ++ pins = "gpio136"; ++ function = "gpio"; ++ drive-strength = <2>; ++ bias-disable; ++ }; ++ + wcd_default: wcd-reset-n-active-state { + pins = "gpio83"; + function = "gpio"; diff --git a/pkgbuilds/linux-omarchy-dtbs/PKGBUILD b/pkgbuilds/linux-omarchy-dtbs/PKGBUILD index 074f4d093a..693a31c57f 100644 --- a/pkgbuilds/linux-omarchy-dtbs/PKGBUILD +++ b/pkgbuilds/linux-omarchy-dtbs/PKGBUILD @@ -9,10 +9,11 @@ _kernel=linux-omarchy # The oldest kernel that has every driver these trees name. The ASUS Zenbook # A14 UX3407NA's and A16 UX3607OA's enabled WCD9378 SDCA headset codec and # LPASS RX/TX macros need the Glymur WCD9378 stack from 7.3.6-25 so unbound -# audio nodes cannot block sync_state(). -_kernel_min=7.3.6-25 +# audio nodes cannot block sync_state(). The HP OmniBook 3 16-ct0's embedded +# controller node needs the hp-omnibook-3-ec driver from 7.3.6-30. +_kernel_min=7.3.6-30 pkgver=7.3 -pkgrel=105 +pkgrel=106 pkgdesc="Device trees and hardware IDs for the Snapdragon laptops on $_kernel" url='https://omarchy.org' arch=(aarch64) @@ -121,6 +122,11 @@ source=( 0100-arm64-dts-qcom-glymur-asus-zenbook-a16-ux3607oa-Enable-Iris-video-codec.patch 0101-arm64-dts-qcom-glymur-asus-zenbook-a16-Enable-WCD9378.patch 0102-arm64-dts-qcom-glymur-hp-omnibook-ultra-kg0xxx-Enable-Iris-video-codec.patch + 0103-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Fix-booti.patch + 0104-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Add-the-h.patch + 0105-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Add-the-e.patch + 0106-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Keep-the-ADSP-heap-unmapped.patch + 0107-arm64-dts-qcom-sc7280-hp-omnibook-3-16-ct0-Add-the-speakers.patch glymur-anduril-bluechip.json glymur-asus-ascent-qn10.json glymur-asus-proart-pz14-ht7407na.json @@ -299,6 +305,11 @@ b2sums=('3958fea31ee1141c79ccb01ef8dea9402c9dbc44876698dab92679a017208ac620da1da 'e7190a67056033c65f2815395f65ff59076ec1461f80e9206bd27de255ca68a4e8b551c0b02d07951493f41031227aed803d841fb3bb5cf1bc56f8b6ef691def' 'eb597eb56f74770023c86b69618a8764eebda54315ca19f4bbeb8aaf559f43855bee06eebf279b1f1a8be2d8f2b062de56967785a79dbd3fa2c3430da02422e3' '39e8a9e0de727bafdfdb8b6ecddc58cfc319beef0dce4a7ffe8effb7397c2605d4219f88404632a3328b647a1b115719f4376ba6a57ccdb2dbfa20eb747d0110' + 'f48570d09b31dccf64aeb1bcfd66779b01132835d32a7a2b3d3048436d3cf5f78a38149b724c92dc22ae0551cce7f9f7410ec6a81eb1f49fcf37918a54d426d9' + 'aaa491354095e9f6bf2f6982f7a1216a5e4e209c1e551bcc499a5ed2a6ce31f7295455c49eb91be4f9474d72405056c6c2013fdaa1c916db619dcde349e58408' + 'd4a6119bb910938a033cd53cf3fae8f7430e8f9e912d39f9969aa8ee1cd3e6fa6d7fac64cd13502bf6e4c01354010502be7239bb0ce01b17cdfd2adbefcf20ac' + '7c819e2fc492f9560f961ca12aa1024cd10c01bec65f38f99deb19486d61bbb2d6bcae1c11ff0c8d877ccfc3b9d142a0fabf9dfaca793c2cfb1eab8db310df70' + '4b591304177c7e56d95ba924f5107a949f39a6980d0e2a53fe3c848fda9c13764f8010b65815946daa1f76d67df70548077098b38e32b76a97642f2b947e69cc' '1ccd5c84199ce6aff6a1ef340b574c2bbaf2d3193ac3ba369a9f04fef7f8a420adedf4a8755e9c2b43325b8486ac2610fea5a057ae3162f33d45e4fc2aafcf1f' '7789d19f475eae73ddb22d709faf7e2ad22ef8bf68ce8272c0870db943537c69a5ad2f2978a3df0022ca0443e6f295f791df0c176cbce76eb9f22697b1428b3e' '204c60e007e3c7708648c10bbf542f61cc63b0cd724d33b1368a29c97d7e4634a6252cbbe82412a5ff3200a7396ef3e3bcb8e1bce67ccd81c2a316ce82a16da3' @@ -326,7 +337,7 @@ b2sums=('3958fea31ee1141c79ccb01ef8dea9402c9dbc44876698dab92679a017208ac620da1da '8302cce80b201f6f6439a1b73340fbb9e83cbcc9106381b1f9bb5ad23abc276b78a8ade61783cfcd5fd853660693dba2bbae7857086c2f0af2ada54fa5aa8c1f' '3793c37a42cd91fd69aaef37824cba5f76160dc8a89e07fa5807a6c8f7917dc7ed0627bb300176272c812a049def876ba1c022a28b41f9f0e57f535423e08ef9' '2254bfa723f7aa14244ef2c7de2e7eff2de542ebca6b0e62c3eaba79e54dce52a03c8325b4519b659e53338d55765e50786ea383eb05e48ceaad8e39125a3d73' - 'ad24bd056189e48822b87cf72d5ae73041f7faf3b5bf554dd045b4c4e07425993a38ffe7a2121524b11d4d364ed925720187725217bf7dc01cf99935fa9e010b' + '2aed27b74b3223ec860595dbd5d428da113990dcd7daaebe15d8715d49da06e541d4c0b653bf7ac2f8c4fa88e09e536e714df7b9a84373f6094ee01a3d521129' '54b2c7848980c835ac256627d3308da0bed0cbd54fd6d53006d992bbd1235c3f294611e3ff100f251598f691f894ba743b8d42da465050322b0b654c135cd52e' 'dd763ef15626784bcc0895e67f5ba46f14703b42929be1beb8f584efd5f1eb99f46a2181eea29c3adf73ab74accbcd09e5afeff51acbac4372d69e6ecea5a94b' 'a311b55ff925b7e2d4b00f4af8522aacca3e0ea45a5dcca490e8f59775d2d34f2a4e5a88fac6ff8ee79b5b4921d713b0a9d0413e4b228e7e28c93b931dadde81' diff --git a/pkgbuilds/linux-omarchy-dtbs/README.md b/pkgbuilds/linux-omarchy-dtbs/README.md index ee4ac69f43..6af35da279 100644 --- a/pkgbuilds/linux-omarchy-dtbs/README.md +++ b/pkgbuilds/linux-omarchy-dtbs/README.md @@ -205,3 +205,13 @@ The speakers have no driver. The amplifiers are two SoundWire parts (Qualcomm pa `0101` enables `&lpass_rxmacro`, `&lpass_txmacro`, `&swr1`, `&swr2`, and the WCD9378 SDCA headset codec (`sdw:0217:0110`) on the ASUS Zenbook A16 UX3607OA (`glymur-asus-zenbook-a16-ux3607oa`), using the board's own `vreg_l15b_e0`/`vreg_l18b_e0` supplies and `vreg_bob1_e0` mic bias and adding the `Headphones`/`Headset` sound routes. Requires `linux-omarchy>=7.3.6-25` (`_kernel_min`) for the WCD9378 SDCA kernel stack (#4365). `0102` enables `&iris` on the HP OmniBook Ultra Laptop 14-kg0xxx (`glymur-hp-omnibook-ultra-kg0xxx`), pointing `firmware-name` at HP's signed `qcom/glymur/hp/omnibook-ultra-14-kg0xxx/qcvss8480.mbn` (installed by `hp-omnibook-ultra-14-firmware`, #4479) and adding the EL2 `video-firmware` child node with SMMU stream ID `0x19e2` (shared across Glymur `sc8480xp` boards, matching `0097` and `0100`). Measured with `hw-test video` on `7.3.6-28-omarchy`: 60 frames of 720p H.264 decoded on `/dev/video0` in 0.2 s (plus HEVC and VP9 hardware decode and H.264 hardware encode with no kernel errors or SMMU faults; `aa00000.video-codec` and `video_cc_mvs{0,0c,1}_gdsc` return to `suspended`/`off-0` and all interconnects stay synced). Covered by `_kernel_min=7.3.6-25` (`qcom,glymur-iris` landed in `7.3.6-24`, #4243). + +`0103` to `0107` are from running `0056` on a 16-ct0 (SKU DZ3U1UA#ABA, board 8FD0). + +- `0103` makes it boot. It reserves TLMM GPIOs 32-33 and 48-50, the QSPI and security SPI pins the firmware keeps from the OS, whose first access when pinctrl reads them resets the machine two seconds into the boot. It drops `regulator-boot-on` from the NVMe 3.3 V, since the Longsys FSB0C256G (Maxio MAP1202) never reports ready after the PCIe probe's controller reset unless its rail is cycled. And it keeps the eDP backlight regulator always on, since nothing claims it until msm binds the panel and the late regulator cleanup switched the backlight off 30 seconds in. +- `0104` adds the headphones and the two DMICs. The codec enumerates on SoundWire as 0217:010a, a WCD937x as on the QCM6490 IDP rather than the CRD's WCD9385, with its reset on GPIO 83, on LDO17B and LDO8C, the rails HP's ACDB votes, and its mic bias on BOB. The ADSP owns the LPASS clocks, so `lpass_audiocc` is the QCM6490 variant that only gives resets, and the card is the RB3 Gen 2 one, which loads `qcom/qcs6490/SC7280-HP-OmniBook-3-16-ct0-tplg.bin` from `hp-omnibook-3-16-ct0-audio`. Headphones, jack detection and both DMICs work. The headset mic is routed and powers up but records silence. It works in Windows, so the cause is in Linux. +- `0105` adds its embedded controller at 0x76 on `i2c10`, with its event interrupt on GPIO 18, where HP's ACPI reads the battery and the AC adapter from, for `linux-omarchy-aarch64`'s `hp-omnibook-3-ec` driver, which `linux-omarchy>=7.3.6-30` (`_kernel_min`) has. +- `0106` makes the ADSP remote heap `no-map`. Since 7.3.4 fastrpc assigns the whole region to the ADSP when it probes, without claiming it, while `kodiak.dtsi` leaves it `reusable`, and the laptop froze within minutes. Hamoa, lemans and monaco already have it `no-map`. +- `0107` adds the speakers: an I2S amplifier on MI2S1 (GPIOs 106 to 108), enabled by GPIO 136, as HP's ADCM power sequence does it. The part is not known and is described as a MAX98360A, which is only an enable pin. Nothing protects the speakers, so the sound profile does not go above unity gain. + +This unit reports the product `HP OmniBook 3 Laptop AI 16-ct0xxx`, not the `HP OmniBook 3 Laptop 16-ct0xxx` that `sc7280-hp-omnibook-3-16-ct0.json` was written from, so it only matched the manufacturer, family and board CHID. The file now also carries its CHIDs 0 to 9, from `systemd-analyze chid`. diff --git a/pkgbuilds/linux-omarchy-dtbs/sc7280-hp-omnibook-3-16-ct0.json b/pkgbuilds/linux-omarchy-dtbs/sc7280-hp-omnibook-3-16-ct0.json index 53c9c13f8a..bfb9674e75 100644 --- a/pkgbuilds/linux-omarchy-dtbs/sc7280-hp-omnibook-3-16-ct0.json +++ b/pkgbuilds/linux-omarchy-dtbs/sc7280-hp-omnibook-3-16-ct0.json @@ -12,6 +12,16 @@ "121b925d-79f6-5f99-8ac8-e4c87721fce4", "fe677703-82d5-509f-a5e9-e9120cb05b31", "aa6aabc1-159d-5330-9248-e374fd32cbc4", - "1a7fd50c-3a81-5b8e-a4f8-8f21648fdd72" + "1a7fd50c-3a81-5b8e-a4f8-8f21648fdd72", + "015bf4ad-625d-5f13-b1c8-d91e23969ce9", + "65ba0acd-04e1-5aaa-a6dd-8d377d6e6ef2", + "a386f8e4-a9bc-5106-9b3b-384f20f4ab91", + "6d356c7d-d619-5e13-8f3d-2217c69688da", + "5c935299-d7f5-58ff-a3b6-811752a1726f", + "0d636bff-362c-56c5-b0d4-61da85c262c8", + "a0f5fba7-7718-5098-8dbf-6a98d1cc0ecb", + "2113f058-88a8-5818-b812-f2540cc4b873", + "98cda6c6-d20a-597f-89aa-4e2d4cd383af", + "89c1e486-aa63-5dfe-9972-c067eed9596f" ] }