blob: 524e33240ad418e739e7dfd7a6d41cce642b3261 [file] [log] [blame]
Lee Jones6934e002012-09-28 14:06:29 +01001/*
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
Linus Walleij90c40252013-05-29 19:15:39 +020012#include <dt-bindings/interrupt-controller/irq.h>
13
Lee Jones6934e002012-09-28 14:06:29 +010014/ {
Gabriel Fernandezb1ba1432013-03-01 14:38:07 +010015 soc {
Lee Jonescb552702012-10-04 12:41:35 +010016 i2c@80004000 {
17 stmpe1601: stmpe1601@40 {
18 compatible = "st,stmpe1601";
19 reg = <0x40>;
Linus Walleij90c40252013-05-29 19:15:39 +020020 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
Lee Jonescb552702012-10-04 12:41:35 +010021 interrupt-parent = <&gpio6>;
22 interrupt-controller;
23
24 wakeup-source;
25 st,autosleep-timeout = <1024>;
Lee Jones09277812012-10-04 14:21:35 +010026
27 stmpe_keypad {
28 compatible = "st,stmpe-keypad";
29
30 debounce-interval = <64>;
31 st,scan-count = <8>;
32 st,no-autorepeat;
33
34 linux,keymap = <0x205006b
35 0x4010074
36 0x3050072
37 0x1030004
38 0x502006a
39 0x500000a
40 0x5008b
41 0x706001c
42 0x405000b
43 0x6070003
44 0x3040067
45 0x303006c
46 0x60400e7
47 0x602009e
48 0x4020073
49 0x5050002
50 0x4030069
51 0x3020008>;
52 };
Lee Jonescb552702012-10-04 12:41:35 +010053 };
54 };
55
Lee Jonescbebba72012-09-28 14:41:06 +010056 i2c@80110000 {
Linus Walleijd5942242013-06-04 11:50:32 +020057 bu21013_tp@5c {
Linus Walleij28521362013-05-21 13:55:15 +020058 compatible = "rohm,bu21013_tp";
Lee Jonescbebba72012-09-28 14:41:06 +010059 reg = <0x5c>;
60 touch-gpio = <&gpio2 20 0x4>;
61 avdd-supply = <&ab8500_ldo_aux1_reg>;
62
Linus Walleij28521362013-05-21 13:55:15 +020063 rohm,touch-max-x = <384>;
64 rohm,touch-max-y = <704>;
65 rohm,flip-y;
Lee Jonescbebba72012-09-28 14:41:06 +010066 };
67
Linus Walleijd5942242013-06-04 11:50:32 +020068 bu21013_tp@5d {
Linus Walleij28521362013-05-21 13:55:15 +020069 compatible = "rohm,bu21013_tp";
Lee Jonescbebba72012-09-28 14:41:06 +010070 reg = <0x5d>;
71 touch-gpio = <&gpio2 20 0x4>;
72 avdd-supply = <&ab8500_ldo_aux1_reg>;
73
Linus Walleij28521362013-05-21 13:55:15 +020074 rohm,touch-max-x = <384>;
75 rohm,touch-max-y = <704>;
76 rohm,flip-y;
Lee Jonescbebba72012-09-28 14:41:06 +010077 };
78 };
Lee Jones6934e002012-09-28 14:06:29 +010079 };
80};