David Collins | 2392688 | 2013-10-10 16:00:22 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2013, 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 | */ |
| 12 | |
| 13 | /include/ "msm8974pro-ac-pma8084.dtsi" |
| 14 | &spmi_bus { |
| 15 | pm8941_lsid0: qcom,pm8941@2 { |
| 16 | reg = <0x2>; |
| 17 | }; |
| 18 | pm8941_lsid1: qcom,pm8941@3 { |
| 19 | reg = <0x3>; |
| 20 | }; |
| 21 | }; |
| 22 | /include/ "msm-pm8941.dtsi" |
| 23 | |
| 24 | &pm8941_lsid0 { |
| 25 | qcom,power-on@800 { |
| 26 | status = "disabled"; |
| 27 | }; |
| 28 | |
| 29 | clkdiv@5b00 { |
| 30 | status = "disabled"; |
| 31 | }; |
| 32 | |
| 33 | clkdiv@5c00 { |
| 34 | status = "disabled"; |
| 35 | }; |
| 36 | |
| 37 | clkdiv@5d00 { |
| 38 | status = "disabled"; |
| 39 | }; |
| 40 | |
| 41 | qcom,pm8941_rtc { |
| 42 | status = "disabled"; |
| 43 | }; |
| 44 | |
| 45 | gpios { |
| 46 | status = "disabled"; |
| 47 | }; |
| 48 | |
| 49 | mpps { |
| 50 | status = "disabled"; |
| 51 | }; |
| 52 | }; |
| 53 | |
| 54 | &pm8941_lsid1 { |
| 55 | pm8941_boost: regulator@a000 { |
| 56 | regulator-min-microvolt = <5000000>; |
| 57 | regulator-max-microvolt = <5000000>; |
| 58 | qcom,enable-time = <500>; |
| 59 | status = "okay"; |
| 60 | }; |
| 61 | |
| 62 | pm8941_mvs1: regulator@8300 { |
| 63 | parent-supply = <&pm8941_chg_otg>; |
| 64 | qcom,enable-time = <1000>; |
| 65 | qcom,pull-down-enable = <1>; |
| 66 | interrupts = <0x3 0x83 0x2>; |
| 67 | interrupt-names = "ocp"; |
| 68 | qcom,ocp-enable = <1>; |
| 69 | qcom,ocp-max-retries = <10>; |
| 70 | qcom,ocp-retry-delay = <30>; |
| 71 | qcom,soft-start-enable = <1>; |
| 72 | qcom,vs-soft-start-strength = <0>; |
| 73 | qcom,hpm-enable = <1>; |
| 74 | qcom,auto-mode-enable = <0>; |
| 75 | status = "okay"; |
| 76 | }; |
| 77 | }; |
| 78 | |
| 79 | &pma8084_mvs1 { |
| 80 | parent-supply = <&pm8941_boost>; |
| 81 | }; |
| 82 | |
| 83 | &pm8941_chg { |
| 84 | otg-parent-supply = <&pm8941_boost>; |
| 85 | }; |
| 86 | |
| 87 | &pm8941_chg_boost { |
| 88 | regulator-min-microvolt = <5000000>; |
| 89 | regulator-max-microvolt = <5000000>; |
| 90 | regulator-name = "8941_smbb_boost"; |
| 91 | }; |
| 92 | |
| 93 | &pm8941_chg_batif { |
| 94 | regulator-name = "batfet"; |
| 95 | }; |
| 96 | |
| 97 | &pm8941_chg_otg { |
| 98 | regulator-name = "8941_smbb_otg"; |
| 99 | }; |
| 100 | |
| 101 | &usb3 { |
| 102 | vbus_dwc3-supply = <&pm8941_mvs1>; |
| 103 | qcom,misc-ref = <&pm8941_misc>; |
| 104 | dwc_usb3-adc_tm = <&pm8941_adc_tm>; |
Vijayavardhan Vennapusa | 51f76c1 | 2014-02-17 11:01:12 +0530 | [diff] [blame] | 105 | qcom,usbin-vadc = <&pm8941_vadc>; |
David Collins | 2392688 | 2013-10-10 16:00:22 -0700 | [diff] [blame] | 106 | interrupt-map-mask = <0x0 0xffffffff>; |
| 107 | interrupt-map = <0x0 0 &intc 0 133 0 |
| 108 | 0x0 1 &spmi_bus 0x0 0x2 0x9 0x0>; |
| 109 | interrupt-names = "hs_phy_irq", "pmic_id_irq"; |
Vijayavardhan Vennapusa | d7f13c4 | 2013-09-27 15:19:39 +0530 | [diff] [blame] | 110 | qcom,dwc-ssphy-deemphasis-value = <26>; |
David Collins | 2392688 | 2013-10-10 16:00:22 -0700 | [diff] [blame] | 111 | }; |
| 112 | |
| 113 | /* Correct PM8941 local slave ID 0 to use global SID 4 for all interrupts. */ |
| 114 | &pm8941_lsid0 { |
| 115 | qcom,temp-alarm@2400 { |
| 116 | interrupts = <0x2 0x24 0x0>; |
| 117 | }; |
| 118 | |
| 119 | qcom,power-on@800 { |
| 120 | interrupts = <0x2 0x8 0x0>, |
| 121 | <0x2 0x8 0x1>, |
| 122 | <0x2 0x8 0x4>, |
| 123 | <0x2 0x8 0x5>; |
| 124 | interrupt-names = "kpdpwr", "resin", |
| 125 | "resin-bark", "kpdpwr-resin-bark"; |
| 126 | }; |
| 127 | |
| 128 | qcom,bsi@1b00 { |
| 129 | interrupts = <0x2 0x1b 0x0>, |
| 130 | <0x2 0x1b 0x1>, |
| 131 | <0x2 0x1b 0x2>, |
| 132 | <0x2 0x12 0x0>; |
| 133 | interrupt-names = "err", |
| 134 | "rx", |
| 135 | "tx", |
| 136 | "batt-present"; |
| 137 | }; |
| 138 | |
| 139 | qcom,bms { |
| 140 | qcom,bms-bms@4000 { |
| 141 | interrupts = <0x2 0x40 0x0>, |
| 142 | <0x2 0x40 0x1>, |
| 143 | <0x2 0x40 0x2>, |
| 144 | <0x2 0x40 0x3>, |
| 145 | <0x2 0x40 0x4>, |
| 146 | <0x2 0x40 0x5>, |
| 147 | <0x2 0x40 0x6>, |
| 148 | <0x2 0x40 0x7>; |
| 149 | interrupt-names = "cc_thr", |
| 150 | "ocv_for_r", |
| 151 | "good_ocv", |
| 152 | "charge_begin", |
| 153 | "ocv_thr", |
| 154 | "sw_cc_thr", |
| 155 | "vsense_avg", |
| 156 | "vsense_for_r"; |
| 157 | }; |
| 158 | }; |
| 159 | |
| 160 | qcom,charger { |
| 161 | qcom,chgr@1000 { |
| 162 | interrupts = <0x2 0x10 0x0>, |
| 163 | <0x2 0x10 0x1>, |
| 164 | <0x2 0x10 0x2>, |
| 165 | <0x2 0x10 0x3>, |
| 166 | <0x2 0x10 0x4>, |
| 167 | <0x2 0x10 0x5>, |
| 168 | <0x2 0x10 0x6>, |
| 169 | <0x2 0x10 0x7>; |
| 170 | interrupt-names = "vbat-det-lo", |
| 171 | "vbat-det-hi", |
| 172 | "chgwdog", |
| 173 | "state-change", |
| 174 | "trkl-chg-on", |
| 175 | "fast-chg-on", |
| 176 | "chg-failed", |
| 177 | "chg-done"; |
| 178 | }; |
| 179 | |
| 180 | qcom,buck@1100 { |
| 181 | interrupts = <0x2 0x11 0x0>, |
| 182 | <0x2 0x11 0x1>, |
| 183 | <0x2 0x11 0x2>, |
| 184 | <0x2 0x11 0x3>, |
| 185 | <0x2 0x11 0x4>, |
| 186 | <0x2 0x11 0x5>, |
| 187 | <0x2 0x11 0x6>; |
| 188 | interrupt-names = "vbat-ov", |
| 189 | "vreg-ov", |
| 190 | "overtemp", |
| 191 | "vchg-loop", |
| 192 | "ichg-loop", |
| 193 | "ibat-loop", |
| 194 | "vdd-loop"; |
| 195 | }; |
| 196 | |
| 197 | qcom,bat-if@1200 { |
| 198 | interrupts = <0x2 0x12 0x0>, |
| 199 | <0x2 0x12 0x1>, |
| 200 | <0x2 0x12 0x2>, |
| 201 | <0x2 0x12 0x3>, |
| 202 | <0x2 0x12 0x4>; |
| 203 | interrupt-names = "batt-pres", |
| 204 | "bat-temp-ok", |
| 205 | "bat-fet-on", |
| 206 | "vcp-on", |
| 207 | "psi"; |
| 208 | }; |
| 209 | |
| 210 | qcom,usb-chgpth@1300 { |
| 211 | interrupts = <0x2 0x13 0x0>, |
| 212 | <0x2 0x13 0x1>, |
| 213 | <0x2 0x13 0x2>; |
| 214 | interrupt-names = "coarse-det-usb", |
| 215 | "usbin-valid", |
| 216 | "chg-gone"; |
| 217 | }; |
| 218 | |
| 219 | qcom,dc-chgpth@1400 { |
| 220 | interrupts = <0x2 0x14 0x0>, |
| 221 | <0x2 0x14 0x1>; |
| 222 | interrupt-names = "coarse-det-dc", |
| 223 | "dcin-valid"; |
| 224 | }; |
| 225 | |
| 226 | qcom,boost@1500 { |
| 227 | interrupts = <0x2 0x15 0x0>, |
| 228 | <0x2 0x15 0x1>; |
| 229 | interrupt-names = "boost-pwr-ok", |
| 230 | "limit-error"; |
| 231 | }; |
| 232 | }; |
| 233 | |
| 234 | qcom,pm8941_rtc { |
| 235 | qcom,pm8941_rtc_alarm@6100 { |
| 236 | interrupts = <0x2 0x61 0x1>; |
| 237 | }; |
| 238 | }; |
| 239 | |
| 240 | vadc@3100 { |
| 241 | interrupts = <0x2 0x31 0x0>; |
| 242 | interrupt-names = "eoc-int-en-set"; |
| 243 | }; |
| 244 | |
| 245 | iadc@3600 { |
| 246 | interrupts = <0x2 0x36 0x0>; |
| 247 | interrupt-names = "eoc-int-en-set"; |
| 248 | }; |
| 249 | |
| 250 | qcom,vadc@3400 { |
| 251 | interrupts = <0x2 0x34 0x0>, |
| 252 | <0x2 0x34 0x3>, |
| 253 | <0x2 0x34 0x4>; |
| 254 | interrupt-names = "eoc-int-en-set", |
| 255 | "high-thr-en-set", |
| 256 | "low-thr-en-set"; |
| 257 | }; |
| 258 | }; |