I recently borrowed Palm Wireless Keyboard from |miska| to write a driver for it. First of all, it's not a good idea to polute kernel sources with more and more keyboard driver modules. Moreover when there already is a nice and clean solution called kbdd for handling all those serial/bluetooth/irda keyboards too, so I decided to use it. The following patch adds palmwk support to kbdd.
To use it just compile kernel with CONFIG_SERIAL_PXA_IR=y and run "kbdd -p /dev/ttyS2 -t palmwk". If you configure kbdd using kbdd.conf, it's even easier since at least in angstrom it's started automagically every time you boot and you wont have to type that command at all. There are just minor changes in the original palmwk keymap, that is "Green FN" + Numbers works as Fx keys (convenient eg. in mc) instead of special characters.