Zhenhua Huang | 1e9cb66 | 2017-08-18 17:42:24 +0800 | [diff] [blame] | 1 | /* 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 Guo | 4532cf6 | 2017-08-31 16:45:19 +0800 | [diff] [blame] | 12 | |
Fenglin Wu | a3e0a6a | 2017-09-18 09:11:44 +0800 | [diff] [blame] | 13 | #include "sdm845-pmic-overlay.dtsi" |
| 14 | #include "sdm845-pinctrl-overlay.dtsi" |
Fenglin Wu | adc0a6e | 2017-09-26 09:05:06 +0800 | [diff] [blame] | 15 | #include "smb1355.dtsi" |
Fenglin Wu | a3e0a6a | 2017-09-18 09:11:44 +0800 | [diff] [blame] | 16 | |
Fenglin Wu | 7ba6590 | 2017-10-10 08:56:15 +0800 | [diff] [blame] | 17 | &vendor { |
xiaowang | febe997 | 2017-09-18 15:02:54 +0800 | [diff] [blame] | 18 | 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 Wu | 7ba6590 | 2017-10-10 08:56:15 +0800 | [diff] [blame] | 39 | qvr_batterydata: qcom,battery-data { |
| 40 | qcom,batt-id-range-pct = <15>; |
| 41 | #include "fg-gen3-batterydata-mlp446579-3800mah.dtsi" |
| 42 | }; |
| 43 | }; |
| 44 | |
Fenglin Wu | a3e0a6a | 2017-09-18 09:11:44 +0800 | [diff] [blame] | 45 | &pmi8998_pdphy { |
| 46 | vbus-supply = <&smb2_vbus>; |
| 47 | }; |
| 48 | |
zhenchao | 491be46 | 2017-09-18 19:04:54 +0800 | [diff] [blame] | 49 | &qupv3_se6_4uart { |
| 50 | status = "ok"; |
| 51 | }; |
| 52 | |
Fenglin Wu | adc0a6e | 2017-09-26 09:05:06 +0800 | [diff] [blame] | 53 | &pmi8998_fg { |
Fenglin Wu | 7ba6590 | 2017-10-10 08:56:15 +0800 | [diff] [blame] | 54 | qcom,battery-data = <&qvr_batterydata>; |
Fenglin Wu | adc0a6e | 2017-09-26 09:05:06 +0800 | [diff] [blame] | 55 | qcom,fg-bmd-en-delay-ms = <300>; |
| 56 | }; |
| 57 | |
Fenglin Wu | b58217a | 2017-11-09 09:38:31 +0800 | [diff] [blame] | 58 | &pmi8998_charger { |
| 59 | qcom,battery-data = <&qvr_batterydata>; |
| 60 | qcom,sw-jeita-enable; |
| 61 | }; |
| 62 | |
Fenglin Wu | adc0a6e | 2017-09-26 09:05:06 +0800 | [diff] [blame] | 63 | &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 Huang | 7bf9d14 | 2017-09-07 14:08:13 +0800 | [diff] [blame] | 116 | &qupv3_se9_2uart { |
| 117 | status = "ok"; |
| 118 | }; |
| 119 | |
Can Guo | 4532cf6 | 2017-08-31 16:45:19 +0800 | [diff] [blame] | 120 | &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 Guo | 09c060c | 2017-12-21 18:10:10 +0800 | [diff] [blame^] | 135 | vcc-voltage-level = <2950000 2960000>; |
Can Guo | 4532cf6 | 2017-08-31 16:45:19 +0800 | [diff] [blame] | 136 | 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 Guo | 52d0484 | 2017-09-28 09:38:22 +0800 | [diff] [blame] | 145 | |
| 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 Kadmany | c364419 | 2017-11-02 18:59:55 +0200 | [diff] [blame] | 163 | |
| 164 | &wil6210 { |
| 165 | status = "ok"; |
| 166 | }; |