blob: 32735f94baa0b1935c7838c6dce2a4253750c7a7 [file] [log] [blame]
/*
* Copyright (c) 2015-2019, 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,pm8953@0 {
compatible = "qcom,spmi-pmic";
reg = <0x0 SPMI_USID>;
#address-cells = <1>;
#size-cells = <1>;
pm8953_revid: qcom,revid@100 {
compatible = "qcom,qpnp-revid";
reg = <0x100 0x100>;
};
qcom,power-on@800 {
compatible = "qcom,qpnp-power-on";
reg = <0x800 0x100>;
interrupts = <0x0 0x8 0x0 IRQ_TYPE_NONE>,
<0x0 0x8 0x1 IRQ_TYPE_NONE>,
<0x0 0x8 0x4 IRQ_TYPE_NONE>,
<0x0 0x8 0x5 IRQ_TYPE_NONE>;
interrupt-names = "kpdpwr", "resin",
"resin-bark", "kpdpwr-resin-bark";
qcom,pon-dbc-delay = <15625>;
qcom,system-reset;
qcom,store-hard-reset-reason;
qcom,pon_1 {
qcom,pon-type = <0>;
qcom,pull-up = <1>;
linux,code = <116>;
};
qcom,pon_2 {
qcom,pon-type = <1>;
qcom,pull-up = <1>;
linux,code = <114>;
};
};
pm8953_tz: qcom,temp-alarm@2400 {
compatible = "qcom,qpnp-temp-alarm";
reg = <0x2400 0x100>;
interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
label = "pm8953_tz";
qcom,channel-num = <8>;
qcom,threshold-set = <0>;
qcom,temp_alarm-vadc = <&pm8953_vadc>;
#thermal-sensor-cells = <0>;
};
pm8953_coincell: qcom,coincell@2800 {
compatible = "qcom,qpnp-coincell";
reg = <0x2800 0x100>;
};
pm8953_mpps: mpps {
compatible = "qcom,spmi-mpp";
reg = <0xa000 0x400>;
interrupts = <0x0 0xa0 0 IRQ_TYPE_NONE>,
<0x0 0xa1 0 IRQ_TYPE_NONE>,
<0x0 0xa2 0 IRQ_TYPE_NONE>,
<0x0 0xa3 0 IRQ_TYPE_NONE>;
interrupt-names = "pm8953_mpp1", "pm8953_mpp2",
"pm8953_mpp3", "pm8953_mpp4";
gpio-controller;
#gpio-cells = <2>;
case_therm {
cas_therm_default: cas_therm_default {
pins = "mpp4";
function = "analog";
input-enable;
qcom,amux-route = <3>;
};
};
pa_therm1 {
pa_therm1_default: pa_therm1_default {
pins = "mpp2";
function = "analog";
input-enable;
qcom,amux-route = <1>;
};
};
};
pm8953_gpios: gpios {
compatible = "qcom,spmi-gpio";
reg = <0xc000 0x800>;
interrupts = <0x0 0xc0 0 IRQ_TYPE_NONE>,
<0x0 0xc1 0 IRQ_TYPE_NONE>,
<0x0 0xc3 0 IRQ_TYPE_NONE>,
<0x0 0xc4 0 IRQ_TYPE_NONE>,
<0x0 0xc6 0 IRQ_TYPE_NONE>,
<0x0 0xc7 0 IRQ_TYPE_NONE>;
interrupt-names = "pm8953_gpio1", "pm8953_gpio2",
"pm8953_gpio4", "pm8953_gpio5",
"pm8953_gpio7", "pm8953_gpio8";
gpio-controller;
#gpio-cells = <2>;
qcom,gpios-disallowed = <3 6>;
};
pm8953_vadc: vadc@3100 {
compatible = "qcom,qpnp-vadc";
reg = <0x3100 0x100>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "eoc-int-en-set";
qcom,adc-bit-resolution = <15>;
qcom,adc-vdd-reference = <1800>;
qcom,vadc-poll-eoc;
#thermal-sensor-cells = <1>;
pinctrl-names = "default";
pinctrl-0 = <&pa_therm1_default &cas_therm_default>;
chan@5 {
label = "vcoin";
reg = <5>;
qcom,decimation = <0>;
qcom,pre-div-channel-scaling = <1>;
qcom,calibration-type = "absolute";
qcom,scale-function = <0>;
qcom,hw-settle-time = <0>;
qcom,fast-avg-setup = <0>;
};
chan@7 {
label = "vph_pwr";
reg = <7>;
qcom,decimation = <0>;
qcom,pre-div-channel-scaling = <1>;
qcom,calibration-type = "absolute";
qcom,scale-function = <0>;
qcom,hw-settle-time = <0>;
qcom,fast-avg-setup = <0>;
};
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>;
};
chan@36 {
label = "pa_therm0";
reg = <0x36>;
qcom,decimation = <0>;
qcom,pre-div-channel-scaling = <0>;
qcom,calibration-type = "ratiometric";
qcom,scale-function = <2>;
qcom,hw-settle-time = <2>;
qcom,fast-avg-setup = <0>;
};
chan@11 {
label = "pa_therm1";
reg = <0x11>;
qcom,decimation = <0>;
qcom,pre-div-channel-scaling = <0>;
qcom,calibration-type = "ratiometric";
qcom,scale-function = <2>;
qcom,hw-settle-time = <2>;
qcom,fast-avg-setup = <0>;
};
chan@32 {
label = "xo_therm";
reg = <0x32>;
qcom,decimation = <0>;
qcom,pre-div-channel-scaling = <0>;
qcom,calibration-type = "ratiometric";
qcom,scale-function = <4>;
qcom,hw-settle-time = <2>;
qcom,fast-avg-setup = <0>;
};
chan@3c {
label = "xo_therm_buf";
reg = <0x3c>;
qcom,decimation = <0>;
qcom,pre-div-channel-scaling = <0>;
qcom,calibration-type = "ratiometric";
qcom,scale-function = <4>;
qcom,hw-settle-time = <2>;
qcom,fast-avg-setup = <0>;
qcom,vadc-thermal-node;
};
chan@13 {
label = "case_therm";
reg = <0x13>;
qcom,decimation = <0>;
qcom,pre-div-channel-scaling = <0>;
qcom,calibration-type = "ratiometric";
qcom,scale-function = <2>;
qcom,hw-settle-time = <2>;
qcom,fast-avg-setup = <0>;
qcom,vadc-thermal-node;
};
};
pm8953_adc_tm: vadc@3400 {
compatible = "qcom,qpnp-adc-tm";
reg = <0x3400 0x100>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <0x0 0x34 0x0 IRQ_TYPE_EDGE_RISING>,
<0x0 0x34 0x3 IRQ_TYPE_EDGE_RISING>,
<0x0 0x34 0x4 IRQ_TYPE_EDGE_RISING>;
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 = <&pm8953_vadc>;
#thermal-sensor-cells = <1>;
chan@36 {
label = "pa_therm0";
reg = <0x36>;
qcom,pre-div-channel-scaling = <0>;
qcom,decimation = <0>;
qcom,calibration-type = "ratiometric";
qcom,scale-function = <2>;
qcom,hw-settle-time = <2>;
qcom,btm-channel-number = <0x48>;
qcom,fast-avg-setup = <0>;
qcom,thermal-node;
};
chan@32 {
label = "xo_therm";
reg = <0x32>;
qcom,pre-div-channel-scaling = <0>;
qcom,decimation = <0>;
qcom,calibration-type = "ratiometric";
qcom,scale-function = <4>;
qcom,hw-settle-time = <2>;
qcom,btm-channel-number = <0x68>;
qcom,fast-avg-setup = <0>;
qcom,thermal-node;
};
};
pm8953_rtc: qcom,pm8953_rtc {
spmi-dev-container;
compatible = "qcom,qpnp-rtc";
#address-cells = <1>;
#size-cells = <1>;
qcom,qpnp-rtc-write = <0>;
qcom,qpnp-rtc-alarm-pwrup = <0>;
qcom,pm8953_rtc_rw@6000 {
reg = <0x6000 0x100>;
};
qcom,pm8953_rtc_alarm@6100 {
reg = <0x6100 0x100>;
interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
};
};
pm8953_typec: qcom,pm8953_typec@bf00 {
compatible = "qcom,qpnp-typec";
reg = <0xbf00 0x100>;
interrupts = <0x0 0xbf 0x0 IRQ_TYPE_EDGE_RISING>,
<0x0 0xbf 0x1 IRQ_TYPE_EDGE_RISING>,
<0x0 0xbf 0x2 IRQ_TYPE_EDGE_RISING>,
<0x0 0xbf 0x3 IRQ_TYPE_EDGE_RISING>,
<0x0 0xbf 0x4 IRQ_TYPE_EDGE_RISING>,
<0x0 0xbf 0x6 IRQ_TYPE_EDGE_RISING>,
<0x0 0xbf 0x7 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "vrd-change",
"ufp-detect",
"ufp-detach",
"dfp-detect",
"dfp-detach",
"vbus-err",
"vconn-oc";
};
};
pm8953_1: qcom,pm8953@1 {
compatible = "qcom,spmi-pmic";
reg = <0x1 SPMI_USID>;
#address-cells = <1>;
#size-cells = <1>;
pm8953_pwm: qcom,pwms@bc00 {
status = "disabled";
compatible = "qcom,pwm-lpg";
reg = <0xbc00 0x100>;
reg-names = "lpg-base";
#pwm-cells = <2>;
};
};
};
&thermal_zones {
xo-therm-adc {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&pm8953_adc_tm 0x32>;
thermal-governor = "user_space";
wake-capable-sensor;
trips {
active-config0 {
temperature = <65000>;
hysteresis = <1000>;
type = "passive";
};
};
};
xo-therm-buf-adc {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&pm8953_vadc 0x3c>;
thermal-governor = "user_space";
wake-capable-sensor;
trips {
active-config0 {
temperature = <65000>;
hysteresis = <1000>;
type = "passive";
};
};
};
pm8953_tz {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&pm8953_tz>;
wake-capable-sensor;
trips {
pm8953_trip0: pm8953-trip0 {
temperature = <105000>;
hysteresis = <0>;
type = "passive";
};
pm8953_trip1: pm8953-trip1 {
temperature = <125000>;
hysteresis = <0>;
type = "passive";
};
pm8953_trip2: pm8953-trip2 {
temperature = <145000>;
hysteresis = <0>;
type = "passive";
};
};
};
};