]>
Commit | Line | Data |
---|---|---|
6934e004 LJ |
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 | ||
90c40257 LW |
12 | #include <dt-bindings/interrupt-controller/irq.h> |
13 | ||
6934e004 | 14 | / { |
1a780d45 LW |
15 | gpio_keys { |
16 | compatible = "gpio-keys"; | |
17 | #address-cells = <1>; | |
18 | #size-cells = <0>; | |
19 | vdd-supply = <&ab8500_ldo_aux1_reg>; | |
20 | pinctrl-names = "default"; | |
21 | pinctrl-0 = <&prox_stuib_mode>, <&hall_stuib_mode>; | |
22 | ||
23 | button@139 { | |
24 | /* Proximity sensor */ | |
25 | gpios = <&gpio6 25 0x4>; | |
26 | linux,code = <11>; /* SW_FRONT_PROXIMITY */ | |
27 | label = "SFH7741 Proximity Sensor"; | |
28 | }; | |
29 | button@145 { | |
30 | /* Hall sensor */ | |
31 | gpios = <&gpio4 17 0x4>; | |
32 | linux,code = <0>; /* SW_LID */ | |
33 | label = "HED54XXU11 Hall Effect Sensor"; | |
34 | }; | |
35 | }; | |
36 | ||
b1ba1439 | 37 | soc { |
cb552703 LJ |
38 | i2c@80004000 { |
39 | stmpe1601: stmpe1601@40 { | |
40 | compatible = "st,stmpe1601"; | |
41 | reg = <0x40>; | |
90c40257 | 42 | interrupts = <26 IRQ_TYPE_EDGE_FALLING>; |
cb552703 LJ |
43 | interrupt-parent = <&gpio6>; |
44 | interrupt-controller; | |
4ada2129 LW |
45 | vcc-supply = <&db8500_vsmps2_reg>; |
46 | vio-supply = <&db8500_vsmps2_reg>; | |
cb552703 LJ |
47 | |
48 | wakeup-source; | |
49 | st,autosleep-timeout = <1024>; | |
09277819 LJ |
50 | |
51 | stmpe_keypad { | |
52 | compatible = "st,stmpe-keypad"; | |
53 | ||
54 | debounce-interval = <64>; | |
55 | st,scan-count = <8>; | |
56 | st,no-autorepeat; | |
57 | ||
58 | linux,keymap = <0x205006b | |
59 | 0x4010074 | |
60 | 0x3050072 | |
61 | 0x1030004 | |
62 | 0x502006a | |
63 | 0x500000a | |
64 | 0x5008b | |
65 | 0x706001c | |
66 | 0x405000b | |
67 | 0x6070003 | |
68 | 0x3040067 | |
69 | 0x303006c | |
70 | 0x60400e7 | |
71 | 0x602009e | |
72 | 0x4020073 | |
73 | 0x5050002 | |
74 | 0x4030069 | |
75 | 0x3020008>; | |
76 | }; | |
cb552703 LJ |
77 | }; |
78 | }; | |
79 | ||
cbebba7d | 80 | i2c@80110000 { |
d594224a | 81 | bu21013_tp@5c { |
28521368 | 82 | compatible = "rohm,bu21013_tp"; |
cbebba7d | 83 | reg = <0x5c>; |
cbebba7d LJ |
84 | avdd-supply = <&ab8500_ldo_aux1_reg>; |
85 | ||
28521368 LW |
86 | rohm,touch-max-x = <384>; |
87 | rohm,touch-max-y = <704>; | |
88 | rohm,flip-y; | |
cbebba7d LJ |
89 | }; |
90 | ||
d594224a | 91 | bu21013_tp@5d { |
28521368 | 92 | compatible = "rohm,bu21013_tp"; |
cbebba7d | 93 | reg = <0x5d>; |
cbebba7d LJ |
94 | avdd-supply = <&ab8500_ldo_aux1_reg>; |
95 | ||
28521368 LW |
96 | rohm,touch-max-x = <384>; |
97 | rohm,touch-max-y = <704>; | |
98 | rohm,flip-y; | |
cbebba7d LJ |
99 | }; |
100 | }; | |
1a780d45 LW |
101 | |
102 | pinctrl { | |
103 | prox { | |
104 | prox_stuib_mode: prox_stuib { | |
105 | stuib_cfg { | |
1637d480 | 106 | pins = "GPIO217_AH12"; |
1a780d45 LW |
107 | ste,config = <&gpio_in_pu>; |
108 | }; | |
109 | }; | |
110 | }; | |
111 | hall { | |
112 | hall_stuib_mode: stuib_tvk { | |
113 | stuib_cfg { | |
1637d480 | 114 | pins = "GPIO145_C13"; |
1a780d45 LW |
115 | ste,config = <&gpio_in_pu>; |
116 | }; | |
117 | }; | |
118 | }; | |
119 | }; | |
6934e004 LJ |
120 | }; |
121 | }; |