blob: 47011013e0f088065afa0d23645d799b9e2922c5 [file] [log] [blame]
Swetha Chikkaboraiahda05f3b2018-05-09 11:14:36 +05301/*
2 * Copyright (c) 2017-2018, 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#include "pmi8950.dtsi"
15#include "msm8917-cdp-mirror-lake-touch.dtsi"
16#include "msm8917-audio-cdp.dtsi"
17
18&soc {
19 led_flash0: qcom,camera-flash {
20 cell-index = <0>;
21 compatible = "qcom,camera-flash";
22 qcom,flash-type = <1>;
23 qcom,flash-source = <&pmi8950_flash0 &pmi8950_flash1>;
24 qcom,torch-source = <&pmi8950_torch0 &pmi8950_torch1>;
25 qcom,switch-source = <&pmi8950_switch>;
26 };
27
28 bluetooth: bt_qca6174 {
29 compatible = "qca,qca6174";
30 qca,bt-reset-gpio = <&tlmm 129 0>; /* BT_EN */
31 };
32};
33
34&qpnp_smbcharger {
35 /delete-property/ dpdm-supply;
36};
37
38&pm8937_gpios {
39 gpio@c400 {
40 qcom,mode = <0>;
41 qcom,output-type = <0>;
42 qcom,pull = <0>;
43 qcom,vin-sel = <2>;
44 qcom,out-strength = <3>;
45 qcom,src-sel = <0>;
46 qcom,master-en = <1>;
47 status = "okay";
48 };
49};
50
51&i2c_5 { /* BLSP2 QUP1 */
52 nq@28 {
53 compatible = "qcom,nq-nci";
54 reg = <0x28>;
55 qcom,nq-irq = <&tlmm 17 0x00>;
56 qcom,nq-ven = <&tlmm 16 0x00>;
57 qcom,nq-firm = <&tlmm 130 0x00>;
58 qcom,nq-clkreq = <&pm8937_gpios 5 0x00>;
59 interrupt-parent = <&tlmm>;
60 qcom,clk-src = "BBCLK2";
61 interrupts = <17 0>;
62 interrupt-names = "nfc_irq";
63 pinctrl-names = "nfc_active", "nfc_suspend";
64 pinctrl-0 = <&nfc_int_active &nfc_disable_active>;
65 pinctrl-1 = <&nfc_int_suspend &nfc_disable_suspend>;
66 clocks = <&clock_gcc clk_bb_clk2_pin>;
67 clock-names = "ref_clk";
68 };
69};
70
71&mdss_dsi0 {
72 lab-supply = <&lab_regulator>;
73 ibb-supply = <&ibb_regulator>;
74};
75
76&labibb {
77 status = "ok";
78 qpnp,qpnp-labibb-mode = "lcd";
79};
80
81&ibb_regulator {
82 qcom,qpnp-ibb-discharge-resistor = <32>;
83};
84
85&dsi_panel_pwr_supply {
86 qcom,panel-supply-entry@2 {
87 reg = <2>;
88 qcom,supply-name = "lab";
89 qcom,supply-min-voltage = <4600000>;
90 qcom,supply-max-voltage = <6000000>;
91 qcom,supply-enable-load = <100000>;
92 qcom,supply-disable-load = <100>;
93 };
94
95 qcom,panel-supply-entry@3 {
96 reg = <3>;
97 qcom,supply-name = "ibb";
98 qcom,supply-min-voltage = <4600000>;
99 qcom,supply-max-voltage = <6000000>;
100 qcom,supply-enable-load = <100000>;
101 qcom,supply-disable-load = <100>;
102 qcom,supply-post-on-sleep = <20>;
103 };
104};