blob: f8829173a67f1a416658ab1f2eda07f5aac732b5 [file] [log] [blame]
Swetha Chikkaboraiahe5ab5362018-03-05 15:03:25 +05301/*
2 * Copyright (c) 2015-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-mtp.dtsi"
16
17&soc {
18 led_flash0: qcom,camera-flash {
19 cell-index = <0>;
20 compatible = "qcom,camera-flash";
21 qcom,flash-type = <1>;
22 qcom,flash-source = <&pmi8950_flash0 &pmi8950_flash1>;
23 qcom,torch-source = <&pmi8950_torch0 &pmi8950_torch1>;
24 qcom,switch-source = <&pmi8950_switch>;
25 };
26
27 bluetooth: bt_qca6174 {
28 compatible = "qca,qca6174";
29 qca,bt-reset-gpio = <&tlmm 129 0>; /* BT_EN */
30 };
31};
32
33&vendor{
34 mtp_batterydata: qcom,battery-data {
35 qcom,batt-id-range-pct = <15>;
36 #include "batterydata-itech-3000mah.dtsi"
37 #include "batterydata-ascent-3450mAh.dtsi"
38 };
39};
40
41&pm8937_gpios {
42 gpio@c400 {
43 qcom,mode = <0>;
44 qcom,output-type = <0>;
45 qcom,pull = <0>;
46 qcom,vin-sel = <2>;
47 qcom,out-strength = <3>;
48 qcom,src-sel = <0>;
49 qcom,master-en = <1>;
50 status = "okay";
51 };
52};
53
Swetha Chikkaboraiah59162262018-03-12 11:25:36 +053054&qpnp_fg {
Swetha Chikkaboraiahe5ab5362018-03-05 15:03:25 +053055 qcom,battery-data = <&mtp_batterydata>;
56};
57
Swetha Chikkaboraiah59162262018-03-12 11:25:36 +053058&qpnp_smbcharger {
Swetha Chikkaboraiahe5ab5362018-03-05 15:03:25 +053059 qcom,battery-data = <&mtp_batterydata>;
60 qcom,chg-led-sw-controls;
61 qcom,chg-led-support;
Anirudh Ghayal42e1de32018-06-22 15:55:57 +053062 dpdm-supply = <&usb_otg>;
Swetha Chikkaboraiahe5ab5362018-03-05 15:03:25 +053063};
64
Swetha Chikkaboraiah59162262018-03-12 11:25:36 +053065&usb_otg {
66 extcon = <&qpnp_smbcharger>;
67};
68
Swetha Chikkaboraiahe5ab5362018-03-05 15:03:25 +053069&labibb {
70 status = "ok";
71 qpnp,qpnp-labibb-mode = "lcd";
72};
73
74&ibb_regulator {
75 qcom,qpnp-ibb-discharge-resistor = <32>;
76};
raghavendra ambadas6d5ccc52018-03-13 15:36:14 +053077
78&mdss_dsi0 {
79 lab-supply = <&lab_regulator>;
80 ibb-supply = <&ibb_regulator>;
81};