Tirupathi Reddy | 4a9ce7e | 2017-12-15 16:54:38 +0530 | [diff] [blame] | 1 | /* |
Tirupathi Reddy | c971c3d | 2017-12-18 11:48:11 +0530 | [diff] [blame^] | 2 | * Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. |
Tirupathi Reddy | 4a9ce7e | 2017-12-15 16:54:38 +0530 | [diff] [blame] | 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 | &spmi_bus { |
| 15 | |
| 16 | qcom,pm8937@0 { |
Tirupathi Reddy | c971c3d | 2017-12-18 11:48:11 +0530 | [diff] [blame^] | 17 | compatible ="qcom,spmi-pmic"; |
| 18 | reg = <0x0 SPMI_USID>; |
Tirupathi Reddy | 4a9ce7e | 2017-12-15 16:54:38 +0530 | [diff] [blame] | 19 | #address-cells = <1>; |
| 20 | #size-cells = <1>; |
| 21 | |
| 22 | pm8937_revid: qcom,revid@100 { |
| 23 | compatible = "qcom,qpnp-revid"; |
| 24 | reg = <0x100 0x100>; |
| 25 | }; |
| 26 | |
| 27 | qcom,power-on@800 { |
| 28 | compatible = "qcom,qpnp-power-on"; |
| 29 | reg = <0x800 0x100>; |
Tirupathi Reddy | c971c3d | 2017-12-18 11:48:11 +0530 | [diff] [blame^] | 30 | interrupts = <0x0 0x8 0x0 IRQ_TYPE_NONE>, |
| 31 | <0x0 0x8 0x1 IRQ_TYPE_NONE>, |
| 32 | <0x0 0x8 0x4 IRQ_TYPE_NONE>, |
| 33 | <0x0 0x8 0x5 IRQ_TYPE_NONE>; |
Tirupathi Reddy | 4a9ce7e | 2017-12-15 16:54:38 +0530 | [diff] [blame] | 34 | interrupt-names = "kpdpwr", "resin", |
| 35 | "resin-bark", "kpdpwr-resin-bark"; |
| 36 | qcom,pon-dbc-delay = <15625>; |
| 37 | qcom,system-reset; |
| 38 | |
| 39 | qcom,pon_1 { |
| 40 | qcom,pon-type = <0>; |
| 41 | qcom,pull-up = <1>; |
| 42 | linux,code = <116>; |
| 43 | }; |
| 44 | |
| 45 | qcom,pon_2 { |
| 46 | qcom,pon-type = <1>; |
| 47 | qcom,pull-up = <1>; |
| 48 | linux,code = <114>; |
| 49 | }; |
| 50 | }; |
| 51 | |
| 52 | pm8937_temp_alarm: qcom,temp-alarm@2400 { |
| 53 | compatible = "qcom,qpnp-temp-alarm"; |
| 54 | reg = <0x2400 0x100>; |
Tirupathi Reddy | c971c3d | 2017-12-18 11:48:11 +0530 | [diff] [blame^] | 55 | interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>; |
Tirupathi Reddy | 4a9ce7e | 2017-12-15 16:54:38 +0530 | [diff] [blame] | 56 | label = "pm8937_tz"; |
| 57 | qcom,channel-num = <8>; |
| 58 | qcom,threshold-set = <0>; |
| 59 | qcom,temp_alarm-vadc = <&pm8937_vadc>; |
| 60 | }; |
| 61 | |
| 62 | pm8937_coincell: qcom,coincell@2800 { |
| 63 | compatible = "qcom,qpnp-coincell"; |
| 64 | reg = <0x2800 0x100>; |
| 65 | }; |
| 66 | |
| 67 | pm8937_rtc: qcom,pm8937_rtc { |
Tirupathi Reddy | 4a9ce7e | 2017-12-15 16:54:38 +0530 | [diff] [blame] | 68 | compatible = "qcom,qpnp-rtc"; |
| 69 | #address-cells = <1>; |
| 70 | #size-cells = <1>; |
| 71 | qcom,qpnp-rtc-write = <0>; |
| 72 | qcom,qpnp-rtc-alarm-pwrup = <0>; |
| 73 | |
| 74 | qcom,pm8937_rtc_rw@6000 { |
| 75 | reg = <0x6000 0x100>; |
| 76 | }; |
| 77 | |
| 78 | qcom,pm8937_rtc_alarm@6100 { |
| 79 | reg = <0x6100 0x100>; |
Tirupathi Reddy | c971c3d | 2017-12-18 11:48:11 +0530 | [diff] [blame^] | 80 | interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; |
Tirupathi Reddy | 4a9ce7e | 2017-12-15 16:54:38 +0530 | [diff] [blame] | 81 | }; |
| 82 | }; |
| 83 | |
| 84 | pm8937_mpps: mpps { |
Tirupathi Reddy | c971c3d | 2017-12-18 11:48:11 +0530 | [diff] [blame^] | 85 | compatible = "qcom,spmi-mpp"; |
| 86 | reg = <0xa000 0x400>; |
| 87 | interrupts = <0x0 0xa0 0 IRQ_TYPE_NONE>, |
| 88 | <0x0 0xa1 0 IRQ_TYPE_NONE>, |
| 89 | <0x0 0xa2 0 IRQ_TYPE_NONE>, |
| 90 | <0x0 0xa3 0 IRQ_TYPE_NONE>; |
| 91 | interrupt-names = "pm8937_mpp1", "pm8937_mpp2", |
| 92 | "pm8937_mpp3", "pm8937_mpp4"; |
Tirupathi Reddy | 4a9ce7e | 2017-12-15 16:54:38 +0530 | [diff] [blame] | 93 | gpio-controller; |
| 94 | #gpio-cells = <2>; |
Tirupathi Reddy | 4a9ce7e | 2017-12-15 16:54:38 +0530 | [diff] [blame] | 95 | }; |
| 96 | |
| 97 | pm8937_gpios: gpios { |
Tirupathi Reddy | c971c3d | 2017-12-18 11:48:11 +0530 | [diff] [blame^] | 98 | compatible = "qcom,spmi-gpio"; |
| 99 | reg = <0xc000 0x800>; |
| 100 | interrupts = <0x0 0xc0 0 IRQ_TYPE_NONE>, |
| 101 | <0x0 0xc1 0 IRQ_TYPE_NONE>, |
| 102 | <0x0 0xc4 0 IRQ_TYPE_NONE>, |
| 103 | <0x0 0xc6 0 IRQ_TYPE_NONE>, |
| 104 | <0x0 0xc7 0 IRQ_TYPE_NONE>; |
| 105 | interrupt-names = "pm8937_gpio1", "pm8937_gpio2", |
| 106 | "pm8937_gpio5", "pmi8937_gpio7", |
| 107 | "pm8937_gpio8"; |
Tirupathi Reddy | 4a9ce7e | 2017-12-15 16:54:38 +0530 | [diff] [blame] | 108 | gpio-controller; |
| 109 | #gpio-cells = <2>; |
Tirupathi Reddy | c971c3d | 2017-12-18 11:48:11 +0530 | [diff] [blame^] | 110 | qcom,gpios-disallowed = <3 4 6>; |
Tirupathi Reddy | 4a9ce7e | 2017-12-15 16:54:38 +0530 | [diff] [blame] | 111 | }; |
| 112 | |
| 113 | pm8937_vadc: vadc@3100 { |
| 114 | compatible = "qcom,qpnp-vadc"; |
| 115 | reg = <0x3100 0x100>; |
| 116 | #address-cells = <1>; |
| 117 | #size-cells = <0>; |
Tirupathi Reddy | c971c3d | 2017-12-18 11:48:11 +0530 | [diff] [blame^] | 118 | interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; |
Tirupathi Reddy | 4a9ce7e | 2017-12-15 16:54:38 +0530 | [diff] [blame] | 119 | interrupt-names = "eoc-int-en-set"; |
| 120 | qcom,adc-bit-resolution = <15>; |
| 121 | qcom,adc-vdd-reference = <1800>; |
| 122 | qcom,vadc-poll-eoc; |
| 123 | |
| 124 | chan@5 { |
| 125 | label = "vcoin"; |
| 126 | reg = <5>; |
| 127 | qcom,decimation = <0>; |
| 128 | qcom,pre-div-channel-scaling = <1>; |
| 129 | qcom,calibration-type = "absolute"; |
| 130 | qcom,scale-function = <0>; |
| 131 | qcom,hw-settle-time = <0>; |
| 132 | qcom,fast-avg-setup = <0>; |
| 133 | }; |
| 134 | |
| 135 | chan@7 { |
| 136 | label = "vph_pwr"; |
| 137 | reg = <7>; |
| 138 | qcom,decimation = <0>; |
| 139 | qcom,pre-div-channel-scaling = <1>; |
| 140 | qcom,calibration-type = "absolute"; |
| 141 | qcom,scale-function = <0>; |
| 142 | qcom,hw-settle-time = <0>; |
| 143 | qcom,fast-avg-setup = <0>; |
| 144 | }; |
| 145 | |
| 146 | chan@8 { |
| 147 | label = "die_temp"; |
| 148 | reg = <8>; |
| 149 | qcom,decimation = <0>; |
| 150 | qcom,pre-div-channel-scaling = <0>; |
| 151 | qcom,calibration-type = "absolute"; |
| 152 | qcom,scale-function = <3>; |
| 153 | qcom,hw-settle-time = <0>; |
| 154 | qcom,fast-avg-setup = <0>; |
| 155 | }; |
| 156 | |
| 157 | chan@9 { |
| 158 | label = "ref_625mv"; |
| 159 | reg = <9>; |
| 160 | qcom,decimation = <0>; |
| 161 | qcom,pre-div-channel-scaling = <0>; |
| 162 | qcom,calibration-type = "absolute"; |
| 163 | qcom,scale-function = <0>; |
| 164 | qcom,hw-settle-time = <0>; |
| 165 | qcom,fast-avg-setup = <0>; |
| 166 | }; |
| 167 | |
| 168 | chan@a { |
| 169 | label = "ref_1250v"; |
| 170 | reg = <0xa>; |
| 171 | qcom,decimation = <0>; |
| 172 | qcom,pre-div-channel-scaling = <0>; |
| 173 | qcom,calibration-type = "absolute"; |
| 174 | qcom,scale-function = <0>; |
| 175 | qcom,hw-settle-time = <0>; |
| 176 | qcom,fast-avg-setup = <0>; |
| 177 | }; |
| 178 | |
| 179 | chan@c { |
| 180 | label = "ref_buf_625mv"; |
| 181 | reg = <0xc>; |
| 182 | qcom,decimation = <0>; |
| 183 | qcom,pre-div-channel-scaling = <0>; |
| 184 | qcom,calibration-type = "absolute"; |
| 185 | qcom,scale-function = <0>; |
| 186 | qcom,hw-settle-time = <0>; |
| 187 | qcom,fast-avg-setup = <0>; |
| 188 | }; |
| 189 | |
| 190 | chan@36 { |
| 191 | label = "pa_therm0"; |
| 192 | reg = <0x36>; |
| 193 | qcom,decimation = <0>; |
| 194 | qcom,pre-div-channel-scaling = <0>; |
| 195 | qcom,calibration-type = "ratiometric"; |
| 196 | qcom,scale-function = <2>; |
| 197 | qcom,hw-settle-time = <2>; |
| 198 | qcom,fast-avg-setup = <0>; |
| 199 | }; |
| 200 | |
| 201 | chan@11 { |
| 202 | label = "pa_therm1"; |
| 203 | reg = <0x11>; |
| 204 | qcom,decimation = <0>; |
| 205 | qcom,pre-div-channel-scaling = <0>; |
| 206 | qcom,calibration-type = "ratiometric"; |
| 207 | qcom,scale-function = <2>; |
| 208 | qcom,hw-settle-time = <2>; |
| 209 | qcom,fast-avg-setup = <0>; |
| 210 | qcom,vadc-thermal-node; |
| 211 | }; |
| 212 | |
| 213 | chan@32 { |
| 214 | label = "xo_therm"; |
| 215 | reg = <0x32>; |
| 216 | qcom,decimation = <0>; |
| 217 | qcom,pre-div-channel-scaling = <0>; |
| 218 | qcom,calibration-type = "ratiometric"; |
| 219 | qcom,scale-function = <4>; |
| 220 | qcom,hw-settle-time = <2>; |
| 221 | qcom,fast-avg-setup = <0>; |
| 222 | qcom,vadc-thermal-node; |
| 223 | }; |
| 224 | |
| 225 | chan@3c { |
| 226 | label = "xo_therm_buf"; |
| 227 | reg = <0x3c>; |
| 228 | qcom,decimation = <0>; |
| 229 | qcom,pre-div-channel-scaling = <0>; |
| 230 | qcom,calibration-type = "ratiometric"; |
| 231 | qcom,scale-function = <4>; |
| 232 | qcom,hw-settle-time = <2>; |
| 233 | qcom,fast-avg-setup = <0>; |
| 234 | qcom,vadc-thermal-node; |
| 235 | }; |
| 236 | |
| 237 | chan@13 { |
| 238 | label = "case_therm"; |
| 239 | reg = <0x13>; |
| 240 | qcom,decimation = <0>; |
| 241 | qcom,pre-div-channel-scaling = <0>; |
| 242 | qcom,calibration-type = "ratiometric"; |
| 243 | qcom,scale-function = <2>; |
| 244 | qcom,hw-settle-time = <2>; |
| 245 | qcom,fast-avg-setup = <0>; |
| 246 | qcom,vadc-thermal-node; |
| 247 | }; |
| 248 | }; |
| 249 | |
| 250 | pm8937_adc_tm: vadc@3400 { |
| 251 | compatible = "qcom,qpnp-adc-tm"; |
| 252 | reg = <0x3400 0x100>; |
| 253 | #address-cells = <1>; |
| 254 | #size-cells = <0>; |
Tirupathi Reddy | c971c3d | 2017-12-18 11:48:11 +0530 | [diff] [blame^] | 255 | interrupts = <0x0 0x34 0x0 IRQ_TYPE_EDGE_RISING>, |
| 256 | <0x0 0x34 0x3 IRQ_TYPE_EDGE_RISING>, |
| 257 | <0x0 0x34 0x4 IRQ_TYPE_EDGE_RISING>; |
Tirupathi Reddy | 4a9ce7e | 2017-12-15 16:54:38 +0530 | [diff] [blame] | 258 | interrupt-names = "eoc-int-en-set", |
| 259 | "high-thr-en-set", |
| 260 | "low-thr-en-set"; |
| 261 | qcom,adc-bit-resolution = <15>; |
| 262 | qcom,adc-vdd-reference = <1800>; |
| 263 | qcom,adc_tm-vadc = <&pm8937_vadc>; |
| 264 | |
| 265 | chan@36 { |
| 266 | label = "pa_therm0"; |
| 267 | reg = <0x36>; |
| 268 | qcom,decimation = <0>; |
| 269 | qcom,pre-div-channel-scaling = <0>; |
| 270 | qcom,calibration-type = "ratiometric"; |
| 271 | qcom,scale-function = <2>; |
| 272 | qcom,hw-settle-time = <2>; |
| 273 | qcom,fast-avg-setup = <0>; |
| 274 | qcom,btm-channel-number = <0x48>; |
| 275 | qcom,thermal-node; |
| 276 | }; |
| 277 | |
| 278 | chan@7 { |
| 279 | label = "vph_pwr"; |
| 280 | reg = <0x7>; |
| 281 | qcom,decimation = <0>; |
| 282 | qcom,pre-div-channel-scaling = <1>; |
| 283 | qcom,calibration-type = "absolute"; |
| 284 | qcom,scale-function = <0>; |
| 285 | qcom,hw-settle-time = <0>; |
| 286 | qcom,fast-avg-setup = <0>; |
| 287 | qcom,btm-channel-number = <0x68>; |
| 288 | }; |
| 289 | }; |
| 290 | |
| 291 | }; |
| 292 | |
| 293 | pm8937_1: qcom,pm8937@1 { |
Tirupathi Reddy | c971c3d | 2017-12-18 11:48:11 +0530 | [diff] [blame^] | 294 | compatible = "qcom,spmi-pmic"; |
| 295 | reg = <0x1 SPMI_USID>; |
Tirupathi Reddy | 4a9ce7e | 2017-12-15 16:54:38 +0530 | [diff] [blame] | 296 | #address-cells = <1>; |
| 297 | #size-cells = <1>; |
| 298 | |
| 299 | pm8937_pwm: pwm@bc00 { |
| 300 | status = "disabled"; |
| 301 | compatible = "qcom,qpnp-pwm"; |
| 302 | reg = <0xbc00 0x100>; |
| 303 | reg-names = "qpnp-lpg-channel-base"; |
| 304 | qcom,channel-id = <0>; |
| 305 | qcom,supported-sizes = <6>, <9>; |
| 306 | #pwm-cells = <2>; |
| 307 | }; |
| 308 | }; |
| 309 | }; |