|
189 | 189 | vdd_hf_dig-supply = <&pm8916_s1_level_ao>;
|
190 | 190 | vdd_hf_pll-supply = <&pm8916_l7_ao>;
|
191 | 191 | };
|
| 192 | + |
| 193 | +&pm8916_vadc { |
| 194 | + chan@0 { |
| 195 | + label = "usb_in"; |
| 196 | + reg = <0>; |
| 197 | + qcom,decimation = <0>; |
| 198 | + qcom,pre-div-channel-scaling = <7>; |
| 199 | + qcom,calibration-type = "absolute"; |
| 200 | + qcom,scale-function = <0>; |
| 201 | + qcom,hw-settle-time = <0>; |
| 202 | + qcom,fast-avg-setup = <0>; |
| 203 | + }; |
| 204 | + |
| 205 | + chan@2 { |
| 206 | + label = "ireg_fb"; |
| 207 | + reg = <2>; |
| 208 | + qcom,decimation = <0>; |
| 209 | + qcom,pre-div-channel-scaling = <6>; |
| 210 | + qcom,calibration-type = "absolute"; |
| 211 | + qcom,scale-function = <0>; |
| 212 | + qcom,hw-settle-time = <0>; |
| 213 | + qcom,fast-avg-setup = <0>; |
| 214 | + }; |
| 215 | + |
| 216 | + chan@5 { |
| 217 | + label = "vcoin"; |
| 218 | + reg = <5>; |
| 219 | + qcom,decimation = <0>; |
| 220 | + qcom,pre-div-channel-scaling = <1>; |
| 221 | + qcom,calibration-type = "absolute"; |
| 222 | + qcom,scale-function = <0>; |
| 223 | + qcom,hw-settle-time = <0>; |
| 224 | + qcom,fast-avg-setup = <0>; |
| 225 | + }; |
| 226 | + |
| 227 | + chan@6 { |
| 228 | + label = "vbat_sns"; |
| 229 | + reg = <6>; |
| 230 | + qcom,decimation = <0>; |
| 231 | + qcom,pre-div-channel-scaling = <1>; |
| 232 | + qcom,calibration-type = "absolute"; |
| 233 | + qcom,scale-function = <0>; |
| 234 | + qcom,hw-settle-time = <0>; |
| 235 | + qcom,fast-avg-setup = <0>; |
| 236 | + }; |
| 237 | + |
| 238 | + chan@7 { |
| 239 | + label = "vph_pwr"; |
| 240 | + reg = <7>; |
| 241 | + qcom,decimation = <0>; |
| 242 | + qcom,pre-div-channel-scaling = <1>; |
| 243 | + qcom,calibration-type = "absolute"; |
| 244 | + qcom,scale-function = <0>; |
| 245 | + qcom,hw-settle-time = <0>; |
| 246 | + qcom,fast-avg-setup = <0>; |
| 247 | + }; |
| 248 | + |
| 249 | + chan@b { |
| 250 | + label = "chg_temp"; |
| 251 | + reg = <0xb>; |
| 252 | + qcom,decimation = <0>; |
| 253 | + qcom,pre-div-channel-scaling = <0>; |
| 254 | + qcom,calibration-type = "absolute"; |
| 255 | + qcom,scale-function = <3>; |
| 256 | + qcom,hw-settle-time = <0>; |
| 257 | + qcom,fast-avg-setup = <0>; |
| 258 | + }; |
| 259 | + |
| 260 | + chan@11 { |
| 261 | + label = "skin_therm"; |
| 262 | + reg = <0x11>; |
| 263 | + qcom,decimation = <0>; |
| 264 | + qcom,pre-div-channel-scaling = <0>; |
| 265 | + qcom,calibration-type = "ratiometric"; |
| 266 | + qcom,scale-function = <2>; |
| 267 | + qcom,hw-settle-time = <2>; |
| 268 | + qcom,fast-avg-setup = <0>; |
| 269 | + qcom,vadc-thermal-node; |
| 270 | + }; |
| 271 | + |
| 272 | + chan@30 { |
| 273 | + label = "batt_therm"; |
| 274 | + reg = <0x30>; |
| 275 | + qcom,decimation = <0>; |
| 276 | + qcom,pre-div-channel-scaling = <0>; |
| 277 | + qcom,calibration-type = "ratiometric"; |
| 278 | + qcom,scale-function = <22>; |
| 279 | + qcom,hw-settle-time = <0xb>; |
| 280 | + qcom,fast-avg-setup = <0>; |
| 281 | + }; |
| 282 | + |
| 283 | + chan@31 { |
| 284 | + label = "batt_id"; |
| 285 | + reg = <0x31>; |
| 286 | + qcom,decimation = <0>; |
| 287 | + qcom,pre-div-channel-scaling = <0>; |
| 288 | + qcom,calibration-type = "ratiometric"; |
| 289 | + qcom,scale-function = <0>; |
| 290 | + qcom,hw-settle-time = <0xb>; |
| 291 | + qcom,fast-avg-setup = <0>; |
| 292 | + }; |
| 293 | + |
| 294 | + chan@36 { |
| 295 | + label = "pa_therm0"; |
| 296 | + reg = <0x36>; |
| 297 | + qcom,decimation = <0>; |
| 298 | + qcom,pre-div-channel-scaling = <0>; |
| 299 | + qcom,calibration-type = "ratiometric"; |
| 300 | + qcom,scale-function = <2>; |
| 301 | + qcom,hw-settle-time = <2>; |
| 302 | + qcom,fast-avg-setup = <0>; |
| 303 | + qcom,vadc-thermal-node; |
| 304 | + }; |
| 305 | + |
| 306 | + chan@32 { |
| 307 | + label = "xo_therm"; |
| 308 | + reg = <0x32>; |
| 309 | + qcom,decimation = <0>; |
| 310 | + qcom,pre-div-channel-scaling = <0>; |
| 311 | + qcom,calibration-type = "ratiometric"; |
| 312 | + qcom,scale-function = <4>; |
| 313 | + qcom,hw-settle-time = <2>; |
| 314 | + qcom,fast-avg-setup = <0>; |
| 315 | + qcom,vadc-thermal-node; |
| 316 | + }; |
| 317 | + |
| 318 | + chan@3c { |
| 319 | + label = "xo_therm_buf"; |
| 320 | + reg = <0x3c>; |
| 321 | + qcom,decimation = <0>; |
| 322 | + qcom,pre-div-channel-scaling = <0>; |
| 323 | + qcom,calibration-type = "ratiometric"; |
| 324 | + qcom,scale-function = <4>; |
| 325 | + qcom,hw-settle-time = <2>; |
| 326 | + qcom,fast-avg-setup = <0>; |
| 327 | + qcom,vadc-thermal-node; |
| 328 | + }; |
| 329 | +}; |
| 330 | + |
| 331 | +&pm8916_adc_tm { |
| 332 | + /* Channel Node */ |
| 333 | + chan@30 { |
| 334 | + label = "batt_therm"; |
| 335 | + reg = <0x30>; |
| 336 | + qcom,decimation = <0>; |
| 337 | + qcom,pre-div-channel-scaling = <0>; |
| 338 | + qcom,calibration-type = "ratiometric"; |
| 339 | + qcom,scale-function = <8>; |
| 340 | + qcom,hw-settle-time = <0xb>; |
| 341 | + qcom,fast-avg-setup = <0x2>; |
| 342 | + qcom,btm-channel-number = <0x48>; |
| 343 | + }; |
| 344 | + |
| 345 | + chan@6 { |
| 346 | + label = "vbat_sns"; |
| 347 | + reg = <0x6>; |
| 348 | + qcom,decimation = <0>; |
| 349 | + qcom,pre-div-channel-scaling = <1>; |
| 350 | + qcom,calibration-type = "absolute"; |
| 351 | + qcom,scale-function = <0>; |
| 352 | + qcom,hw-settle-time = <0xb>; |
| 353 | + qcom,fast-avg-setup = <0x2>; |
| 354 | + qcom,btm-channel-number = <0x68>; |
| 355 | + }; |
| 356 | +}; |
| 357 | + |
| 358 | +&soc { |
| 359 | + thermal-zones { |
| 360 | + xo-therm-buf-adc { |
| 361 | + polling-delay-passive = <0>; |
| 362 | + polling-delay = <0>; |
| 363 | + thermal-sensors = <&pm8916_vadc 0x3c>; |
| 364 | + thermal-governor = "user_space"; |
| 365 | + |
| 366 | + trips { |
| 367 | + active-config0 { |
| 368 | + temperature = <65000>; |
| 369 | + hysteresis = <1000>; |
| 370 | + type = "passive"; |
| 371 | + }; |
| 372 | + }; |
| 373 | + }; |
| 374 | + |
| 375 | + xo-therm-adc { |
| 376 | + polling-delay-passive = <0>; |
| 377 | + polling-delay = <0>; |
| 378 | + thermal-sensors = <&pm8916_vadc 0x32>; |
| 379 | + thermal-governor = "user_space"; |
| 380 | + |
| 381 | + trips { |
| 382 | + active-config0 { |
| 383 | + temperature = <65000>; |
| 384 | + hysteresis = <1000>; |
| 385 | + type = "passive"; |
| 386 | + }; |
| 387 | + }; |
| 388 | + }; |
| 389 | + |
| 390 | + pa-therm0-adc { |
| 391 | + polling-delay-passive = <0>; |
| 392 | + polling-delay = <0>; |
| 393 | + thermal-sensors = <&pm8916_vadc 0x36>; |
| 394 | + thermal-governor = "user_space"; |
| 395 | + |
| 396 | + trips { |
| 397 | + active-config0 { |
| 398 | + temperature = <65000>; |
| 399 | + hysteresis = <1000>; |
| 400 | + type = "passive"; |
| 401 | + }; |
| 402 | + }; |
| 403 | + }; |
| 404 | + |
| 405 | + skin-therm-adc { |
| 406 | + polling-delay-passive = <0>; |
| 407 | + polling-delay = <0>; |
| 408 | + thermal-sensors = <&pm8916_vadc 0x11>; |
| 409 | + thermal-governor = "user_space"; |
| 410 | + |
| 411 | + trips { |
| 412 | + active-config0 { |
| 413 | + temperature = <65000>; |
| 414 | + hysteresis = <1000>; |
| 415 | + type = "passive"; |
| 416 | + }; |
| 417 | + }; |
| 418 | + }; |
| 419 | + }; |
| 420 | +}; |
0 commit comments