I got a dumpster-rescued obscure remote working with #rpi #aarm64 #lirc #wayland yesterday. And it was way harder than it should be - cause I'm a noob is why.

The pitfalls:
dtoverlay wouldn't load on boot
lirc apends additional 32 bits to scancodes - just edit them out in config file
Wayland being Wayland - while irexec config is cool, wtype is a neat utility and your friend here

The yay:
Come on, srsly? Dumpster peripheral. How cool is that :D .