Umang Agrawal | fbbfb7f | 2017-12-29 19:27:01 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 and |
| 6 | * only version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | #include "pmi632.dtsi" |
| 15 | |
| 16 | &spmi_bus { |
| 17 | /delete-node/ qcom,pmi8950@2; |
| 18 | /delete-node/ qcom,pmi8950@3; |
| 19 | }; |
| 20 | |
| 21 | &pm8953_typec { |
| 22 | status = "disabled"; |
| 23 | }; |
Umang Agrawal | f0178c9 | 2017-12-28 15:04:51 +0530 | [diff] [blame] | 24 | |
| 25 | &pmi632_pon { |
| 26 | qcom,ps-hold-hard-reset-disable; |
| 27 | qcom,ps-hold-shutdown-disable; |
| 28 | }; |
Sriharsha Allenki | b379782 | 2018-02-12 18:09:01 +0530 | [diff] [blame] | 29 | |
| 30 | &usb3 { |
Pratham Pratap | e450ff7 | 2018-02-20 14:00:39 +0530 | [diff] [blame] | 31 | extcon = <&pmi632_charger>, <&pmi632_charger>, <0>, |
| 32 | <&pmi632_charger>, <&pmi632_charger>; |
Sriharsha Allenki | b379782 | 2018-02-12 18:09:01 +0530 | [diff] [blame] | 33 | vbus_dwc3-supply = <&smb5_vbus>; |
| 34 | }; |
Anirudh Ghayal | b4b5228 | 2018-02-16 19:56:15 +0530 | [diff] [blame] | 35 | |
| 36 | /{ |
| 37 | mtp_batterydata: qcom,battery-data { |
| 38 | qcom,batt-id-range-pct = <15>; |
| 39 | #include "qg-batterydata-ascent-3450mah.dtsi" |
| 40 | #include "qg-batterydata-mlp356477-2800mah.dtsi" |
| 41 | }; |
| 42 | }; |
| 43 | |
| 44 | &pmi632_qg { |
| 45 | qcom,battery-data = <&mtp_batterydata>; |
| 46 | qcom,rbat-conn-mohm = <20>; |
| 47 | }; |
Vishnuvardhan Prodduturi | 886d44e | 2018-01-25 18:29:43 +0530 | [diff] [blame] | 48 | |
| 49 | &pm8953_gpios { |
| 50 | bklt_en { |
| 51 | bklt_en_default: bklt_en_default { |
| 52 | pins = "gpio4"; |
| 53 | function = "normal"; |
| 54 | power-source = <0>; |
| 55 | output-high; |
| 56 | }; |
| 57 | }; |
| 58 | }; |
| 59 | |
| 60 | &pm8953_pwm { |
| 61 | status = "ok"; |
| 62 | }; |
Manaf Meethalavalappu Pallikunhi | fc7be8b | 2018-03-02 01:00:17 +0530 | [diff] [blame^] | 63 | |
| 64 | &thermal_zones { |
| 65 | case-therm-step { |
| 66 | trips { |
| 67 | batt_trip1: batt-trip1 { |
| 68 | temperature = <38000>; |
| 69 | hysteresis = <3000>; |
| 70 | type = "passive"; |
| 71 | }; |
| 72 | batt_trip2: batt-trip2 { |
| 73 | temperature = <40000>; |
| 74 | hysteresis = <2000>; |
| 75 | type = "passive"; |
| 76 | }; |
| 77 | batt_trip3: batt-trip3 { |
| 78 | temperature = <43000>; |
| 79 | hysteresis = <3000>; |
| 80 | type = "passive"; |
| 81 | }; |
| 82 | batt_trip4: batt-trip4 { |
| 83 | temperature = <48000>; |
| 84 | hysteresis = <5000>; |
| 85 | type = "passive"; |
| 86 | }; |
| 87 | }; |
| 88 | |
| 89 | cooling-maps { |
| 90 | battery_lvl1 { |
| 91 | trip = <&batt_trip1>; |
| 92 | cooling-device = <&pmi632_charger 2 2>; |
| 93 | }; |
| 94 | battery_lvl2 { |
| 95 | trip = <&batt_trip2>; |
| 96 | cooling-device = <&pmi632_charger 3 3>; |
| 97 | }; |
| 98 | battery_lvl3 { |
| 99 | trip = <&batt_trip3>; |
| 100 | cooling-device = <&pmi632_charger 4 4>; |
| 101 | }; |
| 102 | battery_lvl4 { |
| 103 | trip = <&batt_trip4>; |
| 104 | cooling-device = <&pmi632_charger 5 5>; |
| 105 | }; |
| 106 | }; |
| 107 | }; |
| 108 | }; |