blob: 0fb94031264d79cf3b03faa8bc47ae6a6674de55 [file] [log] [blame]
Himanshu Agrawalfc47a5c2020-03-06 15:08:00 +05301/* Copyright (c) 2014-2018, 2020, The Linux Foundation. All rights reserved.
Sundara Vinayagambde65ab2018-03-19 14:27:33 +05302 *
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#include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
13
14&soc {
15 i2c@78b9000 {
16 synaptics@20 {
17 avdd-supply = <&pm8916_l17>;
18 vdd-supply = <&pm8916_l6>;
19 };
20 };
21
22 i2c@78b6000 {
23 nq@28 {
24 qcom,nq-clkreq = <&pm8916_gpios 2 0>;
25 };
26 };
27
28};
29
30&audio_codec_mtp {
31 qcom,model = "msm8909-pm8916-snd-card";
Shashi Kant Mauryadc691292020-05-05 15:10:33 +053032 asoc-codec = <&stub_codec>, <&msm_dig_codec>, <&pmic_anlg_codec>;
33 asoc-codec-names = "msm-stub-codec.1", "msm-dig-codec", "analog-codec";
34};
35
36
37&pm8916_1 {
38 pmic_anlg_codec: analog-codec@f100 {
39 status = "okay";
40 compatible = "qcom,pmic-analog-codec";
41 reg = <0xf000 0x200>;
42 #address-cells = <2>;
43 #size-cells = <0>;
44 interrupt-parent = <&spmi_bus>;
45 interrupts =
46 <0x1 0xf0 0x0 IRQ_TYPE_NONE>,
47 <0x1 0xf0 0x1 IRQ_TYPE_NONE>,
48 <0x1 0xf0 0x2 IRQ_TYPE_NONE>,
49 <0x1 0xf0 0x3 IRQ_TYPE_NONE>,
50 <0x1 0xf0 0x4 IRQ_TYPE_NONE>,
51 <0x1 0xf0 0x5 IRQ_TYPE_NONE>,
52 <0x1 0xf0 0x6 IRQ_TYPE_NONE>,
53 <0x1 0xf0 0x7 IRQ_TYPE_NONE>,
54 <0x1 0xf1 0x0 IRQ_TYPE_NONE>,
55 <0x1 0xf1 0x1 IRQ_TYPE_NONE>,
56 <0x1 0xf1 0x2 IRQ_TYPE_NONE>,
57 <0x1 0xf1 0x3 IRQ_TYPE_NONE>,
58 <0x1 0xf1 0x4 IRQ_TYPE_NONE>,
59 <0x1 0xf1 0x5 IRQ_TYPE_NONE>;
60 interrupt-names =
61 "spk_cnp_int",
62 "spk_clip_int",
63 "spk_ocp_int",
64 "ins_rem_det1",
65 "but_rel_det",
66 "but_press_det",
67 "ins_rem_det",
68 "mbhc_int",
69 "ear_ocp_int",
70 "hphr_ocp_int",
71 "hphl_ocp_det",
72 "ear_cnp_int",
73 "hphr_cnp_int",
74 "hphl_cnp_int";
75
76 cdc-vdda-cp-supply = <&pm8916_s4>;
77 qcom,cdc-vdda-cp-voltage = <1800000 2200000>;
78 qcom,cdc-vdda-cp-current = <770000>;
79
80 cdc-vdda-h-supply = <&pm8916_l5>;
81 qcom,cdc-vdda-h-voltage = <1800000 1800000>;
82 qcom,cdc-vdda-h-current = <20000>;
83
84 cdc-vdd-px-supply = <&pm8916_s4>;
85 qcom,cdc-vdd-px-voltage = <1800000 2200000>;
86 qcom,cdc-vdd-px-current = <770000>;
87
88 cdc-vdd-pa-supply = <&pm8916_l5>;
89 qcom,cdc-vdd-pa-voltage = <1800000 1800000>;
90 qcom,cdc-vdd-pa-current = <5000>;
91
92 cdc-vdd-mic-bias-supply = <&pm8916_l13>;
93 qcom,cdc-vdd-mic-bias-voltage = <3075000 3075000>;
94 qcom,cdc-vdd-mic-bias-current = <25000>;
95
96 qcom,cdc-mclk-clk-rate = <9600000>;
97
98 qcom,cdc-static-supplies =
99 "cdc-vdda-h",
100 "cdc-vdd-px",
101 "cdc-vdd-pa",
102 "cdc-vdda-cp";
103
104 qcom,cdc-on-demand-supplies = "cdc-vdd-mic-bias";
105
106 msm_dig_codec: msm-dig-codec@f000 {
107 compatible = "qcom,msm-digital-codec";
108 reg = <0x771c000 0x100>;
109 };
110 };
Sundara Vinayagambde65ab2018-03-19 14:27:33 +0530111};
112
113&sdhc_1 {
114 vdd-supply = <&pm8916_l8>;
115 vdd-io-supply = <&pm8916_l5>;
116};
117
118&sdhc_2 {
119 vdd-supply = <&pm8916_l11>;
120 vdd-io-supply = <&pm8916_l12>;
121};
122
123&i2c_3 {
124 qcom,actuator@0 {
125 cam_vaf-supply = <&pm8916_l8>;
126 };
127
128
129 qcom,eeprom@6c{
130 cam_vdig-supply = <&pm8916_l2>;
131 cam_vana-supply = <&pm8916_l10>;
132 cam_vio-supply = <&pm8916_l6>;
133 cam_vaf-supply = <&pm8916_l8>;
134 };
135
136 qcom,camera@0 {
137 cam_vdig-supply = <&pm8916_l2>;
138 cam_vana-supply = <&pm8916_l10>;
139 cam_vio-supply = <&pm8916_l6>;
140 cam_vaf-supply = <&pm8916_l8>;
141 };
142
143 qcom,camera@1 {
144 cam_vana-supply = <&pm8916_l10>;
145 cam_vio-supply = <&pm8916_l6>;
146 };
147};
148
Himanshu Agrawalfc47a5c2020-03-06 15:08:00 +0530149&dsi_hx8394d_720_vid {
150 qcom,cont-splash-enabled;
151 qcom,mdss-dsi-pwm-gpio = <&pm8916_mpps 4 0>;
152 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
153};
154
Sundara Vinayagambde65ab2018-03-19 14:27:33 +0530155&spmi_bus {
156 pm8916@0 {
157 qcom,leds@a300 {
158 status = "okay";
159 qcom,led_mpp_4 {
160 label = "mpp";
161 linux,name = "button-backlight";
162 linux,default-trigger = "none";
163 qcom,default-state = "off";
164 qcom,max-current = <40>;
165 qcom,current-setting = <5>;
166 qcom,id = <6>;
167 qcom,mode = "manual";
168 qcom,source-sel = <1>;
169 qcom,mode-ctrl = <0x60>;
170 };
171 };
172 };
173
174 pm8916@1 {
175 qcom,vibrator@c000 {
176 status = "okay";
177 qcom,vib-timeout-ms = <15000>;
178 qcom,vib-vtg-level-mV = <3100>;
179 };
180 };
181};
182
183&pm8916_mpps {
184 /* VDD_PX_BIAS_MPP_1 */
185 vdd_px_bias_mpp {
186 vdd_px_bias_mpp_default: vdd_px_bias_mpp_default {
187 pins = "mpp1";
188 function = "digital";
189 status = "disabled";
190 };
191 };
192
193 /* PMIC_MPP_2 */
194 pmic_mpp {
195 pmic_mpp_default: pmic_mpp_default {
196 pins = "mpp2";
197 function = "digital";
198 status = "disabled";
199 };
200 };
201
202 /* VREF_DAC_MPP_3 */
203 vref_dac_mpp {
204 vref_dac_mpp_default: vref_dac_mpp_default {
205 pins = "mpp3";
206 function = "digital";
207 status = "disabled";
208 };
209 };
210
211 /* WLED_PWM_MPP_4 */
212 wled_pwm_mpp {
213 wled_pwm_mpp_default: wled_pwm_mpp_default {
214 pins = "mpp3";
215 function = "digital";
216 output-enable;
217 power-source = <PM8916_MPP_VPH>;
218 status = "okay";
219 };
220 };
221};
222
223/* pm8916 gpio pinctrl configuration */
224&pm8916_gpios {
225 /* Battery UICC Alarm */
226 uim_batt_alarm { /* GPIO 1 */
227 uim_batt_alarm_default: uim_batt_alarm_default {
228 pins = "gpio1";
229 status = "disabled";
230 };
231 };
232
233 /* GPIO 2 (NFC_CLK_REQ) */
234 nfc_clk {
235 nfc_clk_default: nfc_clk_default {
236 pins = "gpio2";
237 function = "normal";
238 input-enable;
239 status = "disabled";
240 };
241 };
242
243 /* WCN_LDO_EN_GPIO_3 */
244 wcn_ldo_en {
245 wcn_ldo_en_default: wcn_ldo_en_default {
246 pins = "gpio3";
247 function = "normal";
248 output-low;
249 qcom,drive-strength = <1>;
250 status = "disabled";
251 };
252 };
253
254 /* External regulator control for APC */
255 wcd_eldo_en { /* GPIO 4 */
256 wcd_eldo_en_default: wcd_eldo_en_default {
257 pins = "gpio4";
258 status = "disabled";
259 };
260 };
261};
Himanshu Agrawalfc47a5c2020-03-06 15:08:00 +0530262
263&vendor_fstab {
264 status = "disabled";
265};
266
267&system_fstab {
268 status = "disabled";
269};