| /* Copyright (c) 2017, The Linux Foundation. All rights reserved. |
| * |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License version 2 and |
| * only version 2 as published by the Free Software Foundation. |
| * |
| * This program is distributed in the hope that it will be useful, |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| * GNU General Public License for more details. |
| */ |
| |
| #include "sdm845-pmic-overlay.dtsi" |
| #include "sdm845-pinctrl-overlay.dtsi" |
| #include "smb1355.dtsi" |
| |
| &vendor { |
| bluetooth: bt_wcn3990 { |
| compatible = "qca,wcn3990"; |
| qca,bt-vdd-io-supply = <&pm8998_s3>; |
| qca,bt-vdd-xtal-supply = <&pm8998_s5>; |
| qca,bt-vdd-core-supply = <&pm8998_l7>; |
| qca,bt-vdd-pa-supply = <&pm8998_l17>; |
| qca,bt-vdd-ldo-supply = <&pm8998_l25>; |
| |
| qca,bt-vdd-io-voltage-level = <1352000 1352000>; |
| qca,bt-vdd-xtal-voltage-level = <2040000 2040000>; |
| qca,bt-vdd-core-voltage-level = <1800000 1800000>; |
| qca,bt-vdd-pa-voltage-level = <1304000 1304000>; |
| qca,bt-vdd-ldo-voltage-level = <3312000 3312000>; |
| |
| qca,bt-vdd-io-current-level = <1>; /* LPM/PFM */ |
| qca,bt-vdd-xtal-current-level = <1>; /* LPM/PFM */ |
| qca,bt-vdd-core-current-level = <1>; /* LPM/PFM */ |
| qca,bt-vdd-pa-current-level = <1>; /* LPM/PFM */ |
| qca,bt-vdd-ldo-current-level = <1>; /* LPM/PFM */ |
| }; |
| |
| qvr_batterydata: qcom,battery-data { |
| qcom,batt-id-range-pct = <15>; |
| #include "fg-gen3-batterydata-mlp446579-3800mah.dtsi" |
| }; |
| }; |
| |
| &pmi8998_pdphy { |
| vbus-supply = <&smb2_vbus>; |
| }; |
| |
| &qupv3_se6_4uart { |
| status = "ok"; |
| }; |
| |
| &pmi8998_fg { |
| qcom,battery-data = <&qvr_batterydata>; |
| qcom,fg-bmd-en-delay-ms = <300>; |
| }; |
| |
| &pmi8998_charger { |
| qcom,battery-data = <&qvr_batterydata>; |
| qcom,sw-jeita-enable; |
| }; |
| |
| &qupv3_se10_i2c { |
| status = "ok"; |
| }; |
| |
| &smb1355_charger_0 { |
| status = "ok"; |
| }; |
| |
| &smb1355_charger_1 { |
| status = "ok"; |
| }; |
| |
| &soc { |
| qcom,qbt1000 { |
| status = "disabled"; |
| }; |
| |
| gpio_keys { |
| compatible = "gpio-keys"; |
| label = "gpio-keys"; |
| pinctrl-names = "default"; |
| pinctrl-0 = <&key_vol_up_default |
| &key_home_default>; |
| |
| vol_up { |
| label = "volume_up"; |
| gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>; |
| linux,input-type = <1>; |
| linux,code = <115>; |
| gpio-key,wakeup; |
| debounce-interval = <15>; |
| linux,can-disable; |
| }; |
| |
| home { |
| label = "home"; |
| gpios = <&pm8998_gpios 5 GPIO_ACTIVE_LOW>; |
| linux,input-type = <1>; |
| linux,code = <102>; |
| gpio-key,wakeup; |
| debounce-interval = <15>; |
| linux,can-disable; |
| }; |
| }; |
| }; |
| |
| &pmi8998_haptics { |
| qcom,vmax-mv = <1800>; |
| qcom,wave-play-rate-us = <4255>; |
| qcom,lra-auto-mode; |
| status = "okay"; |
| }; |
| |
| &qupv3_se9_2uart { |
| status = "ok"; |
| }; |
| |
| &ufsphy_mem { |
| compatible = "qcom,ufs-phy-qmp-v3"; |
| |
| vdda-phy-supply = <&pm8998_l1>; /* 0.88v */ |
| vdda-pll-supply = <&pm8998_l26>; /* 1.2v */ |
| vdda-phy-max-microamp = <62900>; |
| vdda-pll-max-microamp = <18300>; |
| |
| status = "ok"; |
| }; |
| |
| &ufshc_mem { |
| vdd-hba-supply = <&ufs_phy_gdsc>; |
| vdd-hba-fixed-regulator; |
| vcc-supply = <&pm8998_l20>; |
| vccq2-supply = <&pm8998_s4>; |
| vcc-max-microamp = <600000>; |
| vccq2-max-microamp = <600000>; |
| |
| qcom,vddp-ref-clk-supply = <&pm8998_l2>; |
| qcom,vddp-ref-clk-max-microamp = <100>; |
| |
| status = "ok"; |
| }; |
| |
| &sdhc_2 { |
| vdd-supply = <&pm8998_l21>; |
| qcom,vdd-voltage-level = <2950000 2960000>; |
| qcom,vdd-current-level = <200 800000>; |
| |
| vdd-io-supply = <&pm8998_l13>; |
| qcom,vdd-io-voltage-level = <1808000 2960000>; |
| qcom,vdd-io-current-level = <200 22000>; |
| |
| pinctrl-names = "active", "sleep"; |
| pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &storage_cd>; |
| pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &storage_cd>; |
| |
| cd-gpios = <&tlmm 126 GPIO_ACTIVE_HIGH>; |
| |
| status = "ok"; |
| }; |