]>
Commit | Line | Data |
---|---|---|
a445c7f0 | 1 | * Tegra keyboard controller |
88390243 LD |
2 | The key controller has maximum 24 pins to make matrix keypad. Any pin |
3 | can be configured as row or column. The maximum column pin can be 8 | |
4 | and maximum row pins can be 16 for Tegra20/Tegra30. | |
a445c7f0 OJ |
5 | |
6 | Required properties: | |
7 | - compatible: "nvidia,tegra20-kbc" | |
88390243 LD |
8 | - reg: Register base address of KBC. |
9 | - interrupts: Interrupt number for the KBC. | |
10 | - nvidia,kbc-row-pins: The KBC pins which are configured as row. This is an | |
11 | array of pin numbers which is used as rows. | |
12 | - nvidia,kbc-col-pins: The KBC pins which are configured as column. This is an | |
13 | array of pin numbers which is used as column. | |
14 | - linux,keymap: The keymap for keys as described in the binding document | |
15 | devicetree/bindings/input/matrix-keymap.txt. | |
d8f64797 SW |
16 | - clocks: Must contain one entry, for the module clock. |
17 | See ../clocks/clock-bindings.txt for details. | |
a445c7f0 | 18 | |
145e9734 OJ |
19 | Optional properties, in addition to those specified by the shared |
20 | matrix-keyboard bindings: | |
21 | ||
22 | - linux,fn-keymap: a second keymap, same specification as the | |
23 | matrix-keyboard-controller spec but to be used when the KEY_FN modifier | |
24 | key is pressed. | |
25 | - nvidia,debounce-delay-ms: delay in milliseconds per row scan for debouncing | |
26 | - nvidia,repeat-delay-ms: delay in milliseconds before repeat starts | |
27 | - nvidia,ghost-filter: enable ghost filtering for this device | |
28 | - nvidia,wakeup-source: configure keyboard as a wakeup source for suspend/resume | |
a445c7f0 OJ |
29 | |
30 | Example: | |
31 | ||
32 | keyboard: keyboard { | |
33 | compatible = "nvidia,tegra20-kbc"; | |
34 | reg = <0x7000e200 0x100>; | |
88390243 | 35 | interrupts = <0 85 0x04>; |
d8f64797 | 36 | clocks = <&tegra_car 36>; |
145e9734 | 37 | nvidia,ghost-filter; |
88390243 LD |
38 | nvidia,debounce-delay-ms = <640>; |
39 | nvidia,kbc-row-pins = <0 1 2>; /* pin 0, 1, 2 as rows */ | |
40 | nvidia,kbc-col-pins = <11 12 13>; /* pin 11, 12, 13 as columns */ | |
41 | linux,keymap = <0x00000074 | |
42 | 0x00010067 | |
43 | 0x00020066 | |
44 | 0x01010068 | |
45 | 0x02000069 | |
46 | 0x02010070 | |
47 | 0x02020071>; | |
a445c7f0 | 48 | }; |