201 lines
4.1 KiB
Text
201 lines
4.1 KiB
Text
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
|
|
#include <dt-bindings/iio/qcom,spmi-vadc.h>
|
|
#include "pmx35.dtsi"
|
|
|
|
&pmx35_gpios {
|
|
smb_int {
|
|
smb_int_default: smb_int_default {
|
|
pins = "gpio7";
|
|
function = "normal";
|
|
input-enable;
|
|
bias-pull-up;
|
|
qcom,pull-up-strength = <PMIC_GPIO_PULL_UP_30>;
|
|
power-source = <0>;
|
|
};
|
|
};
|
|
|
|
batt_id {
|
|
batt_id_default: batt_id_default {
|
|
pins = "gpio6";
|
|
bias-high-impedance;
|
|
};
|
|
};
|
|
};
|
|
|
|
&qupv3_se4_i2c {
|
|
status = "ok";
|
|
smb23x-lbc@12 {
|
|
compatible = "qcom,smb231-lbc";
|
|
reg = <0x12>;
|
|
interrupt-parent = <&spmi_bus>;
|
|
interrupts = <0x0 0x8E 0x0 IRQ_TYPE_LEVEL_LOW>;
|
|
interrupt-names = "smb23x_stat_irq";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&smb_int_default>;
|
|
#io-channel-cells = <1>;
|
|
io-channels = <&pmx35_vadc PMX35_ADC5_GEN3_AMUX3_GPIO6_100K_PU>;
|
|
io-channel-names = "batt-id";
|
|
|
|
qcom,bms-psy-name = "bms";
|
|
qcom,float-voltage-mv = <4350>;
|
|
qcom,charging-timeout = <360>;
|
|
qcom,recharge-thresh-mv = <150>;
|
|
qcom,iterm-ma = <50>;
|
|
qcom,fastchg-ma = <1000>;
|
|
qcom,hot-bat-decidegc = <450>;
|
|
qcom,warm-bat-decidegc = <400>;
|
|
qcom,cool-bat-decidegc = <50>;
|
|
qcom,cold-bat-decidegc = <(0)>;
|
|
qcom,soft-temp-vfloat-comp-mv = <200>;
|
|
qcom,soft-temp-current-comp-ma = <400>;
|
|
qcom,chg-inhibit-disabled;
|
|
qcom,apsd-disabled;
|
|
qcom,thermal-mitigation = <1500 900 500 100>;
|
|
};
|
|
};
|
|
|
|
&soc {
|
|
pmic-pon-log {
|
|
compatible = "qcom,pmic-pon-log";
|
|
nvmem = <&pmx35_sdam_5>;
|
|
nvmem-names = "pon_log";
|
|
};
|
|
};
|
|
|
|
&pmx35_vbus_detect {
|
|
status = "okay";
|
|
};
|
|
|
|
&pmx35_vadc {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&batt_id_default>;
|
|
pmx35_batt_id {
|
|
reg = <PMX35_ADC5_GEN3_AMUX3_GPIO6_100K_PU>;
|
|
label = "batt_id";
|
|
qcom,ratiometric;
|
|
qcom,hw-settle-time = <200>;
|
|
qcom,pre-scaling = <1 1>;
|
|
qcom,scale-fn-type = <ADC_SCALE_HW_CALIB_PM5_GEN3_BATT_ID_100K>;
|
|
};
|
|
|
|
pmx35_quiet_therm {
|
|
reg = <PMX35_ADC5_GEN3_AMUX_THM2_100K_PU>;
|
|
label = "pmx35_quiet_therm";
|
|
qcom,ratiometric;
|
|
qcom,adc-tm-type = <1>;
|
|
qcom,hw-settle-time = <200>;
|
|
qcom,pre-scaling = <1 1>;
|
|
};
|
|
|
|
pmx35_xo_therm {
|
|
reg = <PMX35_ADC5_GEN3_AMUX_THM5_100K_PU>;
|
|
label = "pmx35_xo_therm";
|
|
qcom,ratiometric;
|
|
qcom,adc-tm-type = <1>;
|
|
qcom,hw-settle-time = <200>;
|
|
qcom,pre-scaling = <1 1>;
|
|
};
|
|
|
|
pa-therm1 {
|
|
reg = <PMX35_ADC5_GEN3_AMUX_THM1_100K_PU>;
|
|
label = "pmx35_pa_therm1";
|
|
qcom,ratiometric;
|
|
qcom,adc-tm-type = <1>;
|
|
qcom,hw-settle-time = <200>;
|
|
qcom,pre-scaling = <1 1>;
|
|
};
|
|
|
|
mdm-skin-therm {
|
|
reg = <PMX35_ADC5_GEN3_AMUX_THM3_100K_PU>;
|
|
label = "mdm-skin-therm";
|
|
qcom,ratiometric;
|
|
qcom,adc-tm-type = <1>;
|
|
qcom,hw-settle-time = <200>;
|
|
qcom,pre-scaling = <1 1>;
|
|
};
|
|
|
|
};
|
|
|
|
&pmx35_tz {
|
|
io-channels = <&pmx35_vadc PMX35_ADC5_GEN3_DIE_TEMP>;
|
|
io-channel-names = "thermal";
|
|
};
|
|
|
|
&thermal_zones {
|
|
sys-therm-1 {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-sensors = <&pmx35_vadc PMX35_ADC5_GEN3_AMUX_THM1_100K_PU>;
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
|
|
active-config1 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
sys-therm-2 {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-sensors = <&pmx35_vadc PMX35_ADC5_GEN3_AMUX_THM2_100K_PU>;
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
|
|
active-config1 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
sys-therm-3 {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-sensors = <&pmx35_vadc PMX35_ADC5_GEN3_AMUX_THM3_100K_PU>;
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
|
|
active-config1 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
xo-therm {
|
|
polling-delay-passive = <0>;
|
|
polling-delay = <0>;
|
|
thermal-sensors = <&pmx35_vadc PMX35_ADC5_GEN3_AMUX_THM5_100K_PU>;
|
|
trips {
|
|
active-config0 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
|
|
active-config1 {
|
|
temperature = <125000>;
|
|
hysteresis = <1000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
};
|