diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-09-18 10:58:33 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-09-18 10:58:33 -0400 |
commit | 4ba25a496f62129a2ad8c2436ab2b402752dc66c (patch) | |
tree | 8abf41a79f293832a430a9609530c24cd365466c /Documentation/devicetree/bindings/input | |
parent | 390de835b61228abf6646f2b14530edca8d7512f (diff) | |
parent | 6e4664525b1db28f8c4e1130957f70a94c19213e (diff) |
Merge tag 'v3.11' into next
Merge with mainline to bring in sync changes to cyttsp4 driver.
Diffstat (limited to 'Documentation/devicetree/bindings/input')
-rw-r--r-- | Documentation/devicetree/bindings/input/samsung-keypad.txt | 24 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/input/touchscreen/ti-tsc-adc.txt | 44 |
2 files changed, 49 insertions, 19 deletions
diff --git a/Documentation/devicetree/bindings/input/samsung-keypad.txt b/Documentation/devicetree/bindings/input/samsung-keypad.txt index ce3e394c0e64..942d071baaa5 100644 --- a/Documentation/devicetree/bindings/input/samsung-keypad.txt +++ b/Documentation/devicetree/bindings/input/samsung-keypad.txt | |||
@@ -25,14 +25,6 @@ Required Board Specific Properties: | |||
25 | - samsung,keypad-num-columns: Number of column lines connected to the | 25 | - samsung,keypad-num-columns: Number of column lines connected to the |
26 | keypad controller. | 26 | keypad controller. |
27 | 27 | ||
28 | - row-gpios: List of gpios used as row lines. The gpio specifier for | ||
29 | this property depends on the gpio controller to which these row lines | ||
30 | are connected. | ||
31 | |||
32 | - col-gpios: List of gpios used as column lines. The gpio specifier for | ||
33 | this property depends on the gpio controller to which these column | ||
34 | lines are connected. | ||
35 | |||
36 | - Keys represented as child nodes: Each key connected to the keypad | 28 | - Keys represented as child nodes: Each key connected to the keypad |
37 | controller is represented as a child node to the keypad controller | 29 | controller is represented as a child node to the keypad controller |
38 | device node and should include the following properties. | 30 | device node and should include the following properties. |
@@ -41,6 +33,9 @@ Required Board Specific Properties: | |||
41 | - linux,code: the key-code to be reported when the key is pressed | 33 | - linux,code: the key-code to be reported when the key is pressed |
42 | and released. | 34 | and released. |
43 | 35 | ||
36 | - pinctrl-0: Should specify pin control groups used for this controller. | ||
37 | - pinctrl-names: Should contain only one value - "default". | ||
38 | |||
44 | Optional Properties specific to linux: | 39 | Optional Properties specific to linux: |
45 | - linux,keypad-no-autorepeat: do no enable autorepeat feature. | 40 | - linux,keypad-no-autorepeat: do no enable autorepeat feature. |
46 | - linux,keypad-wakeup: use any event on keypad as wakeup event. | 41 | - linux,keypad-wakeup: use any event on keypad as wakeup event. |
@@ -56,17 +51,8 @@ Example: | |||
56 | linux,input-no-autorepeat; | 51 | linux,input-no-autorepeat; |
57 | linux,input-wakeup; | 52 | linux,input-wakeup; |
58 | 53 | ||
59 | row-gpios = <&gpx2 0 3 3 0 | 54 | pinctrl-names = "default"; |
60 | &gpx2 1 3 3 0>; | 55 | pinctrl-0 = <&keypad_rows &keypad_columns>; |
61 | |||
62 | col-gpios = <&gpx1 0 3 0 0 | ||
63 | &gpx1 1 3 0 0 | ||
64 | &gpx1 2 3 0 0 | ||
65 | &gpx1 3 3 0 0 | ||
66 | &gpx1 4 3 0 0 | ||
67 | &gpx1 5 3 0 0 | ||
68 | &gpx1 6 3 0 0 | ||
69 | &gpx1 7 3 0 0>; | ||
70 | 56 | ||
71 | key_1 { | 57 | key_1 { |
72 | keypad,row = <0>; | 58 | keypad,row = <0>; |
diff --git a/Documentation/devicetree/bindings/input/touchscreen/ti-tsc-adc.txt b/Documentation/devicetree/bindings/input/touchscreen/ti-tsc-adc.txt new file mode 100644 index 000000000000..491c97b78384 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/ti-tsc-adc.txt | |||
@@ -0,0 +1,44 @@ | |||
1 | * TI - TSC ADC (Touschscreen and analog digital converter) | ||
2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
3 | |||
4 | Required properties: | ||
5 | - child "tsc" | ||
6 | ti,wires: Wires refer to application modes i.e. 4/5/8 wire touchscreen | ||
7 | support on the platform. | ||
8 | ti,x-plate-resistance: X plate resistance | ||
9 | ti,coordiante-readouts: The sequencer supports a total of 16 | ||
10 | programmable steps each step is used to | ||
11 | read a single coordinate. A single | ||
12 | readout is enough but multiple reads can | ||
13 | increase the quality. | ||
14 | A value of 5 means, 5 reads for X, 5 for | ||
15 | Y and 2 for Z (always). This utilises 12 | ||
16 | of the 16 software steps available. The | ||
17 | remaining 4 can be used by the ADC. | ||
18 | ti,wire-config: Different boards could have a different order for | ||
19 | connecting wires on touchscreen. We need to provide an | ||
20 | 8 bit number where in the 1st four bits represent the | ||
21 | analog lines and the next 4 bits represent positive/ | ||
22 | negative terminal on that input line. Notations to | ||
23 | represent the input lines and terminals resoectively | ||
24 | is as follows: | ||
25 | AIN0 = 0, AIN1 = 1 and so on till AIN7 = 7. | ||
26 | XP = 0, XN = 1, YP = 2, YN = 3. | ||
27 | - child "adc" | ||
28 | ti,adc-channels: List of analog inputs available for ADC. | ||
29 | AIN0 = 0, AIN1 = 1 and so on till AIN7 = 7. | ||
30 | |||
31 | Example: | ||
32 | tscadc: tscadc@44e0d000 { | ||
33 | compatible = "ti,am3359-tscadc"; | ||
34 | tsc { | ||
35 | ti,wires = <4>; | ||
36 | ti,x-plate-resistance = <200>; | ||
37 | ti,coordiante-readouts = <5>; | ||
38 | ti,wire-config = <0x00 0x11 0x22 0x33>; | ||
39 | }; | ||
40 | |||
41 | adc { | ||
42 | ti,adc-channels = <4 5 6 7>; | ||
43 | }; | ||
44 | } | ||