Thanks to jsg@ emmc, sound and touchpad are working now.

With following patches I got also the wireless nic working.
Now I have a good/new/cheap usable laptop for OpenBSD (beside my X230 :)

Index: if_iwx.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/if_iwx.c,v
retrieving revision 1.133
diff -u -p -u -r1.133 if_iwx.c
--- if_iwx.c    9 Jan 2022 05:42:52 -0000       1.133
+++ if_iwx.c    12 Jan 2022 19:41:48 -0000
@@ -9177,6 +9177,7 @@ static const struct pci_matchid iwx_devi
        { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_22500_3 },
        { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_22500_4,},
        { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_22500_5,},
+        { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_22500_6,},
 };

 static const struct pci_matchid iwx_subsystem_id_ax201[] = {
@@ -9218,6 +9219,7 @@ iwx_match(struct device *parent, iwx_mat
        case PCI_PRODUCT_INTEL_WL_22500_3: /* AX201 */
        case PCI_PRODUCT_INTEL_WL_22500_4: /* AX201 */
        case PCI_PRODUCT_INTEL_WL_22500_5: /* AX201 */
+        case PCI_PRODUCT_INTEL_WL_22500_6: /* AX201 */
                for (i = 0; i < nitems(iwx_subsystem_id_ax201); i++) {
                        if (svid == iwx_subsystem_id_ax201[i].pm_vid &&
                            spid == iwx_subsystem_id_ax201[i].pm_pid)
@@ -9408,6 +9410,7 @@ iwx_attach(struct device *parent, struct
        case PCI_PRODUCT_INTEL_WL_22500_2:
        case PCI_PRODUCT_INTEL_WL_22500_3:
        case PCI_PRODUCT_INTEL_WL_22500_5:
+        case PCI_PRODUCT_INTEL_WL_22500_6:
                if (sc->sc_hw_rev != IWX_CSR_HW_REV_TYPE_QUZ) {
                        printf("%s: unsupported AX201 adapter\n", DEVNAME(sc));
                        return;

Index: pcidevs
===================================================================
RCS file: /cvs/src/sys/dev/pci/pcidevs,v
retrieving revision 1.1984
diff -u -p -u -r1.1984 pcidevs
--- pcidevs     10 Jan 2022 23:40:37 -0000      1.1984
+++ pcidevs     12 Jan 2022 19:41:08 -0000
@@ -5547,6 +5547,7 @@ product INTEL JSL_I2C_3           0x4deb  Jasper L
 product INTEL JSL_XHCI         0x4ded  Jasper Lake xHCI
 product INTEL JSL_XDCI         0x4dee  Jasper Lake xDCI
 product INTEL JSL_SRAM         0x4def  Jasper Lake Shared SRAM
+product INTEL WL_22500_6        0x4df0  Wi-Fi 6 AX201
 product INTEL JSL_SDXC         0x4df8  Jasper Lake SDXC
 product INTEL JSL_LPSS_SPI_2   0x4dfb  Jasper Lake SPI
 product INTEL JSL_DPTF         0x4e03  Jasper Lake DPTF

After I read https://marc.info/?l=openbsd-tech&m=164175499605919&w=2 I think we need to wait for general fix for the ax201 issues.

Thanks,
Sven

Reply via email to