]>
Commit | Line | Data |
---|---|---|
9c19cfa9 LW |
1 | /* |
2 | * Copyright 2012 ST-Ericsson AB | |
3 | * | |
4 | * The code contained herein is licensed under the GNU General Public | |
5 | * License. You may obtain a copy of the GNU General Public License | |
6 | * Version 2 or later at the following locations: | |
7 | * | |
8 | * http://www.opensource.org/licenses/gpl-license.html | |
9 | * http://www.gnu.org/copyleft/gpl.html | |
10 | * | |
11 | * Device Tree for the TVK1281618 UIB | |
12 | */ | |
13 | ||
14 | #include <dt-bindings/interrupt-controller/irq.h> | |
15 | ||
16 | / { | |
17 | soc { | |
7e0a51a0 | 18 | /* Add Synaptics touch screen, TC35893 keypad etc here */ |
84919b96 | 19 | i2c@80004000 { |
7e0a51a0 LW |
20 | tc35893@44 { |
21 | compatible = "toshiba,tc35893"; | |
84919b96 LW |
22 | reg = <0x44>; |
23 | interrupt-parent = <&gpio6>; | |
24 | interrupts = <26 IRQ_TYPE_EDGE_RISING>; | |
a45cb698 LW |
25 | pinctrl-names = "default"; |
26 | pinctrl-0 = <&tc35893_tvk_mode>; | |
84919b96 LW |
27 | |
28 | interrupt-controller; | |
7e0a51a0 | 29 | #interrupt-cells = <1>; |
84919b96 LW |
30 | |
31 | tc3589x_gpio { | |
7e0a51a0 LW |
32 | compatible = "toshiba,tc3589x-gpio"; |
33 | interrupts = <0>; | |
84919b96 LW |
34 | |
35 | interrupt-controller; | |
36 | #interrupt-cells = <2>; | |
37 | gpio-controller; | |
38 | #gpio-cells = <2>; | |
39 | }; | |
7e0a51a0 LW |
40 | tc3589x_keypad { |
41 | compatible = "toshiba,tc3589x-keypad"; | |
42 | interrupts = <6>; | |
43 | debounce-delay-ms = <4>; | |
44 | keypad,num-columns = <8>; | |
45 | keypad,num-rows = <8>; | |
46 | linux,no-autorepeat; | |
47 | linux,wakeup; | |
48 | linux,keymap = <0x0301006b | |
49 | 0x04010066 | |
50 | 0x06040072 | |
51 | 0x040200d7 | |
52 | 0x0303006a | |
53 | 0x0205000e | |
54 | 0x0607008b | |
55 | 0x0500001c | |
56 | 0x0403000b | |
57 | 0x03040034 | |
58 | 0x05020067 | |
59 | 0x0305006c | |
60 | 0x040500e7 | |
61 | 0x0005009e | |
62 | 0x06020073 | |
63 | 0x01030039 | |
64 | 0x07060069 | |
65 | 0x050500d9>; | |
66 | }; | |
84919b96 LW |
67 | }; |
68 | }; | |
a45cb698 LW |
69 | pinctrl { |
70 | /* Pull up this GPIO pin */ | |
71 | tc35893 { | |
72 | tc35893_tvk_mode: tc35893_tvk { | |
73 | tvk_cfg { | |
74 | ste,pins = "GPIO218_AH11"; | |
75 | ste,config = <&gpio_in_pu>; | |
76 | }; | |
77 | }; | |
78 | }; | |
79 | }; | |
9c19cfa9 LW |
80 | }; |
81 | }; |