Re: [beagleboard] how to set pins for "gpio-matrix-keypad" in am335x-boneblack-emmc-overlay.dts

2017-02-10 Thread Gurpartap Singh
I facing problem while doing keymap for matrix_keypad for beaglebone. I am refering Linux/Documentation/devicetree/bindings/input/matrix-keymap.txt *how to decode linux,keymap = < 0x00030012 >;* I want to write keymap for 16 keys in 4 x 4 matrix. -- For more options, visit http://beagleboard.org

Re: [beagleboard] how to set pins for "gpio-matrix-keypad" in am335x-boneblack-emmc-overlay.dts

2017-02-10 Thread John Syne
It doesn’t matter if the keyboard is connected via GPIO or I2C, the driver abstracts the interface so that all keyboards act the same way. Regards, John > On Feb 10, 2017, at 1:44 AM, Gurpartap Singh > wrote: > > thanks John, > But I need only GPIO based keypad not i2c based. Please h

Re: [beagleboard] how to set pins for "gpio-matrix-keypad" in am335x-boneblack-emmc-overlay.dts

2017-02-10 Thread Gurpartap Singh
I have successfully compiled .dts file into .dtb file including these additions: 1.matrix_keypad@0 { compatible = "gpio-matrix-keypad"; debounce-delay-ms = <0x5>; col-scan-delay-us = <0x2>; row-gpios = <0x5a 0x19 0x0 0x5a 0x1a 0x0 0x5

Re: [beagleboard] how to set pins for "gpio-matrix-keypad" in am335x-boneblack-emmc-overlay.dts

2017-02-10 Thread Gurpartap Singh
thanks John, But I need only GPIO based keypad not i2c based. Please help what should be my next step after modprobing the driver. How can I define rows and columns pins. Someone had posted this link https://groups.google.com/forum/#!searchin/beagleboard/matrix_keypad|sort:relevance/beag

Re: [beagleboard] how to set pins for "gpio-matrix-keypad" in am335x-boneblack-emmc-overlay.dts

2017-02-10 Thread John Syne
The easiest way is to search Google for "how to use a matrix keyboard in linux”. Here is one example that was listed. https://wiki.analog.com/resources/tools-software/linux-drivers/input-keyboard/adp5589 Re

[beagleboard] how to set pins for "gpio-matrix-keypad" in am335x-boneblack-emmc-overlay.dts

2017-02-10 Thread Gurpartap Singh
I want to use matrix-keypad with beaglebone black.I completed these steps: 1.Modprobe matrix_keypad *output of zcat /proc/config.gz | grep MATRIX* CONFIG_INPUT_MATRIXKMAP=m CONFIG_KEYBOARD_MATRIX=m I am looking into am335x-evm.dts It has pin settings as: matrix_keypad@0 { compatible = "gpio-matrix