blob: 58240be45ffd6f0ffa718cee2eaca67bdb252f4b [file] [log] [blame]
Maria Yu598eb702017-12-28 21:09:38 +08001/*
Tengfei Fanf08a94f2019-04-12 15:59:52 +08002 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
Maria Yu598eb702017-12-28 21:09:38 +08003 *
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 "msm8953-mtp.dtsi"
15
Vijay kumar Tumati408b0962018-03-16 17:28:31 +053016&eeprom0 {
17 cam_vdig-supply = <&pm8953_l23>;
18};
19
20&camera0 {
21 cam_vdig-supply = <&pm8953_l23>;
22};
23
Vishnuvardhan Prodduturi886d44e2018-01-25 18:29:43 +053024&mdss_dsi0 {
25 qcom,dsi-pref-prim-pan = <&dsi_hx8399c_truly_vid>;
26 pinctrl-names = "mdss_default", "mdss_sleep";
jialongjhan7dfbf872020-04-21 20:24:23 +080027 //pinctrl-0 = <&mdss_dsi_active &mdss_te_active &bklt_en_default>;
28 //pinctrl-1 = <&mdss_dsi_suspend &mdss_te_suspend>;
Vishnuvardhan Prodduturi886d44e2018-01-25 18:29:43 +053029
jialongjhan7dfbf872020-04-21 20:24:23 +080030 //qcom,platform-bklight-en-gpio = <&pm8953_gpios 4 0>;
Vishnuvardhan Prodduturi886d44e2018-01-25 18:29:43 +053031 lab-supply = <&lcdb_ldo_vreg>;
32 ibb-supply = <&lcdb_ncp_vreg>;
33
34};
35
36&dsi_truly_1080_vid {
37 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_pwm";
38 qcom,mdss-dsi-bl-pmic-pwm-frequency = <100>;
39 qcom,mdss-dsi-bl-pmic-bank-select = <0>;
40 qcom,mdss-dsi-pwm-gpio = <&pm8953_gpios 8 0>;
41};
42
43&dsi_hx8399c_truly_vid {
44 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_pwm";
45 qcom,mdss-dsi-bl-pmic-pwm-frequency = <100>;
46 qcom,mdss-dsi-bl-pmic-bank-select = <0>;
47 qcom,mdss-dsi-pwm-gpio = <&pm8953_gpios 8 0>;
48};
Ashay Jaiswalcc0c4232018-05-21 15:37:53 +053049
50&i2c_2 {
Tengfei Fanf08a94f2019-04-12 15:59:52 +080051#address-cells = <1>;
52#size-cells = <0>;
53
Ashay Jaiswalcc0c4232018-05-21 15:37:53 +053054#include "smb1355.dtsi"
55};
56
57&pmi632_gpios {
58 smb_en {
59 smb_en_default: smb_en_default {
60 pins = "gpio2";
61 function = "func1";
62 output-enable;
63 };
64 };
Anirudh Ghayalca13a0c2018-05-28 11:44:26 +053065
66 pmi632_sense {
67 /* GPIO 7 and 8 are external-sense pins for PMI632 */
68 pmi632_sense_default: pmi632_sense_default {
69 pins = "gpio7", "gpio8";
70 bias-high-impedance; /* disable the GPIO */
71 bias-disable; /* no-pull */
72 };
73 };
Ashay Jaiswal15d3c8f2018-06-14 21:27:45 +053074
75 pmi632_ctm {
76 /* Disable GPIO1 for h/w base mitigation */
77 pmi632_ctm_default: pmi632_ctm_default {
78 pins = "gpio1";
79 bias-high-impedance; /* disable the GPIO */
80 bias-disable; /* no-pull */
81 };
82 };
Ashay Jaiswalcc0c4232018-05-21 15:37:53 +053083};
84
85&tlmm {
86 smb_int_default: smb_int_default {
87 mux {
88 pins = "gpio59";
89 function = "gpio";
90 };
91 config {
92 pins = "gpio59";
93 drive-strength = <2>;
94 bias-pull-up;
95 input-enable;
96 };
97 };
98};
99
100&smb1355_0 {
101 pinctrl-names = "default";
102 pinctrl-0 = <&smb_int_default
Ashay Jaiswal15d3c8f2018-06-14 21:27:45 +0530103 &smb_en_default &pmi632_sense_default &pmi632_ctm_default>;
Ashay Jaiswalcc0c4232018-05-21 15:37:53 +0530104 interrupt-parent = <&tlmm>;
105 interrupts = <59 IRQ_TYPE_LEVEL_LOW>;
106 smb1355_charger_0: qcom,smb1355-charger@1000 {
107 status ="ok";
108 /delete-property/ io-channels;
109 /delete-property/ io-channels-names;
110 qcom,parallel-mode = <1>;
Ashay Jaiswal15d3c8f2018-06-14 21:27:45 +0530111 qcom,disable-ctm;
112 qcom,hw-die-temp-mitigation;
Ashay Jaiswalcc0c4232018-05-21 15:37:53 +0530113 };
114};
115
116&smb1355_1 {
117 pinctrl-names = "default";
118 pinctrl-0 = <&smb_int_default
Ashay Jaiswal15d3c8f2018-06-14 21:27:45 +0530119 &smb_en_default &pmi632_sense_default &pmi632_ctm_default>;
Ashay Jaiswalcc0c4232018-05-21 15:37:53 +0530120 interrupt-parent = <&tlmm>;
121 interrupts = <59 IRQ_TYPE_LEVEL_LOW>;
122 smb1355_charger_1: qcom,smb1355-charger@1000 {
123 status ="ok";
124 /delete-property/ io-channels;
125 /delete-property/ io-channels-names;
126 qcom,parallel-mode = <1>;
Ashay Jaiswal15d3c8f2018-06-14 21:27:45 +0530127 qcom,disable-ctm;
128 qcom,hw-die-temp-mitigation;
Ashay Jaiswalcc0c4232018-05-21 15:37:53 +0530129 };
130};