ARM: dts: msm: Add pmd802x support for tuna
Add pmd802x support for tuna mtp platforms. While at it add pm7550ba thermal zones and other pm7550ba support. Change-Id: Ia34757eecea578b454c83c24610d8bdb31e2836b Signed-off-by: Kavya Nunna <quic_knunna@quicinc.com>
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
|
||||
#include "pm7550ba.dtsi"
|
||||
#include <dt-bindings/spmi/spmi.h>
|
||||
#include <dt-bindings/iio/qcom,spmi-vadc.h>
|
||||
#include <dt-bindings/iio/qcom,spmi-adc5-gen3-pm7550ba.h>
|
||||
|
||||
/ {
|
||||
qcom,pmic-id-size = <8>;
|
||||
@@ -34,6 +36,126 @@
|
||||
qcom,can-sleep;
|
||||
};
|
||||
};
|
||||
|
||||
i2c@104 {
|
||||
reg = <0x104>; /* I2C instance 4 in ADSP for SE5 */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
qcom,bus-type = "i2c";
|
||||
|
||||
qcom,smb1398@34 {
|
||||
compatible = "qcom,i2c-pmic";
|
||||
reg = <0x34>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
};
|
||||
|
||||
/* SPMI bridge bus 1 with SMB1510 device */
|
||||
spmi@200 {
|
||||
reg = <0x200>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
qcom,bus-type = "spmi";
|
||||
|
||||
qcom,smb1510@d {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <13 SPMI_USID>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pmic_glink_adc {
|
||||
status = "ok";
|
||||
|
||||
smb1398_1_iin {
|
||||
reg = <0x1043401>;
|
||||
label = "smb1393_1_iin";
|
||||
};
|
||||
|
||||
smb1398_1_ichg {
|
||||
reg = <0x1043402>;
|
||||
label = "smb1393_1_ichg";
|
||||
};
|
||||
|
||||
smb1398_1_die_temp {
|
||||
reg = <0x1043403>;
|
||||
label = "smb1393_1_die_temp";
|
||||
};
|
||||
};
|
||||
|
||||
&pmk8550_vadc {
|
||||
pinctrl-0 = <&sys_therm_7_gpio6_default &sys_therm_6_gpio7_default>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
/* PM7550BA Channel nodes */
|
||||
pm7550ba_offset_ref {
|
||||
reg = <PM7550BA_ADC5_GEN3_OFFSET_REF>;
|
||||
label = "pm7550ba_offset_ref";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm7550ba_vref_1p25 {
|
||||
reg = <PM7550BA_ADC5_GEN3_1P25VREF>;
|
||||
label = "pm7550ba_vref_1p25";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm7550ba_die_temp {
|
||||
reg = <PM7550BA_ADC5_GEN3_DIE_TEMP>;
|
||||
label = "pm7550ba_die_temp";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm7550ba_vph_pwr {
|
||||
reg = <PM7550BA_ADC5_GEN3_VPH_PWR>;
|
||||
label = "pm7550ba_vph_pwr";
|
||||
qcom,pre-scaling = <1 3>;
|
||||
};
|
||||
|
||||
pm7550ba_chg_temp {
|
||||
reg = <PM7550BA_ADC5_GEN3_CHG_TEMP_V>;
|
||||
label = "pm7550ba_chg_temp";
|
||||
};
|
||||
|
||||
pm7550ba_iin_fb {
|
||||
reg = <PM7550BA_ADC5_GEN3_IIN_FB>;
|
||||
label = "pm7550ba_iin_fb";
|
||||
};
|
||||
|
||||
pm7550ba_ichg_fb {
|
||||
reg = <PM7550BA_ADC5_GEN3_ICHG_FB>;
|
||||
label = "pm7550ba_ichg_fb";
|
||||
};
|
||||
|
||||
pm7550ba_sys_therm_7 {
|
||||
reg = <PM7550BA_ADC5_GEN3_AMUX_THM6_GPIO6_100K_PU>;
|
||||
label = "pm7550ba_sys_therm_7";
|
||||
qcom,adc-tm-type = <1>;
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm7550ba_sys_therm_8 {
|
||||
reg = <PM7550BA_ADC5_GEN3_AMUX_THM4_USB_THERM_100K_PU>;
|
||||
label = "pm7550ba_sys_therm_8";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,adc-tm-type = <1>;
|
||||
|
||||
};
|
||||
|
||||
pm7550ba_batt_therm {
|
||||
reg = <PM7550BA_ADC5_GEN3_AMUX_THM1_BATT_THERM_100K_PU>;
|
||||
label = "pm7550ba_batt_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,scale-fn-type = <ADC_SCALE_HW_CALIB_PM5_GEN3_BATT_THERM_100K>;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&pm7550ba_vib {
|
||||
@@ -44,3 +166,61 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pm7550ba_tz {
|
||||
io-channels = <&pmk8550_vadc PM7550BA_ADC5_GEN3_DIE_TEMP>;
|
||||
io-channel-names = "thermal";
|
||||
};
|
||||
|
||||
&battery_charger {
|
||||
qcom,thermal-mitigation-step = <500000>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
&pm7550ba_gpios {
|
||||
sys_therm_7_gpio6 {
|
||||
sys_therm_7_gpio6_default: sys_therm_7_gpio6_default {
|
||||
pins = "gpio6";
|
||||
bias-high-impedance;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&thermal_zones {
|
||||
sys-therm-7 {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmk8550_vadc PM7550BA_ADC5_GEN3_AMUX_THM6_GPIO6_100K_PU>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
active-config1 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
sys-therm-8 {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmk8550_vadc PM7550BA_ADC5_GEN3_AMUX_THM4_USB_THERM_100K_PU>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
active-config1 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user