18c2ecf20Sopenharmony_ci* Tegra keyboard controller
28c2ecf20Sopenharmony_ciThe key controller has maximum 24 pins to make matrix keypad. Any pin
38c2ecf20Sopenharmony_cican be configured as row or column. The maximum column pin can be 8
48c2ecf20Sopenharmony_ciand maximum row pins can be 16 for Tegra20/Tegra30.
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciRequired properties:
78c2ecf20Sopenharmony_ci- compatible: "nvidia,tegra20-kbc"
88c2ecf20Sopenharmony_ci- reg: Register base address of KBC.
98c2ecf20Sopenharmony_ci- interrupts: Interrupt number for the KBC.
108c2ecf20Sopenharmony_ci- nvidia,kbc-row-pins: The KBC pins which are configured as row. This is an
118c2ecf20Sopenharmony_ci  array of pin numbers which is used as rows.
128c2ecf20Sopenharmony_ci- nvidia,kbc-col-pins: The KBC pins which are configured as column. This is an
138c2ecf20Sopenharmony_ci  array of pin numbers which is used as column.
148c2ecf20Sopenharmony_ci- linux,keymap: The keymap for keys as described in the binding document
158c2ecf20Sopenharmony_ci  devicetree/bindings/input/matrix-keymap.txt.
168c2ecf20Sopenharmony_ci- clocks: Must contain one entry, for the module clock.
178c2ecf20Sopenharmony_ci  See ../clocks/clock-bindings.txt for details.
188c2ecf20Sopenharmony_ci- resets: Must contain an entry for each entry in reset-names.
198c2ecf20Sopenharmony_ci  See ../reset/reset.txt for details.
208c2ecf20Sopenharmony_ci- reset-names: Must include the following entries:
218c2ecf20Sopenharmony_ci  - kbc
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciOptional properties, in addition to those specified by the shared
248c2ecf20Sopenharmony_cimatrix-keyboard bindings:
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci- linux,fn-keymap: a second keymap, same specification as the
278c2ecf20Sopenharmony_ci  matrix-keyboard-controller spec but to be used when the KEY_FN modifier
288c2ecf20Sopenharmony_ci  key is pressed.
298c2ecf20Sopenharmony_ci- nvidia,debounce-delay-ms: delay in milliseconds per row scan for debouncing
308c2ecf20Sopenharmony_ci- nvidia,repeat-delay-ms: delay in milliseconds before repeat starts
318c2ecf20Sopenharmony_ci- nvidia,ghost-filter: enable ghost filtering for this device
328c2ecf20Sopenharmony_ci- wakeup-source: configure keyboard as a wakeup source for suspend/resume
338c2ecf20Sopenharmony_ci		 (Legacy property supported: "nvidia,wakeup-source")
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciExample:
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_cikeyboard: keyboard {
388c2ecf20Sopenharmony_ci	compatible = "nvidia,tegra20-kbc";
398c2ecf20Sopenharmony_ci	reg = <0x7000e200 0x100>;
408c2ecf20Sopenharmony_ci	interrupts = <0 85 0x04>;
418c2ecf20Sopenharmony_ci	clocks = <&tegra_car 36>;
428c2ecf20Sopenharmony_ci	resets = <&tegra_car 36>;
438c2ecf20Sopenharmony_ci	reset-names = "kbc";
448c2ecf20Sopenharmony_ci	nvidia,ghost-filter;
458c2ecf20Sopenharmony_ci	nvidia,debounce-delay-ms = <640>;
468c2ecf20Sopenharmony_ci	nvidia,kbc-row-pins = <0 1 2>;    /* pin 0, 1, 2 as rows */
478c2ecf20Sopenharmony_ci	nvidia,kbc-col-pins = <11 12 13>; /* pin 11, 12, 13 as columns */
488c2ecf20Sopenharmony_ci	linux,keymap = <0x00000074
498c2ecf20Sopenharmony_ci			0x00010067
508c2ecf20Sopenharmony_ci			0x00020066
518c2ecf20Sopenharmony_ci			0x01010068
528c2ecf20Sopenharmony_ci			0x02000069
538c2ecf20Sopenharmony_ci			0x02010070
548c2ecf20Sopenharmony_ci			0x02020071>;
558c2ecf20Sopenharmony_ci};
56