-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmsm8937-mtp.dtsi
263 lines (233 loc) · 6.87 KB
/
msm8937-mtp.dtsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
/*
* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include "msm8937-pinctrl.dtsi"
#include "msm8937-camera-sensor-mtp.dtsi"
&flash_led {
compatible = "qcom,qpnp-flash-led";
reg = <0xd300 0x100>;
pinctrl-names = "flash_led_enable","flash_led_disable";
pinctrl-0 = <&rear_flash_led_enable>;
pinctrl-1 = <&rear_flash_led_disable>;
qcom,follow-otst2-rb-disabled;
};
&wled {
qcom,cons-sync-write-delay-us = <1000>;
};
&soc {
gpio_keys {
compatible = "gpio-keys";
input-name = "gpio-keys";
pinctrl-names = "tlmm_gpio_key_active","tlmm_gpio_key_suspend";
pinctrl-0 = <&gpio_key_active>;
pinctrl-1 = <&gpio_key_suspend>;
camera_focus {
label = "camera_focus";
gpios = <&tlmm 128 0x1>;
linux,input-type = <1>;
linux,code = <0x210>;
debounce-interval = <15>;
};
camera_snapshot {
label = "camera_snapshot";
gpios = <&tlmm 127 0x1>;
linux,input-type = <1>;
linux,code = <0x2fe>;
debounce-interval = <15>;
};
vol_up {
label = "volume_up";
gpios = <&tlmm 91 0x1>;
linux,input-type = <1>;
linux,code = <115>;
debounce-interval = <15>;
};
};
//wangyanhui add hall ic
hall-ic{//yangliang add for hall sensor;20150902
compatible = "hall-switch";
//pinctrl-names = "default";
//pinctrl-0 = <&hall_sensor_int_default>;
interrupt-parent = <&tlmm>;
interrupts = <45 0x0>;
vddio-supply = <&pm8937_l6>;
linux,gpio-int = <&tlmm 45 0x1>;
linux,wakeup;
linux,min-uv = <1800000>;
linux,max-uv = <1800000>;
};
};
&blsp1_uart2 {
status = "ok";
pinctrl-names = "default";
pinctrl-0 = <&uart_console_active>;
};
&spi_3 { /* BLSP1 QUP3 */
maxim_sti@0 {
status = "disabled";
compatible = "maxim,maxim_sti";
reg = <0>;
interrupt-parent = <&tlmm>;
interrupts = <65 0>;
spi-max-frequency = <16000000>;
avdd-supply = <&pm8937_l10>;
dvdd-supply = <&pm8937_l5>;
maxim_sti,irq-gpio = <&tlmm 65 0x00>;
maxim_sti,reset-gpio = <&tlmm 64 0x00>;
maxim_sti,touch_fusion = "/vendor/bin/touch_fusion";
maxim_sti,config_file = "/etc/firmware/qtc800s.cfg";
maxim_sti,fw_name = "qtc800s.bin";
pinctrl-names = "pmx_ts_active","pmx_ts_suspend",
"pmx_ts_release";
pinctrl-0 = <&ts_int_active &ts_reset_active>;
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
pinctrl-2 = <&ts_release>;
};
};
&i2c_3{
focaltech@38 {
compatible = "focaltech,fts";
reg = <0x38>;
interrupt-parent = <&tlmm>;
interrupts = <65 0x2008>;
vdd-supply = <&pm8937_l22>;
vcc_i2c-supply = <&pm8937_l5>;
/* pins used by touchscreen */
pinctrl-names = "pmx_ts_active","pmx_ts_suspend";//,"pmx_ts_release";
pinctrl-0 = <&ts_int_active &ts_reset_active>;
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
//pinctrl-2 = <&ts_release>;
focaltech,irq-gpio = <&tlmm 65 0x0>;
focaltech,reset-gpio = <&tlmm 64 0x0>;
focaltech,max-touch-number = <5>;
focaltech,display-coords = <0 0 720 1440>;
focaltech,chiptype = <2249394188>;
// focaltech,have-key;
focaltech,key-number = <3>;
focaltech,keys = <139 102 158>;
focaltech,key-y-coord = <2000>;
focaltech,key-x-coords = <200 600 800>;
// focaltech,multi-vendor-with-same-ic;
// focaltech,tp_forceupgrade-deviceid = <0x54>;
focaltech,fw-auto-update;
focaltech,display-cfg-auto-update;
focaltech,multiple-ic;
};
};
//TINNO BEGIN
//DATE20171103, Added For ELAN FP By qiao.li,IAAO-141
&soc {
qcom_fp{
status = "ok";
compatible = "qcom,fingerprint";
vdd-supply = <&pm8937_l10>;
vio-supply = <&pm8937_l6>;
reg = <0>;
interrupt-parent = <&tlmm>;
interrupts = <17 0x1>;
qcom,fpid-gpio = <&tlmm 16 0x00>;
qcom,irq-gpio = <&tlmm 17 0x00>;
qcom,reset-gpio = <&tlmm 19 0x00>;
pinctrl-names = "tlmm_gpio_fpid_active";
pinctrl-0 = <&gpio_fpid_active>;
spi-max-frequency = <8000000>;
fp-chip-elan96sa;
};
hbtp {
compatible = "qcom,hbtp-input";
vcc_dig-supply = <&pm8937_l5>;
qcom,dig-load = <15000>;
qcom,dig-vtg-min = <1800000>;
qcom,dig-vtg-max = <1800000>;
};
};
//TINNO END
&sdhc_1 {
/* device core power supply */
vdd-supply = <&pm8937_l8>;
qcom,vdd-voltage-level = <2900000 2900000>;
qcom,vdd-current-level = <200 570000>;
/* device communication power supply */
vdd-io-supply = <&pm8937_l5>;
qcom,vdd-io-always-on;
qcom,vdd-io-lpm-sup;
qcom,vdd-io-voltage-level = <1800000 1800000>;
qcom,vdd-io-current-level = <200 325000>;
pinctrl-names = "active", "sleep";
pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on &sdc1_rclk_on>;
pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off &sdc1_rclk_off>;
qcom,clk-rates = <400000 20000000 25000000 50000000 100000000 192000000
384000000>;
qcom,nonremovable;
qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v";
status = "ok";
};
&sdhc_2 {
/* device core power supply */
vdd-supply = <&pm8937_l11>;
qcom,vdd-voltage-level = <2950000 2950000>;
qcom,vdd-current-level = <15000 800000>;
/* device communication power supply */
vdd-io-supply = <&pm8937_l12>;
qcom,vdd-io-voltage-level = <1800000 2950000>;
qcom,vdd-io-current-level = <200 22000>;
pinctrl-names = "active", "sleep";
pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>;
#address-cells = <0>;
interrupt-parent = <&sdhc_2>;
interrupts = <0 1 2>;
#interrupt-cells = <1>;
interrupt-map-mask = <0xffffffff>;
interrupt-map = <0 &intc 0 125 0
1 &intc 0 221 0
2 &tlmm 67 0>;
interrupt-names = "hc_irq", "pwr_irq", "status_irq";
cd-gpios = <&tlmm 67 0x0>;
qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
200000000>;
qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104";
status = "ok";
};
&pm8937_gpios {
gpio@c400 {
qcom,mode = <0>;
qcom,output-type = <0>;
qcom,pull = <0>;
qcom,vin-sel = <2>;
qcom,out-strength = <3>;
qcom,src-sel = <0>;
qcom,master-en = <1>;
status = "okay";
};
};
#include "msm8937-mdss-panels.dtsi"
&mdss_mdp {
qcom,mdss-pref-prim-intf = "dsi";
};
&mdss_dsi {
hw-config = "single_dsi";
};
&mdss_dsi0 {
qcom,irq-te-tinno-vio = <&tlmm 24 0>;
qcom,dsi-pref-prim-pan = <&dsi_ft8613_720_1440p_vid>;
pinctrl-names = "mdss_default", "mdss_sleep";
pinctrl-0 = <&mdss_dsi_active &mdss_te_active>;
pinctrl-1 = <&mdss_dsi_suspend &mdss_te_suspend>;
// qcom,platform-te-gpio = <&tlmm 24 0>;
qcom,platform-enable-gpio = <&tlmm 68 0>;
qcom,platform-reset-gpio = <&tlmm 60 0>;
// qcom,platform-bklight-en-gpio = <&tlmm 98 0>;
};
&dsi_ft8613_720_1440p_vid {
qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
};