1*c66ec88fSEmmanuel Vadot* Cirrus Logic CLPS711X matrix keypad device tree bindings 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotRequired Properties: 4*c66ec88fSEmmanuel Vadot- compatible: Shall contain "cirrus,ep7209-keypad". 5*c66ec88fSEmmanuel Vadot- row-gpios: List of GPIOs used as row lines. 6*c66ec88fSEmmanuel Vadot- poll-interval: Poll interval time in milliseconds. 7*c66ec88fSEmmanuel Vadot- linux,keymap: The definition can be found at 8*c66ec88fSEmmanuel Vadot bindings/input/matrix-keymap.txt. 9*c66ec88fSEmmanuel Vadot 10*c66ec88fSEmmanuel VadotOptional Properties: 11*c66ec88fSEmmanuel Vadot- autorepeat: Enable autorepeat feature. 12*c66ec88fSEmmanuel Vadot 13*c66ec88fSEmmanuel VadotExample: 14*c66ec88fSEmmanuel Vadot keypad { 15*c66ec88fSEmmanuel Vadot compatible = "cirrus,ep7312-keypad", "cirrus,ep7209-keypad"; 16*c66ec88fSEmmanuel Vadot autorepeat; 17*c66ec88fSEmmanuel Vadot poll-interval = <120>; 18*c66ec88fSEmmanuel Vadot row-gpios = <&porta 0 0>, 19*c66ec88fSEmmanuel Vadot <&porta 1 0>; 20*c66ec88fSEmmanuel Vadot 21*c66ec88fSEmmanuel Vadot linux,keymap = < 22*c66ec88fSEmmanuel Vadot MATRIX_KEY(0, 0, KEY_UP) 23*c66ec88fSEmmanuel Vadot MATRIX_KEY(0, 1, KEY_DOWN) 24*c66ec88fSEmmanuel Vadot MATRIX_KEY(1, 0, KEY_LEFT) 25*c66ec88fSEmmanuel Vadot MATRIX_KEY(1, 1, KEY_RIGHT) 26*c66ec88fSEmmanuel Vadot >; 27*c66ec88fSEmmanuel Vadot }; 28