Lee Jones | 6934e00 | 2012-09-28 14:06:29 +0100 | [diff] [blame] | 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 | |
Linus Walleij | 90c4025 | 2013-05-29 19:15:39 +0200 | [diff] [blame^] | 12 | #include <dt-bindings/interrupt-controller/irq.h> |
| 13 | |
Lee Jones | 6934e00 | 2012-09-28 14:06:29 +0100 | [diff] [blame] | 14 | / { |
Gabriel Fernandez | b1ba143 | 2013-03-01 14:38:07 +0100 | [diff] [blame] | 15 | soc { |
Lee Jones | cb55270 | 2012-10-04 12:41:35 +0100 | [diff] [blame] | 16 | i2c@80004000 { |
| 17 | stmpe1601: stmpe1601@40 { |
| 18 | compatible = "st,stmpe1601"; |
| 19 | reg = <0x40>; |
Linus Walleij | 90c4025 | 2013-05-29 19:15:39 +0200 | [diff] [blame^] | 20 | interrupts = <26 IRQ_TYPE_EDGE_FALLING>; |
Lee Jones | cb55270 | 2012-10-04 12:41:35 +0100 | [diff] [blame] | 21 | interrupt-parent = <&gpio6>; |
| 22 | interrupt-controller; |
| 23 | |
| 24 | wakeup-source; |
| 25 | st,autosleep-timeout = <1024>; |
Lee Jones | 0927781 | 2012-10-04 14:21:35 +0100 | [diff] [blame] | 26 | |
| 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 Jones | cb55270 | 2012-10-04 12:41:35 +0100 | [diff] [blame] | 53 | }; |
| 54 | }; |
| 55 | |
Lee Jones | cbebba7 | 2012-09-28 14:41:06 +0100 | [diff] [blame] | 56 | i2c@80110000 { |
| 57 | bu21013_tp@0x5c { |
Linus Walleij | 2852136 | 2013-05-21 13:55:15 +0200 | [diff] [blame] | 58 | compatible = "rohm,bu21013_tp"; |
Lee Jones | cbebba7 | 2012-09-28 14:41:06 +0100 | [diff] [blame] | 59 | reg = <0x5c>; |
| 60 | touch-gpio = <&gpio2 20 0x4>; |
| 61 | avdd-supply = <&ab8500_ldo_aux1_reg>; |
| 62 | |
Linus Walleij | 2852136 | 2013-05-21 13:55:15 +0200 | [diff] [blame] | 63 | rohm,touch-max-x = <384>; |
| 64 | rohm,touch-max-y = <704>; |
| 65 | rohm,flip-y; |
Lee Jones | cbebba7 | 2012-09-28 14:41:06 +0100 | [diff] [blame] | 66 | }; |
| 67 | |
| 68 | bu21013_tp@0x5d { |
Linus Walleij | 2852136 | 2013-05-21 13:55:15 +0200 | [diff] [blame] | 69 | compatible = "rohm,bu21013_tp"; |
Lee Jones | cbebba7 | 2012-09-28 14:41:06 +0100 | [diff] [blame] | 70 | reg = <0x5d>; |
| 71 | touch-gpio = <&gpio2 20 0x4>; |
| 72 | avdd-supply = <&ab8500_ldo_aux1_reg>; |
| 73 | |
Linus Walleij | 2852136 | 2013-05-21 13:55:15 +0200 | [diff] [blame] | 74 | rohm,touch-max-x = <384>; |
| 75 | rohm,touch-max-y = <704>; |
| 76 | rohm,flip-y; |
Lee Jones | cbebba7 | 2012-09-28 14:41:06 +0100 | [diff] [blame] | 77 | }; |
| 78 | }; |
Lee Jones | 6934e00 | 2012-09-28 14:06:29 +0100 | [diff] [blame] | 79 | }; |
| 80 | }; |