Debian Codegraph @

arch/arm/boot/dts/qcom/qcom-msm8226-samsung-ms013g.dts

raw
1 // SPDX-License-Identifier: BSD-3-Clause
2
3 /dts-v1/;
4
5 #include "qcom-msm8226.dtsi"
6 #include "pm8226.dtsi"
7
8 /delete-node/ &smem_region;
9
10 / {
11 model = "Samsung Galaxy Grand 2";
12 compatible = "samsung,ms013g", "qcom,msm8226";
13 chassis-type = "handset";
14
15 aliases {
16 display0 = &framebuffer0;
17 mmc0 = &sdhc_1; /* SDC1 eMMC slot */
18 mmc1 = &sdhc_2; /* SDC2 SD card slot */
19 serial0 = &blsp1_uart3;
20 };
21
22 chosen {
23 #address-cells = <1>;
24 #size-cells = <1>;
25 ranges;
26
27 stdout-path = "display0";
28
29 framebuffer0: framebuffer@3200000 {
30 compatible = "simple-framebuffer";
31 reg = <0x03200000 0x800000>;
32 memory-region = <&cont_splash_region>;
33
34 width = <720>;
35 height = <1280>;
36 stride = <(720 * 3)>;
37 format = "r8g8b8";
38
39 clocks = <&mmcc MDSS_AHB_CLK>,
40 <&mmcc MDSS_AXI_CLK>,
41 <&mmcc MDSS_BYTE0_CLK>,
42 <&mmcc MDSS_MDP_CLK>,
43 <&mmcc MDSS_PCLK0_CLK>,
44 <&mmcc MDSS_VSYNC_CLK>;
45 power-domains = <&mmcc MDSS_GDSC>;
46 };
47 };
48
49 gpio-hall-sensor {
50 compatible = "gpio-keys";
51
52 pinctrl-0 = <&gpio_hall_sensor_default>;
53 pinctrl-names = "default";
54
55 label = "GPIO Hall Effect Sensor";
56
57 event-hall-sensor {
58 label = "Hall Effect Sensor";
59 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
60 linux,input-type = <EV_SW>;
61 linux,code = <SW_LID>;
62 linux,can-disable;
63 };
64 };
65
66 gpio-keys {
67 compatible = "gpio-keys";
68
69 pinctrl-0 = <&gpio_keys_default>;
70 pinctrl-names = "default";
71
72 label = "GPIO Buttons";
73
74 button-volume-up {
75 label = "Volume Up";
76 gpios = <&tlmm 106 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_VOLUMEUP>;
78 };
79
80 button-volume-down {
81 label = "Volume Down";
82 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_VOLUMEDOWN>;
84 };
85
86 button-home {
87 label = "Home Key";
88 gpios = <&tlmm 108 GPIO_ACTIVE_LOW>;
89 linux,code = <KEY_HOMEPAGE>;
90 };
91 };
92
93 reg_motor_vdd: regulator-motor-vdd {
94 compatible = "regulator-fixed";
95 regulator-name = "motor_vdd";
96 regulator-min-microvolt = <3300000>;
97 regulator-max-microvolt = <3300000>;
98
99 gpio = <&tlmm 111 GPIO_ACTIVE_HIGH>;
100 enable-active-high;
101
102 pinctrl-0 = <&motor_en_default>;
103 pinctrl-names = "default";
104 };
105
106 reg_vdd_tsp_a: regulator-vdd-tsp-a {
107 compatible = "regulator-fixed";
108 regulator-name = "tsp_3p3v";
109 regulator-min-microvolt = <3300000>;
110 regulator-max-microvolt = <3300000>;
111
112 gpio = <&tlmm 31 GPIO_ACTIVE_HIGH>;
113 enable-active-high;
114
115 pinctrl-0 = <&tsp_en_default>;
116 pinctrl-names = "default";
117 };
118
119 reserved-memory {
120 cont_splash_region: cont-splash@3200000 {
121 reg = <0x03200000 0x800000>;
122 no-map;
123 };
124
125 smem_region: smem@fa00000 {
126 reg = <0x0fa00000 0x100000>;
127 no-map;
128 };
129 };
130
131 vibrator {
132 compatible = "regulator-haptic";
133 haptic-supply = <&reg_motor_vdd>;
134 min-microvolt = <3300000>;
135 max-microvolt = <3300000>;
136 };
137 };
138
139 &blsp1_i2c2 {
140 status = "okay";
141
142 accelerometer@18 {
143 compatible = "bosch,bma255";
144 reg = <0x18>;
145 interrupts-extended = <&tlmm 64 IRQ_TYPE_EDGE_RISING>;
146
147 vdd-supply = <&pm8226_l19>;
148 vddio-supply = <&pm8226_lvs1>;
149
150 pinctrl-0 = <&accel_int_default>;
151 pinctrl-names = "default";
152
153 mount-matrix = "0", "1", "0",
154 "-1", "0", "0",
155 "0", "0", "-1";
156 };
157 };
158
159 &blsp1_i2c5 {
160 status = "okay";
161
162 touchscreen@20 {
163 compatible = "zinitix,bt541";
164
165 reg = <0x20>;
166 interrupts-extended = <&tlmm 17 IRQ_TYPE_EDGE_FALLING>;
167
168 touchscreen-size-x = <720>;
169 touchscreen-size-y = <1280>;
170
171 vcca-supply = <&reg_vdd_tsp_a>;
172 vdd-supply = <&pm8226_lvs1>;
173
174 pinctrl-0 = <&tsp_int_default>;
175 pinctrl-names = "default";
176
177 linux,keycodes = <KEY_APPSELECT KEY_BACK>;
178 };
179 };
180
181 &blsp1_uart3 {
182 status = "okay";
183 };
184
185 &rpm_requests {
186 regulators {
187 compatible = "qcom,rpm-pm8226-regulators";
188
189 pm8226_s3: s3 {
190 regulator-min-microvolt = <1200000>;
191 regulator-max-microvolt = <1300000>;
192 };
193
194 pm8226_s4: s4 {
195 regulator-min-microvolt = <1800000>;
196 regulator-max-microvolt = <2200000>;
197 };
198
199 pm8226_s5: s5 {
200 regulator-min-microvolt = <1150000>;
201 regulator-max-microvolt = <1150000>;
202 };
203
204 pm8226_l1: l1 {
205 regulator-min-microvolt = <1225000>;
206 regulator-max-microvolt = <1225000>;
207 };
208
209 pm8226_l2: l2 {
210 regulator-min-microvolt = <1200000>;
211 regulator-max-microvolt = <1200000>;
212 };
213
214 pm8226_l3: l3 {
215 regulator-min-microvolt = <750000>;
216 regulator-max-microvolt = <1337500>;
217 };
218
219 pm8226_l4: l4 {
220 regulator-min-microvolt = <1200000>;
221 regulator-max-microvolt = <1200000>;
222 };
223
224 pm8226_l5: l5 {
225 regulator-min-microvolt = <1200000>;
226 regulator-max-microvolt = <1200000>;
227 };
228
229 pm8226_l6: l6 {
230 regulator-min-microvolt = <1800000>;
231 regulator-max-microvolt = <1800000>;
232 regulator-allow-set-load;
233 regulator-always-on;
234 };
235
236 pm8226_l7: l7 {
237 regulator-min-microvolt = <1850000>;
238 regulator-max-microvolt = <1850000>;
239 };
240
241 pm8226_l8: l8 {
242 regulator-min-microvolt = <1800000>;
243 regulator-max-microvolt = <1800000>;
244 };
245
246 pm8226_l9: l9 {
247 regulator-min-microvolt = <2050000>;
248 regulator-max-microvolt = <2050000>;
249 };
250
251 pm8226_l10: l10 {
252 regulator-min-microvolt = <1800000>;
253 regulator-max-microvolt = <1800000>;
254 };
255
256 pm8226_l12: l12 {
257 regulator-min-microvolt = <1800000>;
258 regulator-max-microvolt = <1800000>;
259 };
260
261 pm8226_l14: l14 {
262 regulator-min-microvolt = <2750000>;
263 regulator-max-microvolt = <2750000>;
264 };
265
266 pm8226_l15: l15 {
267 regulator-min-microvolt = <2800000>;
268 regulator-max-microvolt = <2800000>;
269 };
270
271 pm8226_l16: l16 {
272 regulator-min-microvolt = <3000000>;
273 regulator-max-microvolt = <3350000>;
274 };
275
276 pm8226_l17: l17 {
277 regulator-min-microvolt = <2950000>;
278 regulator-max-microvolt = <2950000>;
279
280 regulator-system-load = <200000>;
281 regulator-allow-set-load;
282 regulator-always-on;
283 };
284
285 pm8226_l18: l18 {
286 regulator-min-microvolt = <2950000>;
287 regulator-max-microvolt = <2950000>;
288 };
289
290 pm8226_l19: l19 {
291 regulator-min-microvolt = <2850000>;
292 regulator-max-microvolt = <3000000>;
293 };
294
295 pm8226_l20: l20 {
296 regulator-min-microvolt = <3075000>;
297 regulator-max-microvolt = <3075000>;
298 };
299
300 pm8226_l21: l21 {
301 regulator-min-microvolt = <1800000>;
302 regulator-max-microvolt = <2950000>;
303 regulator-allow-set-load;
304 };
305
306 pm8226_l22: l22 {
307 regulator-min-microvolt = <1800000>;
308 regulator-max-microvolt = <2950000>;
309 };
310
311 pm8226_l23: l23 {
312 regulator-min-microvolt = <1800000>;
313 regulator-max-microvolt = <3300000>;
314 };
315
316 pm8226_l24: l24 {
317 regulator-min-microvolt = <1300000>;
318 regulator-max-microvolt = <1350000>;
319 };
320
321 pm8226_l25: l25 {
322 regulator-min-microvolt = <1775000>;
323 regulator-max-microvolt = <2125000>;
324 };
325
326 pm8226_l26: l26 {
327 regulator-min-microvolt = <1225000>;
328 regulator-max-microvolt = <1300000>;
329 };
330
331 pm8226_l27: l27 {
332 regulator-min-microvolt = <2050000>;
333 regulator-max-microvolt = <2050000>;
334 };
335
336 pm8226_l28: l28 {
337 regulator-min-microvolt = <1800000>;
338 regulator-max-microvolt = <2950000>;
339 };
340
341 pm8226_lvs1: lvs1 {};
342 };
343 };
344
345 &sdhc_1 {
346 vmmc-supply = <&pm8226_l17>;
347 vqmmc-supply = <&pm8226_l6>;
348
349 bus-width = <8>;
350 non-removable;
351
352 status = "okay";
353 };
354
355 &sdhc_2 {
356 vmmc-supply = <&pm8226_l18>;
357 vqmmc-supply = <&pm8226_l21>;
358
359 bus-width = <4>;
360 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
361
362 pinctrl-0 = <&sdhc2_default_state &sdhc2_cd_default>;
363 pinctrl-names = "default";
364
365 status = "okay";
366 };
367
368 &tlmm {
369 accel_int_default: accel-int-default-state {
370 pins = "gpio64";
371 function = "gpio";
372 drive-strength = <2>;
373 bias-disable;
374 };
375
376 gpio_hall_sensor_default: gpio-hall-sensor-default-state {
377 pins = "gpio50";
378 function = "gpio";
379 drive-strength = <2>;
380 bias-pull-up;
381 };
382
383 gpio_keys_default: gpio-keys-default-state {
384 pins = "gpio106", "gpio107", "gpio108";
385 function = "gpio";
386 drive-strength = <2>;
387 bias-pull-up;
388 };
389
390 motor_en_default: motor-en-default-state {
391 pins = "gpio111";
392 function = "gpio";
393 drive-strength = <2>;
394 bias-disable;
395 };
396
397 sdhc2_cd_default: sdhc2-cd-default-state {
398 pins = "gpio38";
399 function = "gpio";
400 drive-strength = <2>;
401 bias-disable;
402 };
403
404 tsp_en_default: tsp-en-default-state {
405 pins = "gpio31";
406 function = "gpio";
407 drive-strength = <2>;
408 bias-disable;
409 };
410
411 tsp_int_default: tsp-int-default-state {
412 pins = "gpio17";
413 function = "gpio";
414 drive-strength = <2>;
415 bias-disable;
416 };
417 };