Hello,
I run the Linux of Sunxi for the Allwinner A13, which use the script.fex as configuration.
Now I would like to configurate a gpio matrix keypad with a keymap, I know there is "keypad_para" but this is special for the sun4i-keypad which is in A10/A20.
In a device tree configuration you somehing like this:
matrix-keypad {
compatible = "gpio-matrix-keypad";
debounce-delay-ms = <5>;
col-scan-delay-us = <2>;
row-gpios = <&gpio2 25 0
&gpio2 26 0
&gpio2 27 0>;
col-gpios = <&gpio2 21 0
&gpio2 22 0>;
linux,keymap = <0x0000008B
0x0100009E
0x02000069
0x0001006A
0x0101001C
0x0201006C>;
};
How must this be done with the script.fex? If this is not possible, would it be possible to delete the script.fex and use the device tree with the Sunxi Linux kernel?
Thank for the help..