blob: 0c1f097ed56ef0f14d420a729f14a21ebb35d257 [file] [log] [blame]
Zhenhua Huang1e9cb662017-08-18 17:42:24 +08001/* 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 */
Can Guo4532cf62017-08-31 16:45:19 +080012
Fenglin Wua3e0a6a2017-09-18 09:11:44 +080013#include "sdm845-pmic-overlay.dtsi"
14#include "sdm845-pinctrl-overlay.dtsi"
Fenglin Wuadc0a6e2017-09-26 09:05:06 +080015#include "smb1355.dtsi"
Fenglin Wua3e0a6a2017-09-18 09:11:44 +080016
Fenglin Wu7ba65902017-10-10 08:56:15 +080017&vendor {
xiaowangfebe9972017-09-18 15:02:54 +080018 bluetooth: bt_wcn3990 {
19 compatible = "qca,wcn3990";
20 qca,bt-vdd-io-supply = <&pm8998_s3>;
21 qca,bt-vdd-xtal-supply = <&pm8998_s5>;
22 qca,bt-vdd-core-supply = <&pm8998_l7>;
23 qca,bt-vdd-pa-supply = <&pm8998_l17>;
24 qca,bt-vdd-ldo-supply = <&pm8998_l25>;
25
26 qca,bt-vdd-io-voltage-level = <1352000 1352000>;
27 qca,bt-vdd-xtal-voltage-level = <2040000 2040000>;
28 qca,bt-vdd-core-voltage-level = <1800000 1800000>;
29 qca,bt-vdd-pa-voltage-level = <1304000 1304000>;
30 qca,bt-vdd-ldo-voltage-level = <3312000 3312000>;
31
32 qca,bt-vdd-io-current-level = <1>; /* LPM/PFM */
33 qca,bt-vdd-xtal-current-level = <1>; /* LPM/PFM */
34 qca,bt-vdd-core-current-level = <1>; /* LPM/PFM */
35 qca,bt-vdd-pa-current-level = <1>; /* LPM/PFM */
36 qca,bt-vdd-ldo-current-level = <1>; /* LPM/PFM */
37 };
38
Fenglin Wu7ba65902017-10-10 08:56:15 +080039 qvr_batterydata: qcom,battery-data {
40 qcom,batt-id-range-pct = <15>;
41 #include "fg-gen3-batterydata-mlp446579-3800mah.dtsi"
42 };
43};
44
Fenglin Wua3e0a6a2017-09-18 09:11:44 +080045&pmi8998_pdphy {
46 vbus-supply = <&smb2_vbus>;
47};
48
zhenchao491be462017-09-18 19:04:54 +080049&qupv3_se6_4uart {
50 status = "ok";
51};
52
Fenglin Wuadc0a6e2017-09-26 09:05:06 +080053&pmi8998_fg {
Fenglin Wu7ba65902017-10-10 08:56:15 +080054 qcom,battery-data = <&qvr_batterydata>;
Fenglin Wuadc0a6e2017-09-26 09:05:06 +080055 qcom,fg-bmd-en-delay-ms = <300>;
56};
57
Fenglin Wub58217a2017-11-09 09:38:31 +080058&pmi8998_charger {
59 qcom,battery-data = <&qvr_batterydata>;
60 qcom,sw-jeita-enable;
61};
62
Fenglin Wuadc0a6e2017-09-26 09:05:06 +080063&qupv3_se10_i2c {
64 status = "ok";
65};
66
67&smb1355_charger_0 {
68 status = "ok";
69};
70
71&smb1355_charger_1 {
72 status = "ok";
73};
74
75&soc {
76 qcom,qbt1000 {
77 status = "disabled";
78 };
79
80 gpio_keys {
81 compatible = "gpio-keys";
82 label = "gpio-keys";
83 pinctrl-names = "default";
84 pinctrl-0 = <&key_vol_up_default
85 &key_home_default>;
86
87 vol_up {
88 label = "volume_up";
89 gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>;
90 linux,input-type = <1>;
91 linux,code = <115>;
92 gpio-key,wakeup;
93 debounce-interval = <15>;
94 linux,can-disable;
95 };
96
97 home {
98 label = "home";
99 gpios = <&pm8998_gpios 5 GPIO_ACTIVE_LOW>;
100 linux,input-type = <1>;
101 linux,code = <102>;
102 gpio-key,wakeup;
103 debounce-interval = <15>;
104 linux,can-disable;
105 };
106 };
107};
108
109&pmi8998_haptics {
110 qcom,vmax-mv = <1800>;
111 qcom,wave-play-rate-us = <4255>;
112 qcom,lra-auto-mode;
113 status = "okay";
114};
115
Zhenhua Huang7bf9d142017-09-07 14:08:13 +0800116&qupv3_se9_2uart {
117 status = "ok";
118};
119
Can Guo4532cf62017-08-31 16:45:19 +0800120&ufsphy_mem {
121 compatible = "qcom,ufs-phy-qmp-v3";
122
123 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
124 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
125 vdda-phy-max-microamp = <62900>;
126 vdda-pll-max-microamp = <18300>;
127
128 status = "ok";
129};
130
131&ufshc_mem {
132 vdd-hba-supply = <&ufs_phy_gdsc>;
133 vdd-hba-fixed-regulator;
134 vcc-supply = <&pm8998_l20>;
Can Guo09c060c2017-12-21 18:10:10 +0800135 vcc-voltage-level = <2950000 2960000>;
Can Guo4532cf62017-08-31 16:45:19 +0800136 vccq2-supply = <&pm8998_s4>;
137 vcc-max-microamp = <600000>;
138 vccq2-max-microamp = <600000>;
139
140 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
141 qcom,vddp-ref-clk-max-microamp = <100>;
142
143 status = "ok";
144};
Can Guo52d04842017-09-28 09:38:22 +0800145
146&sdhc_2 {
147 vdd-supply = <&pm8998_l21>;
148 qcom,vdd-voltage-level = <2950000 2960000>;
149 qcom,vdd-current-level = <200 800000>;
150
151 vdd-io-supply = <&pm8998_l13>;
152 qcom,vdd-io-voltage-level = <1808000 2960000>;
153 qcom,vdd-io-current-level = <200 22000>;
154
155 pinctrl-names = "active", "sleep";
156 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &storage_cd>;
157 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &storage_cd>;
158
159 cd-gpios = <&tlmm 126 GPIO_ACTIVE_HIGH>;
160
161 status = "ok";
162};
Hamad Kadmanyc3644192017-11-02 18:59:55 +0200163
164&wil6210 {
165 status = "ok";
166};