You can install Linux on your laptop without wired LAN or keyboard. The process is tricky, though.
First, you need to know why the KB doesn't work. The KB controller was not implemented in the CPU/PCH, but in the EC. The EC emulated an i8042 KB controller, and talks to the host over LPC interface. The EC generated a high-enable interrupt signal while Linux kernel, by default, expects a low-enable interrupt signal, hence the kernel never gets triggered by the KB controller.
The kernel, however, is capable of being triggered by positive IRQ signals, you just have to tell it to anticipate positive IRQ signal. This can be done in a few ways, one of them being adding a quirk in the kernel. A quirk is a device-specific workaround in kernel codebase, aimed to solve a particular problem on a particular device, rather than solving its root cause. Proper quirk was added since Linux 6.0rc1, but I guess you can't wait for this.
Another solution is to tell the kernel in ACPI table that this device has a positive IRQ logic, which is what the BIOS is supposed to do, but apparently it failed to do so. Do not worry, you can construct a DSDT (differentiated system description table) to trick the kernel that the BIOS has reported IRQ positive, so the kernel can anticipate that.
To do so, you first need another computer and use that computer to create a Linux installation disc, in this case, I use Ubuntu 22.04, which comes with 5.15 kernel. Once you've dd'ed the ISO to the flash drive, you will see a Ubuntu partition and a writable partition. Use a partition editor (Disks or GParted, etc.) to create another partition at the end of the drive, doesn't have to be large, 100MiB should be fine, use FAT32 or ext4. In the newly created partition, copy the attached file I provided (modified DSDT image). You don't have to trust me on the security of the file, you can make one later on your own once you have a working keyboard.
Then, press F12 to boot from flash drive in UEFI mode, do NOT let it boot Linux just now, you need to halt the booting process in grub. Go to command line mode, the type ls to list partitions. You should see a list of partitions, like (gptx,hdy). By default, grub only lists your boot drive, so you should only see partitions on your flash drive. The last one (with largest y number in hdy) is the newly created one, and is the one containing the DSDT override file. Press ESC to go back to grub menu. Then choose Install Ubuntu, and edit the command line. You should see a line specifying initrd, modify this line, prepend (gptx,hdy)/acpi_override before the actual initrd filename. You should have something like "initrd (gpt0,hd4)/acpi_override initrd.img-5.15.xxxx", then boot (CTRL+x).
Once you've installed Linux, do NOT reboot. You will need to copy your acpi_override file to your newly installed Linux OS, to the /boot folder. I forgot what the mounting point it is, but you can figure that out using mount -l (lower case L) command. The remove the flash drive and reboot.
Now, you should be able to boot from your own hard drive, but your KB should still not be working. You need to, again, pause the boot process by pressing shift, and edit your grub command line. Prepend acpi_override before your initrd file like we've done before. This time since it is in the /boot folder, you no longer need to specify the partition. Hit CTRL+x to boot.
In your newly installed OS, use a text editor (nano, etc.) to edit /etc/default/grub, you will need sudo privilege. After GRUB_CMDLINE_LINUX="" add a new line "GRUB_EARLY_INITRD_LINUX_CUSTOM=acpi_override". Then, execute sudo update-grub. This will update your grub with ACPI override, and will make sure on every subsequent grub updates (installed new kernel module, new kernel version, etc.) the ACPI override is applied.
Now, if you have doubt on the security of my provided file, you can create your own by following the Reddit thread "Keyboard in Multiple Ryzen 6000 Laptops Not Functional", the first post posted by user shifty-phil is the one I followed. If you can read Chinese or have someone who can translate for you, the first link in his post should also be followed. It has a myriad of valuable information on improving Linux experience on Ryzen 6000 series laptops.
That's it. I hope you enjoy your new laptop.
File: bit dot ly slash 3BbYmnK