| /* |
| * Copyright (c) 2017-2018, 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 "gila-touch.dtsi" |
| |
| &pm660_fg { |
| qcom,fg-jeita-thresholds = <2 16 44 58>; |
| qcom,fg-jeita-hyst-temp = <2>; |
| qcom,fg-jeita-en = <1>; |
| qcom,fg-jeita-soft-hot-fv-cc = <4300 200>; |
| qcom,fg-jeita-soft-cold-fv-cc = <4400 80>; |
| qcom,battery-data = <&qrd_batterydata>; |
| qcom,fg-chg-term-current = <25>; |
| qcom,battery-thermal-coefficients = [d2 50 ff]; |
| qcom,fg-rsense-sel = <1>; |
| qcom,fg-force-load-profile; |
| qcom,fg-recharge-soc-thr = <99>; |
| qcom,fg-cutoff-current = <40>; |
| qcom,fg-cutoff-voltage = <3200>; |
| qcom,twm-soc-reserve = <3>; |
| io-channels = <&pm660_rradc 0>, |
| <&pm660_rradc 3>, |
| <&pm660_rradc 4>, |
| <&pm660_rradc 7>; |
| io-channel-names = "rradc_batt_id", |
| "rradc_usbin_i", |
| "rradc_usbin_v", |
| "rradc_die_temp"; |
| }; |
| |
| / { |
| /delete-node/ qcom,battery-data; |
| mtp_batterydata: qcom,battery-data { |
| qcom,batt-id-range-pct = <15>; |
| #include "../common/fg-gen3-batterydata-itech-3000mah.dtsi" |
| }; |
| qrd_batterydata: qcom,battery-data { |
| qcom,batt-id-range-pct = <60>; |
| #include "../common/fg-gen3-batterydata-apack-410mAh.dtsi" |
| }; |
| }; |
| |
| &pm660_pon { |
| qcom,pon_2 { |
| linux,code = <266>; |
| }; |
| }; |
| |
| &pm660_0 { |
| pm660_charger: qcom,qpnp-smb2 { |
| qcom,aicl_rerun_enable; |
| }; |
| }; |
| |
| &rpm_bus { |
| rpm-regulator-ldoa18 { |
| pm660_l18: regulator-l18 { |
| /delete-property/ supply-min-voltage; |
| /delete-property/ supply-max-voltage; |
| /delete-property/ qcom,init-voltage; |
| regulator-min-microvolt = <3300000>; |
| regulator-max-microvolt = <3300000>; |
| qcom,init-voltage = <3300000>; |
| }; |
| }; |
| |
| /* Reconfig for PPG sensor of DVT */ |
| rpm-regulator-ldoa14 { |
| pm660_l14: regulator-l14 { |
| regulator-always-on; |
| regulator-min-microvolt = <1900000>; |
| regulator-max-microvolt = <1900000>; |
| qcom,init-voltage = <1900000>; |
| }; |
| }; |
| }; |
| |
| &mdss_dsi { |
| qcom,mdss_dsi_ctrl0@1ac8000 { |
| /delete-property/ bklt-supply; |
| }; |
| }; |
| |
| &soc { |
| /delete-node/ bob_vreg; |
| }; |
| |
| &pm660_charger { |
| qcom,vzn-retailmode-charging; |
| }; |