Demo program for matrix keypad in linux

Is there any sample code for matrix keypad in linux similar to the wince code given in this site: How to use Matrix Keypad

Please have a look at the following device tree binding document:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/input/gpio-matrix-keypad.txt