blob: b67b7127b41bbb92eb4d1d55bd6c37a7a308f15b [file] [log] [blame]
Himanshu Agrawalfc47a5c2020-03-06 15:08:00 +05301/*
2 * Copyright (c) 2014-2015, 2017, 2020, The Linux Foundation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14&pm8909_chg {
15 status = "ok";
16 qcom,charging-disabled;
17};
18
19&pm8909_bms {
20 status = "ok";
21 qcom,battery-data = <&mtp_batterydata>;
22 qcom,batt-aging-comp;
23};
24
25&usb_otg {
26 extcon = <&pm8909_chg>;
27};
28
29&dsi_hx8394d_720_vid {
30 qcom,cont-splash-enabled;
31 qcom,mdss-dsi-pwm-gpio = <&pm8909_mpps 4 0>;
32 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
33};
34
35&spmi_bus {
36 qcom,pm8909@0 {
37 qcom,leds@a300 {
38 status = "okay";
39 qcom,led_mpp_4 {
40 label = "mpp";
41 linux,name = "button-backlight";
42 linux,default-trigger = "none";
43 qcom,default-state = "off";
44 qcom,max-current = <40>;
45 qcom,current-setting = <5>;
46 qcom,id = <6>;
47 qcom,mode = "manual";
48 qcom,source-sel = <1>;
49 qcom,mode-ctrl = <0x60>;
50 };
51 };
52 };
53
54 qcom,pm8909@1 {
55 qcom,vibrator@c000 {
56 status = "okay";
57 qcom,vib-timeout-ms = <15000>;
58 qcom,vib-vtg-level-mV = <3100>;
59 };
60 };
61};
62
63&pm8909_mpps {
64 mpp@a000 { /* MPP 1 */
65 /* VDD_PX */
66 status = "disabled";
67 };
68
69 mpp@a100 { /* MPP 2 */
70 /* Backlight PWM */
71 qcom,mode = <1>; /* Digital output */
72 qcom,invert = <0>; /* Disable invert */
73 qcom,src-sel = <4>; /* DTEST1 */
74 qcom,vin-sel = <0>; /* VPH_PWR */
75 qcom,master-en = <1>; /* Enable MPP */
76 };
77
78 mpp@a200 { /* MPP 3 */
79 /* VREF DAC */
80 status = "disabled";
81 };
82
83 mpp@a300 { /* MPP 4 */
84 /* HR LED */
85 status = "disabled";
86 };
87};
88
89&pm8909_gpios {
90 gpio@c000 { /* GPIO 1 */
91 /* Battery UICC Alarm */
92 status = "disabled";
93 };
94
95 gpio@c100 { /* GPIO 2 */
96 /* NFC_CLK_REQ */
97 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
98 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
99 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
100 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
101 qcom,master-en = <1>;
102 };
103
104 gpio@c200 { /* GPIO 3 */
105 /* External regulator control for WTR */
106 status = "disabled";
107 };
108
109 gpio@c300 { /* GPIO 4 */
110 /* External regulator control for APC */
111 status = "disabled";
112 };
113};
114
115&audio_codec_mtp {
116 qcom,msm-micbias2-ext-cap;
117};
118
119&spk_vreg {
120 status = "okay";
121};
122
123&pm8909_conga_dig {
124 cdc-vdd-spkdrv-supply = <&spk_vreg>;
125 qcom,cdc-vdd-spkdrv-voltage = <5000000 5000000>;
126 qcom,cdc-vdd-spkdrv-current = <20000>;
127 qcom,cdc-on-demand-supplies = "cdc-vdd-mic-bias",
128 "cdc-vdd-spkdrv";
129 qcom,subsys-name = "modem";
130};
131
132&wcnss {
133 qcom,wcnss-vadc = <&pm8909_vadc>;
134};
135
136&soc {
137 i2c@78b6000 {
138 nq@28 {
139 qcom,nq-clkreq = <&pm8909_gpios 2 0>;
140 };
141 };
142};
143
144&mdss_dsi {
145 vdda-supply = <&pm8909_l2>;
146 vddio-supply = <&pm8909_l6>;
147 qcom,mdss_dsi_ctrl0@1ac8000 {
148 vdd-supply = <&pm8909_l17>;
149 vddio-supply = <&pm8909_l6>;
150 };
151};
152
153&vendor_fstab {
154 status = "disabled";
155};
156
157&system_fstab {
158 status = "disabled";
159};
160
161&dsi_hx8394d_720_vid {
162 qcom,cont-splash-enabled;
163 qcom,mdss-dsi-pwm-gpio = <&pm8909_mpps 4 0>;
164 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
165};