brintos

brintos / linux-shallow public Read only

0
0
Text · 2.0 KiB · 1faa729 Raw
56 lines · plain
1* Tegra keyboard controller2The key controller has maximum 24 pins to make matrix keypad. Any pin3can be configured as row or column. The maximum column pin can be 84and maximum row pins can be 16 for Tegra20/Tegra30.5 6Required properties:7- compatible: "nvidia,tegra20-kbc"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 an11  array of pin numbers which is used as rows.12- nvidia,kbc-col-pins: The KBC pins which are configured as column. This is an13  array of pin numbers which is used as column.14- linux,keymap: The keymap for keys as described in the binding document15  devicetree/bindings/input/matrix-keymap.txt.16- clocks: Must contain one entry, for the module clock.17  See ../clocks/clock-bindings.txt for details.18- resets: Must contain an entry for each entry in reset-names.19  See ../reset/reset.txt for details.20- reset-names: Must include the following entries:21  - kbc22 23Optional properties, in addition to those specified by the shared24matrix-keyboard bindings:25 26- linux,fn-keymap: a second keymap, same specification as the27  matrix-keyboard-controller spec but to be used when the KEY_FN modifier28  key is pressed.29- nvidia,debounce-delay-ms: delay in milliseconds per row scan for debouncing30- nvidia,repeat-delay-ms: delay in milliseconds before repeat starts31- nvidia,ghost-filter: enable ghost filtering for this device32- wakeup-source: configure keyboard as a wakeup source for suspend/resume33		 (Legacy property supported: "nvidia,wakeup-source")34 35Example:36 37keyboard: keyboard {38	compatible = "nvidia,tegra20-kbc";39	reg = <0x7000e200 0x100>;40	interrupts = <0 85 0x04>;41	clocks = <&tegra_car 36>;42	resets = <&tegra_car 36>;43	reset-names = "kbc";44	nvidia,ghost-filter;45	nvidia,debounce-delay-ms = <640>;46	nvidia,kbc-row-pins = <0 1 2>;    /* pin 0, 1, 2 as rows */47	nvidia,kbc-col-pins = <11 12 13>; /* pin 11, 12, 13 as columns */48	linux,keymap = <0x0000007449			0x0001006750			0x0002006651			0x0101006852			0x0200006953			0x0201007054			0x02020071>;55};56