1*c66ec88fSEmmanuel Vadot* Tegra keyboard controller 2*c66ec88fSEmmanuel VadotThe key controller has maximum 24 pins to make matrix keypad. Any pin 3*c66ec88fSEmmanuel Vadotcan be configured as row or column. The maximum column pin can be 8 4*c66ec88fSEmmanuel Vadotand maximum row pins can be 16 for Tegra20/Tegra30. 5*c66ec88fSEmmanuel Vadot 6*c66ec88fSEmmanuel VadotRequired properties: 7*c66ec88fSEmmanuel Vadot- compatible: "nvidia,tegra20-kbc" 8*c66ec88fSEmmanuel Vadot- reg: Register base address of KBC. 9*c66ec88fSEmmanuel Vadot- interrupts: Interrupt number for the KBC. 10*c66ec88fSEmmanuel Vadot- nvidia,kbc-row-pins: The KBC pins which are configured as row. This is an 11*c66ec88fSEmmanuel Vadot array of pin numbers which is used as rows. 12*c66ec88fSEmmanuel Vadot- nvidia,kbc-col-pins: The KBC pins which are configured as column. This is an 13*c66ec88fSEmmanuel Vadot array of pin numbers which is used as column. 14*c66ec88fSEmmanuel Vadot- linux,keymap: The keymap for keys as described in the binding document 15*c66ec88fSEmmanuel Vadot devicetree/bindings/input/matrix-keymap.txt. 16*c66ec88fSEmmanuel Vadot- clocks: Must contain one entry, for the module clock. 17*c66ec88fSEmmanuel Vadot See ../clocks/clock-bindings.txt for details. 18*c66ec88fSEmmanuel Vadot- resets: Must contain an entry for each entry in reset-names. 19*c66ec88fSEmmanuel Vadot See ../reset/reset.txt for details. 20*c66ec88fSEmmanuel Vadot- reset-names: Must include the following entries: 21*c66ec88fSEmmanuel Vadot - kbc 22*c66ec88fSEmmanuel Vadot 23*c66ec88fSEmmanuel VadotOptional properties, in addition to those specified by the shared 24*c66ec88fSEmmanuel Vadotmatrix-keyboard bindings: 25*c66ec88fSEmmanuel Vadot 26*c66ec88fSEmmanuel Vadot- linux,fn-keymap: a second keymap, same specification as the 27*c66ec88fSEmmanuel Vadot matrix-keyboard-controller spec but to be used when the KEY_FN modifier 28*c66ec88fSEmmanuel Vadot key is pressed. 29*c66ec88fSEmmanuel Vadot- nvidia,debounce-delay-ms: delay in milliseconds per row scan for debouncing 30*c66ec88fSEmmanuel Vadot- nvidia,repeat-delay-ms: delay in milliseconds before repeat starts 31*c66ec88fSEmmanuel Vadot- nvidia,ghost-filter: enable ghost filtering for this device 32*c66ec88fSEmmanuel Vadot- wakeup-source: configure keyboard as a wakeup source for suspend/resume 33*c66ec88fSEmmanuel Vadot (Legacy property supported: "nvidia,wakeup-source") 34*c66ec88fSEmmanuel Vadot 35*c66ec88fSEmmanuel VadotExample: 36*c66ec88fSEmmanuel Vadot 37*c66ec88fSEmmanuel Vadotkeyboard: keyboard { 38*c66ec88fSEmmanuel Vadot compatible = "nvidia,tegra20-kbc"; 39*c66ec88fSEmmanuel Vadot reg = <0x7000e200 0x100>; 40*c66ec88fSEmmanuel Vadot interrupts = <0 85 0x04>; 41*c66ec88fSEmmanuel Vadot clocks = <&tegra_car 36>; 42*c66ec88fSEmmanuel Vadot resets = <&tegra_car 36>; 43*c66ec88fSEmmanuel Vadot reset-names = "kbc"; 44*c66ec88fSEmmanuel Vadot nvidia,ghost-filter; 45*c66ec88fSEmmanuel Vadot nvidia,debounce-delay-ms = <640>; 46*c66ec88fSEmmanuel Vadot nvidia,kbc-row-pins = <0 1 2>; /* pin 0, 1, 2 as rows */ 47*c66ec88fSEmmanuel Vadot nvidia,kbc-col-pins = <11 12 13>; /* pin 11, 12, 13 as columns */ 48*c66ec88fSEmmanuel Vadot linux,keymap = <0x00000074 49*c66ec88fSEmmanuel Vadot 0x00010067 50*c66ec88fSEmmanuel Vadot 0x00020066 51*c66ec88fSEmmanuel Vadot 0x01010068 52*c66ec88fSEmmanuel Vadot 0x02000069 53*c66ec88fSEmmanuel Vadot 0x02010070 54*c66ec88fSEmmanuel Vadot 0x02020071>; 55*c66ec88fSEmmanuel Vadot}; 56