blob: e50a708f5abe2e2931960ddd966880b6c9393e6c [file] [log] [blame]
Channagoud Kadabi44da4952017-03-20 20:35:56 -07001/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
2 *
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 */
Harry Yang67111662017-04-05 15:14:52 -070012
Harry Yang801aa2e2017-04-10 17:59:05 -070013#include "smb1355.dtsi"
Kyle Yan16860532017-05-05 15:38:47 -070014#include <dt-bindings/gpio/gpio.h>
Harry Yang801aa2e2017-04-10 17:59:05 -070015
Harry Yang67111662017-04-05 15:14:52 -070016/{
Sungjun Parkbd0446d2017-05-17 14:07:18 -070017 bluetooth: bt_wcn3990 {
18 compatible = "qca,wcn3990";
19 qca,bt-vdd-io-supply = <&pm8998_s3>;
20 qca,bt-vdd-xtal-supply = <&pm8998_s5>;
21 qca,bt-vdd-core-supply = <&pm8998_l7>;
22 qca,bt-vdd-pa-supply = <&pm8998_l17>;
23 qca,bt-vdd-ldo-supply = <&pm8998_l25>;
24
25 qca,bt-vdd-io-voltage-level = <1352000 1352000>;
26 qca,bt-vdd-xtal-voltage-level = <2040000 2040000>;
27 qca,bt-vdd-core-voltage-level = <1800000 1800000>;
28 qca,bt-vdd-pa-voltage-level = <1304000 1304000>;
29 qca,bt-vdd-ldo-voltage-level = <3312000 3312000>;
30
31 qca,bt-vdd-io-current-level = <1>; /* LPM/PFM */
32 qca,bt-vdd-xtal-current-level = <1>; /* LPM/PFM */
33 qca,bt-vdd-core-current-level = <1>; /* LPM/PFM */
34 qca,bt-vdd-pa-current-level = <1>; /* LPM/PFM */
35 qca,bt-vdd-ldo-current-level = <1>; /* LPM/PFM */
36 };
37
Harry Yang67111662017-04-05 15:14:52 -070038 qrd_batterydata: qcom,battery-data {
39 qcom,batt-id-range-pct = <15>;
40 #include "fg-gen3-batterydata-itech-3000mah.dtsi"
41 #include "fg-gen3-batterydata-ascent-3450mah.dtsi"
42 };
Girish Mahadevanb8f9deb2017-05-08 14:14:46 -060043
44 aliases {
45 serial0 = &qupv3_se9_2uart;
46 spi0 = &qupv3_se8_spi;
47 i2c0 = &qupv3_se10_i2c;
48 i2c1 = &qupv3_se3_i2c;
49 hsuart0 = &qupv3_se6_4uart;
50 };
51};
52
53&qupv3_se9_2uart {
54 status = "ok";
55};
56
57&qupv3_se8_spi {
58 status = "ok";
59};
60
61&qupv3_se3_i2c {
62 status = "ok";
Gaurav Singhalf6d253d2017-05-11 08:24:40 +053063 nq@28 {
64 compatible = "qcom,nq-nci";
65 reg = <0x28>;
66 qcom,nq-irq = <&tlmm 63 0x00>;
67 qcom,nq-ven = <&tlmm 12 0x00>;
68 qcom,nq-firm = <&tlmm 62 0x00>;
69 qcom,nq-clkreq = <&pm8998_gpios 21 0x00>;
70 qcom,nq-esepwr = <&tlmm 116 0x00>;
71 interrupt-parent = <&tlmm>;
72 qcom,clk-src = "BBCLK3";
73 interrupts = <63 0>;
74 interrupt-names = "nfc_irq";
75 pinctrl-names = "nfc_active", "nfc_suspend";
76 pinctrl-0 = <&nfc_int_active &nfc_enable_active>;
77 pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>;
78 clocks = <&clock_rpmh RPMH_LN_BB_CLK3>;
79 clock-names = "ref_clk";
80 };
Girish Mahadevanb8f9deb2017-05-08 14:14:46 -060081};
82
83&qupv3_se10_i2c {
84 status = "ok";
85};
86
87&qupv3_se6_4uart {
88 status = "ok";
Harry Yang67111662017-04-05 15:14:52 -070089};
90
91&pmi8998_fg {
92 qcom,battery-data = <&qrd_batterydata>;
93};
Xiaoyu Ye73702122017-04-07 17:55:01 -070094
Harry Yang801aa2e2017-04-10 17:59:05 -070095&smb1355_charger {
96 status = "ok";
97};
98
Ram Chandrasekar316c3932017-04-25 12:48:55 -060099&mdss_mdp {
100 #cooling-cells = <2>;
101};
102
Xiaoyu Ye73702122017-04-07 17:55:01 -0700103&soc {
104 sound-tavil {
105 qcom,wsa-max-devs = <1>;
106 qcom,wsa-devs = <&wsa881x_0211>, <&wsa881x_0213>;
107 qcom,wsa-aux-dev-prefix = "SpkrRight", "SpkrRight";
108 };
109};
Kyle Yan16860532017-05-05 15:38:47 -0700110
111&ufsphy_mem {
112 compatible = "qcom,ufs-phy-qmp-v3";
113
114 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
115 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
116 vdda-phy-max-microamp = <62900>;
117 vdda-pll-max-microamp = <18300>;
118
119 status = "ok";
120};
121
122&ufshc_mem {
123 vdd-hba-supply = <&ufs_phy_gdsc>;
124 vdd-hba-fixed-regulator;
125 vcc-supply = <&pm8998_l20>;
126 vccq2-supply = <&pm8998_s4>;
127 vcc-max-microamp = <600000>;
128 vccq2-max-microamp = <600000>;
129
130 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
131 qcom,vddp-ref-clk-max-microamp = <100>;
132
133 status = "ok";
134};
135
136&ufsphy_card {
137 compatible = "qcom,ufs-phy-qmp-v3";
138
139 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
140 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
141 vdda-phy-max-microamp = <62900>;
142 vdda-pll-max-microamp = <18300>;
143
144 status = "ok";
145};
146
147&ufshc_card {
148 vdd-hba-supply = <&ufs_card_gdsc>;
149 vdd-hba-fixed-regulator;
150 vcc-supply = <&pm8998_l21>;
151 vccq2-supply = <&pm8998_s4>;
152 vcc-max-microamp = <300000>;
153 vccq2-max-microamp = <300000>;
154
155 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
156 qcom,vddp-ref-clk-max-microamp = <100>;
157
158 status = "ok";
159};
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700160
161&labibb {
162 status = "ok";
163 qcom,qpnp-labibb-mode = "lcd";
164};
165
166&pmi8998_wled {
167 status = "okay";
168 qcom,led-strings-list = [01 02];
169};
170
171&mdss_mdp {
Dhaval Patel7556ced2017-02-10 19:53:10 -0800172 connectors = <&sde_rscc &sde_wb &dsi_sharp_4k_dsc_video_display>;
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700173};
174
175&dsi_sharp_4k_dsc_video {
176 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
177 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
178 qcom,mdss-dsi-bl-min-level = <1>;
179 qcom,mdss-dsi-bl-max-level = <4095>;
180 qcom,mdss-dsi-panel-mode-gpio-state = "dual_port";
181 qcom,panel-mode-gpio = <&tlmm 52 0>;
182 qcom,platform-te-gpio = <&tlmm 10 0>;
183 qcom,platform-reset-gpio = <&tlmm 6 0>;
Dhaval Patel3d43fc42017-05-17 17:52:05 -0700184 qcom,mdss-dsi-panel-orientation = "180";
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700185};
186
187&dsi_sharp_4k_dsc_video_display {
188 qcom,dsi-display-active;
189};
Maya Erez6e14acb2017-05-16 09:59:02 +0300190
191&wil6210 {
192 status = "ok";
193};
Harry Yang4c05d3e42017-05-09 16:18:17 -0700194
195&ext_5v_boost {
196 status = "ok";
197};