diff options
author | Simon Glass <sjg@chromium.org> | 2013-01-10 17:41:32 -0800 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2013-02-08 12:58:40 +0000 |
commit | 1d0b1c74ed22d2614ae9206febf956f0b22c81a5 (patch) | |
tree | 35f09caab89441276ce6cfd28437faf26cdb7d35 /Documentation/devicetree/bindings/input/tca8418_keypad.txt | |
parent | d2f4ec1026fecbef9b72cc899a626516ef3f265f (diff) | |
download | blackbird-op-linux-1d0b1c74ed22d2614ae9206febf956f0b22c81a5.tar.gz blackbird-op-linux-1d0b1c74ed22d2614ae9206febf956f0b22c81a5.zip |
input: Extend matrix-keypad device tree binding
Some matrix keypad drivers can support different numbers of rows and
columns. Add a generic binding for these.
Implementation note:
In order to implement this binding in the kernel, we will need to modify
matrix_keypad_() to look up the number of rows and cols in
the keymap. Perhaps this could be done by passing 0 for these parameters?
Many of the parameters can already be set to NULL. Ick.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'Documentation/devicetree/bindings/input/tca8418_keypad.txt')
-rw-r--r-- | Documentation/devicetree/bindings/input/tca8418_keypad.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/input/tca8418_keypad.txt b/Documentation/devicetree/bindings/input/tca8418_keypad.txt index 2a1538f0053f..255185009167 100644 --- a/Documentation/devicetree/bindings/input/tca8418_keypad.txt +++ b/Documentation/devicetree/bindings/input/tca8418_keypad.txt @@ -1,8 +1,10 @@ +This binding is based on the matrix-keymap binding with the following +changes: + +keypad,num-rows and keypad,num-columns are required. Required properties: - compatible: "ti,tca8418" - reg: the I2C address - interrupts: IRQ line number, should trigger on falling edge -- keypad,num-rows: The number of rows -- keypad,num-columns: The number of columns - linux,keymap: Keys definitions, see keypad-matrix. |