/* * Copyright (c) 2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ &spmi_bus { qcom,pmtitanium@0 { spmi-slave-container; reg = <0x0>; #address-cells = <1>; #size-cells = <1>; pmtitanium_mpps: mpps { compatible = "qcom,qpnp-pin"; spmi-dev-container; gpio-controller; #gpio-cells = <2>; #address-cells = <1>; #size-cells = <1>; label = "pmtitanium-mpp"; mpp@a000 { reg = <0xa000 0x100>; qcom,pin-num = <1>; status = "disabled"; }; mpp@a100 { reg = <0xa100 0x100>; qcom,pin-num = <2>; status = "disabled"; }; mpp@a200 { reg = <0xa200 0x100>; qcom,pin-num = <3>; status = "disabled"; }; mpp@a300 { reg = <0xa300 0x100>; qcom,pin-num = <4>; status = "disabled"; }; }; pmtitanium_vadc: vadc@3100 { compatible = "qcom,qpnp-vadc"; reg = <0x3100 0x100>; #address-cells = <1>; #size-cells = <0>; interrupts = <0x0 0x31 0x0>; interrupt-names = "eoc-int-en-set"; qcom,adc-bit-resolution = <15>; qcom,adc-vdd-reference = <1800>; qcom,vadc-poll-eoc; chan@8 { label = "die_temp"; reg = <8>; qcom,decimation = <0>; qcom,pre-div-channel-scaling = <0>; qcom,calibration-type = "absolute"; qcom,scale-function = <3>; qcom,hw-settle-time = <0>; qcom,fast-avg-setup = <0>; }; chan@9 { label = "ref_625mv"; reg = <9>; qcom,decimation = <0>; qcom,pre-div-channel-scaling = <0>; qcom,calibration-type = "absolute"; qcom,scale-function = <0>; qcom,hw-settle-time = <0>; qcom,fast-avg-setup = <0>; }; chan@a { label = "ref_1250v"; reg = <0xa>; qcom,decimation = <0>; qcom,pre-div-channel-scaling = <0>; qcom,calibration-type = "absolute"; qcom,scale-function = <0>; qcom,hw-settle-time = <0>; qcom,fast-avg-setup = <0>; }; chan@c { label = "ref_buf_625mv"; reg = <0xc>; qcom,decimation = <0>; qcom,pre-div-channel-scaling = <0>; qcom,calibration-type = "absolute"; qcom,scale-function = <0>; qcom,hw-settle-time = <0>; qcom,fast-avg-setup = <0>; }; }; pmtitanium_adc_tm: vadc@3400 { compatible = "qcom,qpnp-adc-tm"; reg = <0x3400 0x100>; #address-cells = <1>; #size-cells = <0>; interrupts = <0x0 0x34 0x0>, <0x0 0x34 0x3>, <0x0 0x34 0x4>; interrupt-names = "eoc-int-en-set", "high-thr-en-set", "low-thr-en-set"; qcom,adc-bit-resolution = <15>; qcom,adc-vdd-reference = <1800>; qcom,adc_tm-vadc = <&pmtitanium_vadc>; }; }; };