]>
Commit | Line | Data |
---|---|---|
fcaf2036 | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
6934e004 LJ |
2 | /* |
3 | * Copyright 2012 ST-Ericsson AB | |
6934e004 LJ |
4 | */ |
5 | ||
90c40257 LW |
6 | #include <dt-bindings/interrupt-controller/irq.h> |
7 | ||
6934e004 | 8 | / { |
1a780d45 LW |
9 | gpio_keys { |
10 | compatible = "gpio-keys"; | |
11 | #address-cells = <1>; | |
12 | #size-cells = <0>; | |
13 | vdd-supply = <&ab8500_ldo_aux1_reg>; | |
14 | pinctrl-names = "default"; | |
15 | pinctrl-0 = <&prox_stuib_mode>, <&hall_stuib_mode>; | |
16 | ||
17 | button@139 { | |
18 | /* Proximity sensor */ | |
1b1e8e02 | 19 | gpios = <&gpio6 25 GPIO_ACTIVE_HIGH>; |
1a780d45 LW |
20 | linux,code = <11>; /* SW_FRONT_PROXIMITY */ |
21 | label = "SFH7741 Proximity Sensor"; | |
22 | }; | |
23 | button@145 { | |
24 | /* Hall sensor */ | |
1b1e8e02 | 25 | gpios = <&gpio4 17 GPIO_ACTIVE_HIGH>; |
1a780d45 LW |
26 | linux,code = <0>; /* SW_LID */ |
27 | label = "HED54XXU11 Hall Effect Sensor"; | |
28 | }; | |
29 | }; | |
30 | ||
b1ba1439 | 31 | soc { |
cb552703 LJ |
32 | i2c@80004000 { |
33 | stmpe1601: stmpe1601@40 { | |
34 | compatible = "st,stmpe1601"; | |
35 | reg = <0x40>; | |
90c40257 | 36 | interrupts = <26 IRQ_TYPE_EDGE_FALLING>; |
cb552703 LJ |
37 | interrupt-parent = <&gpio6>; |
38 | interrupt-controller; | |
4ada2129 LW |
39 | vcc-supply = <&db8500_vsmps2_reg>; |
40 | vio-supply = <&db8500_vsmps2_reg>; | |
cb552703 LJ |
41 | |
42 | wakeup-source; | |
43 | st,autosleep-timeout = <1024>; | |
09277819 LJ |
44 | |
45 | stmpe_keypad { | |
46 | compatible = "st,stmpe-keypad"; | |
47 | ||
48 | debounce-interval = <64>; | |
49 | st,scan-count = <8>; | |
50 | st,no-autorepeat; | |
51 | ||
52 | linux,keymap = <0x205006b | |
53 | 0x4010074 | |
54 | 0x3050072 | |
55 | 0x1030004 | |
56 | 0x502006a | |
57 | 0x500000a | |
58 | 0x5008b | |
59 | 0x706001c | |
60 | 0x405000b | |
61 | 0x6070003 | |
62 | 0x3040067 | |
63 | 0x303006c | |
64 | 0x60400e7 | |
65 | 0x602009e | |
66 | 0x4020073 | |
67 | 0x5050002 | |
68 | 0x4030069 | |
69 | 0x3020008>; | |
70 | }; | |
cb552703 LJ |
71 | }; |
72 | }; | |
73 | ||
df44ad87 LW |
74 | /* Sensors mounted on this board variant */ |
75 | i2c@80128000 { | |
76 | lis331dl@1c { | |
77 | /* Accelerometer */ | |
78 | compatible = "st,lis331dl-accel"; | |
79 | st,drdy-int-pin = <1>; | |
80 | reg = <0x1c>; | |
81 | vdd-supply = <&ab8500_ldo_aux1_reg>; | |
82 | vddio-supply = <&db8500_vsmps2_reg>; | |
83 | pinctrl-names = "default"; | |
84 | pinctrl-0 = <&accel_stuib_mode>; | |
85 | interrupt-parent = <&gpio2>; | |
86 | interrupts = <18 IRQ_TYPE_EDGE_RISING>, | |
87 | <19 IRQ_TYPE_EDGE_RISING>; | |
88 | }; | |
8dccafaa | 89 | ak8974@f { |
df44ad87 LW |
90 | /* Magnetometer */ |
91 | compatible = "asahi-kasei,ak8974"; | |
92 | reg = <0x0f>; | |
93 | vdd-supply = <&ab8500_ldo_aux1_reg>; | |
94 | vddio-supply = <&db8500_vsmps2_reg>; | |
95 | pinctrl-names = "default"; | |
96 | pinctrl-0 = <&magneto_stuib_mode>; | |
97 | interrupt-parent = <&gpio1>; | |
98 | interrupts = <0 IRQ_TYPE_EDGE_RISING>; | |
99 | }; | |
100 | }; | |
101 | ||
cbebba7d | 102 | i2c@80110000 { |
d594224a | 103 | bu21013_tp@5c { |
28521368 | 104 | compatible = "rohm,bu21013_tp"; |
cbebba7d | 105 | reg = <0x5c>; |
cbebba7d LJ |
106 | avdd-supply = <&ab8500_ldo_aux1_reg>; |
107 | ||
28521368 LW |
108 | rohm,touch-max-x = <384>; |
109 | rohm,touch-max-y = <704>; | |
110 | rohm,flip-y; | |
250656b4 LW |
111 | pinctrl-names = "default"; |
112 | pinctrl-0 = <&touch_rohm_mode>; | |
cbebba7d LJ |
113 | }; |
114 | ||
d594224a | 115 | bu21013_tp@5d { |
28521368 | 116 | compatible = "rohm,bu21013_tp"; |
cbebba7d | 117 | reg = <0x5d>; |
cbebba7d LJ |
118 | avdd-supply = <&ab8500_ldo_aux1_reg>; |
119 | ||
28521368 LW |
120 | rohm,touch-max-x = <384>; |
121 | rohm,touch-max-y = <704>; | |
122 | rohm,flip-y; | |
250656b4 LW |
123 | pinctrl-names = "default"; |
124 | pinctrl-0 = <&touch_rohm_mode>; | |
cbebba7d LJ |
125 | }; |
126 | }; | |
1a780d45 LW |
127 | |
128 | pinctrl { | |
129 | prox { | |
130 | prox_stuib_mode: prox_stuib { | |
131 | stuib_cfg { | |
1637d480 | 132 | pins = "GPIO217_AH12"; |
1a780d45 LW |
133 | ste,config = <&gpio_in_pu>; |
134 | }; | |
135 | }; | |
136 | }; | |
137 | hall { | |
138 | hall_stuib_mode: stuib_tvk { | |
139 | stuib_cfg { | |
1637d480 | 140 | pins = "GPIO145_C13"; |
1a780d45 LW |
141 | ste,config = <&gpio_in_pu>; |
142 | }; | |
143 | }; | |
144 | }; | |
df44ad87 LW |
145 | accelerometer { |
146 | accel_stuib_mode: accel_stuib { | |
147 | /* Accelerometer interrupt lines 1 & 2 */ | |
148 | stuib_cfg { | |
149 | pins = "GPIO82_C1", "GPIO83_D3"; | |
150 | ste,config = <&gpio_in_pu>; | |
151 | }; | |
152 | }; | |
153 | }; | |
154 | magnetometer { | |
155 | magneto_stuib_mode: magneto_stuib { | |
156 | /* Magnetometer uses GPIO 31 and 32, pull these up/down respectively */ | |
157 | stuib_cfg1 { | |
158 | pins = "GPIO31_V3"; | |
159 | ste,config = <&gpio_in_pu>; | |
160 | }; | |
161 | stuib_cfg2 { | |
162 | pins = "GPIO32_V2"; | |
163 | ste,config = <&gpio_in_pd>; | |
164 | }; | |
165 | }; | |
166 | }; | |
250656b4 LW |
167 | touch { |
168 | touch_rohm_mode: touch_rohm { | |
169 | /* | |
170 | * ROHM touch screen uses GPIO 143 for | |
171 | * RST1, GPIO 146 for RST2 and | |
172 | * GPIO 67 for interrupts. Pull-up | |
173 | * the IRQ line and drive both | |
174 | * reset signals low. | |
175 | */ | |
176 | stuib_cfg1 { | |
177 | pins = "GPIO143_D12", "GPIO146_D13"; | |
178 | ste,config = <&gpio_out_lo>; | |
179 | }; | |
180 | stuib_cfg2 { | |
181 | pins = "GPIO67_G2"; | |
182 | ste,config = <&gpio_in_pu>; | |
183 | }; | |
184 | }; | |
185 | }; | |
1a780d45 | 186 | }; |
f4bdfcc2 LW |
187 | |
188 | mcde@a0350000 { | |
189 | status = "okay"; | |
190 | ||
191 | dsi@a0351000 { | |
192 | panel { | |
193 | compatible = "samsung,s6d16d0"; | |
194 | reg = <0>; | |
195 | vdd1-supply = <&ab8500_ldo_aux1_reg>; | |
196 | reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; | |
197 | }; | |
198 | }; | |
199 | }; | |
6934e004 LJ |
200 | }; |
201 | }; |