blob: 2e32ac450991396ba7d9a1df143b7860e0ade9f4 [file] [log] [blame]
Maria Yucd532e82013-09-02 14:44:25 +08001/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13/include/ "msm8226-qrd.dtsi"
14
15&soc {
16 sound {
17 qcom,model = "msm8226-tapan-skuf-snd-card";
18
19 qcom,audio-routing =
20 "RX_BIAS", "MCLK",
21 "LDO_H", "MCLK",
22 "SPK_OUT", "MCLK",
23 "SPK_OUT", "EXT_VDD_SPKR",
24 "Lineout_1 amp", "LINEOUT1",
25 "Lineout_2 amp", "LINEOUT2",
26 "AMIC1", "MIC BIAS1 External",
27 "MIC BIAS1 External", "Handset Mic",
28 "AMIC2", "MIC BIAS2 External",
29 "MIC BIAS2 External", "Headset Mic",
30 "AMIC3", "MIC BIAS1 External",
31 "MIC BIAS1 External", "ANCRight Headset Mic",
32 "AMIC4", "MIC BIAS2 External",
33 "MIC BIAS2 External", "ANCLeft Headset Mic";
34
35 qcom,cdc-mclk-gpios = <&pm8226_gpios 1 0>;
36 qcom,cdc-lineout-spkr-gpios = <&pm8226_gpios 2 0>;
37 qcom,cdc-vdd-spkr-gpios;
38 qcom,cdc-us-euro-gpios;
39 };
40
41 sound-9302 {
42 qcom,model = "msm8226-tapan9302-skuf-snd-card";
43
44 qcom,audio-routing =
45 "RX_BIAS", "MCLK",
46 "LDO_H", "MCLK",
47 "SPK_OUT", "MCLK",
48 "SPK_OUT", "EXT_VDD_SPKR",
49 "Lineout_1 amp", "LINEOUT1",
50 "Lineout_2 amp", "LINEOUT2",
51 "AMIC1", "MIC BIAS1 External",
52 "MIC BIAS1 External", "Handset Mic",
53 "AMIC2", "MIC BIAS2 External",
54 "MIC BIAS2 External", "Headset Mic",
55 "AMIC3", "MIC BIAS1 External",
56 "MIC BIAS1 External", "Handset Mic";
57
58 qcom,cdc-mclk-gpios = <&pm8226_gpios 1 0>;
59 qcom,cdc-lineout-spkr-gpios = <&pm8226_gpios 2 0>;
60 qcom,cdc-vdd-spkr-gpios;
61 qcom,cdc-us-euro-gpios;
62 };
63
64 tp_power: regulator-tp {
65 compatible = "regulator-fixed";
66 regulator-name = "tp_power";
67 regulator-min-microvolt = <2800000>;
68 regulator-max-microvolt = <2800000>;
69 gpio = <&msmgpio 15 0>;
70 startup-delay-us = <20000>;
71 enable-active-high;
72 };
73
74 i2c@f9927000 {
75 goodix@5d {
76 compatible = "goodix,gt9xx";
77 reg = <0x5d>;
78 interrupt-parent = <&msmgpio>;
79 interrupts = <17 0x2008>;
80 reset-gpios = <&msmgpio 16 0x00>;
81 interrupt-gpios = <&msmgpio 17 0x00>;
82 avdd-supply = <&tp_power>;
83 goodix,panel-coords = <0 0 720 1200>;
84 goodix,display-coords = <0 0 720 1080>;
85 goodix,button-map= <158 102 139>;
Shantanu Jain3f80bef2013-09-18 12:05:02 +053086 goodix,product-id = "915";
Bingzhe Cai15d14462013-09-11 18:52:17 +080087 goodix,cfg-data0 = [
Lijuan Gao96d99452013-11-04 15:14:37 +080088 41 D0 02 00 05 05 35 11 01 0F
89 2D 06 50 32 03 02 00 00 00 00
90 00 00 05 18 1A 1E 14 8C 2E 0E
91 59 5B B2 04 00 00 00 99 03 11
92 00 1C 00 00 00 00 00 00 00 00
93 00 53 A6 94 C5 01 05 00 00 08
94 7F 59 00 71 66 00 64 75 00 58
95 87 00 4E 9B 00 4E 10 38 68 00
96 56 45 30 66 66 27 00 00 00 00
Bingzhe Cai15d14462013-09-11 18:52:17 +080097 00 00 00 00 00 00 00 00 00 00
98 00 00 00 00 00 00 00 00 00 00
99 00 00 02 04 06 08 0A 0C 0E 10
Lijuan Gao96d99452013-11-04 15:14:37 +0800100 12 14 16 18 1A 1C FF FF FF FF
101 FF FF FF FF FF FF FF FF FF FF
102 FF FF 00 02 04 06 08 0A 0C 0F
Bingzhe Cai15d14462013-09-11 18:52:17 +0800103 10 12 13 14 16 18 1C 1D 1E 1F
Lijuan Gao96d99452013-11-04 15:14:37 +0800104 20 21 22 24 26 28 29 2A FF FF
105 FF FF FF FF FF FF FF FF FF FF
106 FF FF FF FF 03 01];
Bingzhe Cai15d14462013-09-11 18:52:17 +0800107 goodix,cfg-data1 = [
108 41 D0 02 00 05 05 35 01 01 C3
109 2D 06 55 32 03 03 00 00 00 00
110 00 00 05 0A 0C 0F 0A 8C 0E 0E
111 30 2E B8 08 00 00 00 8F 03 1D
112 00 00 00 00 00 00 00 00 00 00
113 00 2D 62 94 D5 02 05 00 00 04
114 96 30 00 80 39 00 71 42 00 63
115 4D 00 56 5A 00 56 10 38 68 00
116 56 50 35 AA AA 27 00 00 00 00
117 00 01 1B 14 0C 14 00 00 01 00
118 00 00 00 00 00 00 00 00 00 00
119 00 00 02 04 06 08 0A 0C 0E 10
120 12 14 16 18 1A 1C FF FF FF FF
121 FF FF FF FF FF FF FF FF FF FF
122 FF FF 00 02 04 06 08 0A 0C 0F
123 10 12 13 14 16 18 1C 1D 1E 1F
124 20 21 22 24 26 28 29 2A FF FF
125 FF FF FF FF FF FF FF FF FF FF
126 FF FF FF FF 3E 01];
Shantanu Jainf8165002013-10-08 14:02:40 +0530127 goodix,fw_name = "gtp_fw.bin";
Maria Yucd532e82013-09-02 14:44:25 +0800128 };
129 };
130};
131
132&spmi_bus {
133 qcom,pm8226@0 {
134 qcom,leds@a300 {
135 status = "disabled";
136 };
137
138 qcom,leds@a500 {
139 status = "disabled";
140 };
141 };
142
143 qcom,pm8226@1 {
144 qcom,leds@d800 {
145 status = "disabled";
146 };
147 };
148};
149
150&pm8226_mpps {
151 mpp@a300 { /* MPP 4 */
152 /* camera2_id */
153 qcom,mode = <4>; /* AIN input */
154 qcom,invert = <1>; /* Enable MPP */
155 qcom,ain-route = <3>; /* AMUX 8 */
156 qcom,master-en = <1>;
157 qcom,src-sel = <0>; /* Function constant */
158 };
159
160 mpp@a500 { /* MPP 6 */
161 /* camera_id */
162 qcom,mode = <4>; /* AIN input */
163 qcom,invert = <1>; /* Enable MPP */
164 qcom,ain-route = <1>; /* AMUX 6 */
165 qcom,master-en = <1>;
166 qcom,src-sel = <0>; /* Function constant */
167 };
168
169};
170
171&pm8226_vadc {
172 chan@13 {
173 label = "camera2_id";
174 reg = <0x13>;
175 qcom,decimation = <0>;
176 qcom,pre-div-channel-scaling = <0>;
177 qcom,calibration-type = "absolute";
178 qcom,scale-function = <0>;
179 qcom,hw-settle-time = <0>;
180 qcom,fast-avg-setup = <0>;
181 };
182
183 chan@15 {
184 label = "camera_id";
185 reg = <0x15>;
186 qcom,decimation = <0>;
187 qcom,pre-div-channel-scaling = <0>;
188 qcom,calibration-type = "absolute";
189 qcom,scale-function = <0>;
190 qcom,hw-settle-time = <0>;
191 qcom,fast-avg-setup = <0>;
192 };
193};
194
195&qrd_batterydata {
196 qcom,rpull-up-kohm = <100>;
197 qcom,vref-batt-therm = <1800000>;
198
199 /include/ "batterydata-qrd-4v35-2500mah.dtsi"
200};
201
202&pm8226_bms {
203 qcom,battery-data = <&qrd_batterydata>;
204};
205
206&pm8226_chg {
207 qcom,battery-data = <&qrd_batterydata>;
208};
209
210&mdss_dsi0 {
211 qcom,dsi-pref-prim-pan = <&dsi_nt35521_720_vid>;
212};
213
214&dsi_nt35521_720_vid {
215 qcom,cont-splash-enabled;
216};