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>; |
Vijayavardhan Vennapusa | b1881bd | 2014-04-15 15:17:27 +0530 | [diff] [blame] | 106 | qcom,utmi-clk-rate = <24000000>; |
David Collins | 2392688 | 2013-10-10 16:00:22 -0700 | [diff] [blame] | 107 | interrupt-map-mask = <0x0 0xffffffff>; |
| 108 | interrupt-map = <0x0 0 &intc 0 133 0 |
| 109 | 0x0 1 &spmi_bus 0x0 0x2 0x9 0x0>; |
| 110 | interrupt-names = "hs_phy_irq", "pmic_id_irq"; |
Vijayavardhan Vennapusa | d7f13c4 | 2013-09-27 15:19:39 +0530 | [diff] [blame] | 111 | qcom,dwc-ssphy-deemphasis-value = <26>; |
David Collins | 2392688 | 2013-10-10 16:00:22 -0700 | [diff] [blame] | 112 | }; |
| 113 | |
| 114 | /* Correct PM8941 local slave ID 0 to use global SID 4 for all interrupts. */ |
| 115 | &pm8941_lsid0 { |
| 116 | qcom,temp-alarm@2400 { |
| 117 | interrupts = <0x2 0x24 0x0>; |
| 118 | }; |
| 119 | |
| 120 | qcom,power-on@800 { |
| 121 | interrupts = <0x2 0x8 0x0>, |
| 122 | <0x2 0x8 0x1>, |
| 123 | <0x2 0x8 0x4>, |
| 124 | <0x2 0x8 0x5>; |
| 125 | interrupt-names = "kpdpwr", "resin", |
| 126 | "resin-bark", "kpdpwr-resin-bark"; |
| 127 | }; |
| 128 | |
| 129 | qcom,bsi@1b00 { |
| 130 | interrupts = <0x2 0x1b 0x0>, |
| 131 | <0x2 0x1b 0x1>, |
| 132 | <0x2 0x1b 0x2>, |
| 133 | <0x2 0x12 0x0>; |
| 134 | interrupt-names = "err", |
| 135 | "rx", |
| 136 | "tx", |
| 137 | "batt-present"; |
| 138 | }; |
| 139 | |
| 140 | qcom,bms { |
| 141 | qcom,bms-bms@4000 { |
| 142 | interrupts = <0x2 0x40 0x0>, |
| 143 | <0x2 0x40 0x1>, |
| 144 | <0x2 0x40 0x2>, |
| 145 | <0x2 0x40 0x3>, |
| 146 | <0x2 0x40 0x4>, |
| 147 | <0x2 0x40 0x5>, |
| 148 | <0x2 0x40 0x6>, |
| 149 | <0x2 0x40 0x7>; |
| 150 | interrupt-names = "cc_thr", |
| 151 | "ocv_for_r", |
| 152 | "good_ocv", |
| 153 | "charge_begin", |
| 154 | "ocv_thr", |
| 155 | "sw_cc_thr", |
| 156 | "vsense_avg", |
| 157 | "vsense_for_r"; |
| 158 | }; |
| 159 | }; |
| 160 | |
| 161 | qcom,charger { |
| 162 | qcom,chgr@1000 { |
| 163 | interrupts = <0x2 0x10 0x0>, |
| 164 | <0x2 0x10 0x1>, |
| 165 | <0x2 0x10 0x2>, |
| 166 | <0x2 0x10 0x3>, |
| 167 | <0x2 0x10 0x4>, |
| 168 | <0x2 0x10 0x5>, |
| 169 | <0x2 0x10 0x6>, |
| 170 | <0x2 0x10 0x7>; |
| 171 | interrupt-names = "vbat-det-lo", |
| 172 | "vbat-det-hi", |
| 173 | "chgwdog", |
| 174 | "state-change", |
| 175 | "trkl-chg-on", |
| 176 | "fast-chg-on", |
| 177 | "chg-failed", |
| 178 | "chg-done"; |
| 179 | }; |
| 180 | |
| 181 | qcom,buck@1100 { |
| 182 | interrupts = <0x2 0x11 0x0>, |
| 183 | <0x2 0x11 0x1>, |
| 184 | <0x2 0x11 0x2>, |
| 185 | <0x2 0x11 0x3>, |
| 186 | <0x2 0x11 0x4>, |
| 187 | <0x2 0x11 0x5>, |
| 188 | <0x2 0x11 0x6>; |
| 189 | interrupt-names = "vbat-ov", |
| 190 | "vreg-ov", |
| 191 | "overtemp", |
| 192 | "vchg-loop", |
| 193 | "ichg-loop", |
| 194 | "ibat-loop", |
| 195 | "vdd-loop"; |
| 196 | }; |
| 197 | |
| 198 | qcom,bat-if@1200 { |
| 199 | interrupts = <0x2 0x12 0x0>, |
| 200 | <0x2 0x12 0x1>, |
| 201 | <0x2 0x12 0x2>, |
| 202 | <0x2 0x12 0x3>, |
| 203 | <0x2 0x12 0x4>; |
| 204 | interrupt-names = "batt-pres", |
| 205 | "bat-temp-ok", |
| 206 | "bat-fet-on", |
| 207 | "vcp-on", |
| 208 | "psi"; |
| 209 | }; |
| 210 | |
| 211 | qcom,usb-chgpth@1300 { |
| 212 | interrupts = <0x2 0x13 0x0>, |
| 213 | <0x2 0x13 0x1>, |
| 214 | <0x2 0x13 0x2>; |
| 215 | interrupt-names = "coarse-det-usb", |
| 216 | "usbin-valid", |
| 217 | "chg-gone"; |
| 218 | }; |
| 219 | |
| 220 | qcom,dc-chgpth@1400 { |
| 221 | interrupts = <0x2 0x14 0x0>, |
| 222 | <0x2 0x14 0x1>; |
| 223 | interrupt-names = "coarse-det-dc", |
| 224 | "dcin-valid"; |
| 225 | }; |
| 226 | |
| 227 | qcom,boost@1500 { |
| 228 | interrupts = <0x2 0x15 0x0>, |
| 229 | <0x2 0x15 0x1>; |
| 230 | interrupt-names = "boost-pwr-ok", |
| 231 | "limit-error"; |
| 232 | }; |
| 233 | }; |
| 234 | |
| 235 | qcom,pm8941_rtc { |
| 236 | qcom,pm8941_rtc_alarm@6100 { |
| 237 | interrupts = <0x2 0x61 0x1>; |
| 238 | }; |
| 239 | }; |
| 240 | |
| 241 | vadc@3100 { |
| 242 | interrupts = <0x2 0x31 0x0>; |
| 243 | interrupt-names = "eoc-int-en-set"; |
Dipen Parmar | 4c91bec | 2014-04-04 13:08:33 +0530 | [diff] [blame] | 244 | /delete-node/ chan@b3; |
| 245 | /delete-node/ chan@b4; |
| 246 | /delete-node/ chan@b5; |
| 247 | /delete-node/ chan@b7; |
| 248 | /delete-node/ chan@b8; |
David Collins | 2392688 | 2013-10-10 16:00:22 -0700 | [diff] [blame] | 249 | }; |
| 250 | |
| 251 | iadc@3600 { |
| 252 | interrupts = <0x2 0x36 0x0>; |
| 253 | interrupt-names = "eoc-int-en-set"; |
| 254 | }; |
| 255 | |
| 256 | qcom,vadc@3400 { |
| 257 | interrupts = <0x2 0x34 0x0>, |
| 258 | <0x2 0x34 0x3>, |
| 259 | <0x2 0x34 0x4>; |
| 260 | interrupt-names = "eoc-int-en-set", |
| 261 | "high-thr-en-set", |
| 262 | "low-thr-en-set"; |
Dipen Parmar | 4c91bec | 2014-04-04 13:08:33 +0530 | [diff] [blame] | 263 | /delete-node/ chan@b3; |
| 264 | /delete-node/ chan@b4; |
| 265 | /delete-node/ chan@b5; |
| 266 | /delete-node/ chan@b7; |
David Collins | 2392688 | 2013-10-10 16:00:22 -0700 | [diff] [blame] | 267 | }; |
| 268 | }; |