mirror of
https://github.com/Evolution-X-Devices/kernel_oneplus_sm8550-devicetrees
synced 2026-02-01 09:49:52 +00:00
Merge "ARM: dts: msm: Add ADC5 GEN3 TM channels for Kalama"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
7d4c1874bd
@@ -85,6 +85,260 @@
|
||||
};
|
||||
};
|
||||
|
||||
&pm8550_tz {
|
||||
io-channels = <&pmk8550_vadc PM8550_ADC5_GEN3_DIE_TEMP>;
|
||||
io-channel-names = "thermal";
|
||||
};
|
||||
|
||||
&pm8550b_tz {
|
||||
io-channels = <&pmk8550_vadc PM8550B_ADC5_GEN3_DIE_TEMP>;
|
||||
io-channel-names = "thermal";
|
||||
};
|
||||
|
||||
&pm8550vs_c_tz {
|
||||
io-channels = <&pmk8550_vadc PM8550VS_C_ADC5_GEN3_DIE_TEMP>;
|
||||
io-channel-names = "thermal";
|
||||
};
|
||||
|
||||
&pm8550vs_d_tz {
|
||||
io-channels = <&pmk8550_vadc PM8550VS_D_ADC5_GEN3_DIE_TEMP>;
|
||||
io-channel-names = "thermal";
|
||||
};
|
||||
|
||||
&pm8550vs_e_tz {
|
||||
io-channels = <&pmk8550_vadc PM8550VS_E_ADC5_GEN3_DIE_TEMP>;
|
||||
io-channel-names = "thermal";
|
||||
};
|
||||
|
||||
&pm8550vs_g_tz {
|
||||
io-channels = <&pmk8550_vadc PM8550VS_G_ADC5_GEN3_DIE_TEMP>;
|
||||
io-channel-names = "thermal";
|
||||
};
|
||||
|
||||
&pm8550ve_f_tz {
|
||||
io-channels = <&pmk8550_vadc PM8550VE_ADC5_GEN3_DIE_TEMP>;
|
||||
io-channel-names = "thermal";
|
||||
};
|
||||
|
||||
&pmk8550_vadc {
|
||||
pm8550_msm_therm {
|
||||
reg = <PM8550_ADC5_GEN3_AMUX_THM1_100K_PU>;
|
||||
label = "pm8550_msm_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,adc-tm-type = <1>;
|
||||
};
|
||||
|
||||
pm8550_cam_flash_therm {
|
||||
reg = <PM8550_ADC5_GEN3_AMUX_THM2_100K_PU>;
|
||||
label = "pm8550_cam_flash_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,adc-tm-type = <1>;
|
||||
};
|
||||
|
||||
pm8550_wlan_therm {
|
||||
reg = <PM8550_ADC5_GEN3_AMUX_THM3_100K_PU>;
|
||||
label = "pm8550_wlan_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,adc-tm-type = <1>;
|
||||
};
|
||||
|
||||
pm8550_pa_therm_1 {
|
||||
reg = <PM8550_ADC5_GEN3_AMUX_THM4_100K_PU>;
|
||||
label = "pm8550_pa_therm_1";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,adc-tm-type = <1>;
|
||||
};
|
||||
|
||||
pm8550_rear_tof_therm {
|
||||
reg = <PM8550_ADC5_GEN3_AMUX_THM5_100K_PU>;
|
||||
label = "pm8550_rear_tof_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,adc-tm-type = <1>;
|
||||
};
|
||||
|
||||
pm8550b_usb_therm {
|
||||
reg = <PM8550B_ADC5_GEN3_AMUX_THM4_USB_THERM_100K_PU>;
|
||||
label = "pm8550b_usb_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,adc-tm-type = <1>;
|
||||
};
|
||||
|
||||
pm8550b_wls_therm {
|
||||
reg = <PM8550B_ADC5_GEN3_AMUX_THM6_GPIO10_100K_PU>;
|
||||
label = "pm8550b_wls_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,adc-tm-type = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
&thermal_zones {
|
||||
msm-therm {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmk8550_vadc PM8550_ADC5_GEN3_AMUX_THM1_100K_PU>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
active-config1 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cam-flash-therm {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmk8550_vadc PM8550_ADC5_GEN3_AMUX_THM2_100K_PU>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
active-config1 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
wlan-therm {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmk8550_vadc PM8550_ADC5_GEN3_AMUX_THM3_100K_PU>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
active-config1 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pa-therm-1 {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmk8550_vadc PM8550_ADC5_GEN3_AMUX_THM4_100K_PU>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
active-config1 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
rear-tof-therm {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmk8550_vadc PM8550_ADC5_GEN3_AMUX_THM5_100K_PU>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
active-config1 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
usb-therm {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmk8550_vadc PM8550B_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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
wls-therm {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmk8550_vadc PM8550B_ADC5_GEN3_AMUX_THM6_GPIO10_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 = <&pmk8550_vadc PMK8550_ADC5_GEN3_AMUX_THM1_XO_THERM_100K_PU>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
active-config1 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pm8550b_eusb2_repeater {
|
||||
vdd18-supply = <&pm_humu_l15>;
|
||||
vdd3-supply = <&pm_humu_l5>;
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
#include <dt-bindings/spmi/spmi.h>
|
||||
#include <dt-bindings/iio/qcom,spmi-adc5-gen3-pmk8550.h>
|
||||
#include <dt-bindings/iio/qcom,spmi-adc5-gen3-pm8550.h>
|
||||
#include <dt-bindings/iio/qcom,spmi-adc5-gen3-pm8550b.h>
|
||||
#include <dt-bindings/iio/qcom,spmi-adc5-gen3-pm8550vx.h>
|
||||
|
||||
&spmi_bus {
|
||||
#address-cells = <2>;
|
||||
@@ -83,8 +87,128 @@
|
||||
interrupt-names = "adc-sdam0" , "adc-sdam1";
|
||||
interrupts = <0x0 0x90 0x1 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x91 0x1 IRQ_TYPE_EDGE_RISING>;
|
||||
#thermal-sensor-cells = <1>;
|
||||
#io-channel-cells = <1>;
|
||||
io-channel-ranges;
|
||||
|
||||
/* PMK8550 Channel nodes */
|
||||
pmk8550_offset_ref {
|
||||
reg = <PMK8550_ADC5_GEN3_OFFSET_REF>;
|
||||
label = "pmk8550_offset_ref";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pmk8550_vref_1p25 {
|
||||
reg = <PMK8550_ADC5_GEN3_1P25VREF>;
|
||||
label = "pmk8550_vref_1p25";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pmk8550_die_temp {
|
||||
reg = <PMK8550_ADC5_GEN3_DIE_TEMP>;
|
||||
label = "pmk8550_die_temp";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pmk8550_xo_therm {
|
||||
reg = <PMK8550_ADC5_GEN3_AMUX_THM1_XO_THERM_100K_PU>;
|
||||
label = "pmk8550_xo_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,adc-tm-type = <1>;
|
||||
};
|
||||
|
||||
/* PM8550 Channel nodes */
|
||||
pm8550_offset_ref {
|
||||
reg = <PM8550_ADC5_GEN3_OFFSET_REF>;
|
||||
label = "pm8550_offset_ref";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm8550_vref_1p25 {
|
||||
reg = <PM8550_ADC5_GEN3_1P25VREF>;
|
||||
label = "pm8550_vref_1p25";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm8550_die_temp {
|
||||
reg = <PM8550_ADC5_GEN3_DIE_TEMP>;
|
||||
label = "pm8550_die_temp";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm8550_vph_pwr {
|
||||
reg = <PM8550_ADC5_GEN3_VPH_PWR>;
|
||||
label = "pm8550_vph_pwr";
|
||||
qcom,pre-scaling = <1 3>;
|
||||
};
|
||||
|
||||
/* PM8550B Channel nodes */
|
||||
pm8550b_offset_ref {
|
||||
reg = <PM8550B_ADC5_GEN3_OFFSET_REF>;
|
||||
label = "pm8550b_offset_ref";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm8550b_vref_1p25 {
|
||||
reg = <PM8550B_ADC5_GEN3_1P25VREF>;
|
||||
label = "pm8550b_vref_1p25";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm8550b_die_temp {
|
||||
reg = <PM8550B_ADC5_GEN3_DIE_TEMP>;
|
||||
label = "pm8550b_die_temp";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm8550b_vph_pwr {
|
||||
reg = <PM8550B_ADC5_GEN3_VPH_PWR>;
|
||||
label = "pm8550b_vph_pwr";
|
||||
qcom,pre-scaling = <1 3>;
|
||||
};
|
||||
|
||||
pm8550b_vbat_sns_qbg {
|
||||
reg = <PM8550B_ADC5_GEN3_VBAT_SNS_QBG>;
|
||||
label = "pm8550b_vbat_sns_qbg";
|
||||
qcom,pre-scaling = <1 3>;
|
||||
};
|
||||
|
||||
/* PM8550VS_C Channel nodes */
|
||||
pm8550vs_c_die_temp {
|
||||
reg = <PM8550VS_C_ADC5_GEN3_DIE_TEMP>;
|
||||
label = "pm8550vs_c_die_temp";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
/* PM8550VS_D Channel nodes */
|
||||
pm8550vs_d_die_temp {
|
||||
reg = <PM8550VS_D_ADC5_GEN3_DIE_TEMP>;
|
||||
label = "pm8550vs_d_die_temp";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
/* PM8550VS_E Channel nodes */
|
||||
pm8550vs_e_die_temp {
|
||||
reg = <PM8550VS_E_ADC5_GEN3_DIE_TEMP>;
|
||||
label = "pm8550vs_e_die_temp";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
/* PM8550VS_G Channel nodes */
|
||||
pm8550vs_g_die_temp {
|
||||
reg = <PM8550VS_G_ADC5_GEN3_DIE_TEMP>;
|
||||
label = "pm8550vs_g_die_temp";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
/* PM8550VE Channel nodes */
|
||||
pm8550ve_die_temp {
|
||||
reg = <PM8550VE_ADC5_GEN3_DIE_TEMP>;
|
||||
label = "pm8550ve_die_temp";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user