Loading qcom/bengal-thermal.dtsi 0 → 100644 +93 −0 Original line number Diff line number Diff line #include <dt-bindings/thermal/thermal.h> &thermal_zones { xo-therm-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC_XO_THERM_PU2>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; pa-therm0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC_AMUX_THM1_PU2>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; quiet-therm-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC_AMUX_THM2_PU2>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; camera-therm-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm_iio ADC_GPIO1_PU2>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; emmc-ufs-therm-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm_iio ADC_GPIO2_PU2>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; chg-skin-therm-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pmi632_adc_tm ADC_GPIO2_PU2>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; }; qcom/bengal.dtsi +166 −0 Original line number Diff line number Diff line Loading @@ -1036,6 +1036,8 @@ status = "disabled"; }; thermal_zones: thermal-zones {}; clocks { xo_board: xo_board { compatible = "fixed-clock"; Loading Loading @@ -1654,3 +1656,167 @@ &qupv3_se4_2uart { status = "ok"; }; &pm6125_vadc { #address-cells = <1>; #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&camera_therm_default &emmc_therm_default>; pa_therm0 { reg = <ADC_AMUX_THM1_PU2>; label = "pa_therm0"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; quiet_therm { reg = <ADC_AMUX_THM2_PU2>; label = "quiet_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; camera_flash_therm { reg = <ADC_GPIO1_PU2>; label = "camera_flash_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; emmc_ufs_therm { reg = <ADC_GPIO2_PU2>; label = "emmc_ufs_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; }; &pm6125_gpios { camera_therm { camera_therm_default: camera_therm_default { pins = "gpio3"; bias-high-impedance; }; }; emmc_therm { emmc_therm_default: emmc_therm_default { pins = "gpio4"; bias-high-impedance; }; }; }; &spmi_bus { qcom,pm6125@0 { pm6125_adc_tm_iio: adc_tm@3400 { compatible = "qcom,adc-tm5-iio"; reg = <0x3400 0x100>; #thermal-sensor-cells = <1>; #address-cells = <1>; #size-cells = <0>; io-channels = <&pm6125_vadc ADC_GPIO1_PU2>, <&pm6125_vadc ADC_GPIO2_PU2>; camera_flash_therm { reg = <ADC_GPIO1_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; emmc_ufs_therm { reg = <ADC_GPIO2_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; }; }; }; &pm6125_adc_tm { #address-cells = <1>; #size-cells = <0>; io-channels = <&pm6125_vadc ADC_AMUX_THM1_PU2>, <&pm6125_vadc ADC_AMUX_THM2_PU2>, <&pm6125_vadc ADC_XO_THERM_PU2>; /* Channel nodes */ pa_therm0 { reg = <ADC_AMUX_THM1_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; quiet_therm { reg = <ADC_AMUX_THM2_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; xo_therm { reg = <ADC_XO_THERM_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; }; &pmi632_vadc { #address-cells = <1>; #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&conn_therm_default &skin_therm_default>; conn_therm { reg = <ADC_GPIO1_PU2>; label = "conn_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; skin_therm { reg = <ADC_GPIO2_PU2>; label = "skin_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; }; &pmi632_gpios { conn_therm { conn_therm_default: conn_therm_default { pins = "gpio1"; bias-high-impedance; }; }; skin_therm { skin_therm_default: skin_therm_default { pins = "gpio3"; bias-high-impedance; }; }; }; &pmi632_adc_tm { #address-cells = <1>; #size-cells = <0>; io-channels = <&pmi632_vadc ADC_GPIO2_PU2>; /* Channel nodes */ skin_therm { reg = <ADC_GPIO2_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; }; #include "bengal-thermal.dtsi" qcom/pmi632.dtsi +0 −8 Original line number Diff line number Diff line Loading @@ -113,14 +113,6 @@ qcom,pre-scaling = <1 1>; }; xo_therm { reg = <ADC_XO_THERM_PU2>; label = "xo_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; v_i_int_ext { reg = <ADC_INT_EXT_ISENSE_VBAT_VDATA>; label = "v_i_int_vbat_vdata"; Loading Loading
qcom/bengal-thermal.dtsi 0 → 100644 +93 −0 Original line number Diff line number Diff line #include <dt-bindings/thermal/thermal.h> &thermal_zones { xo-therm-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC_XO_THERM_PU2>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; pa-therm0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC_AMUX_THM1_PU2>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; quiet-therm-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC_AMUX_THM2_PU2>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; camera-therm-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm_iio ADC_GPIO1_PU2>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; emmc-ufs-therm-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm_iio ADC_GPIO2_PU2>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; chg-skin-therm-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pmi632_adc_tm ADC_GPIO2_PU2>; wake-capable-sensor; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; };
qcom/bengal.dtsi +166 −0 Original line number Diff line number Diff line Loading @@ -1036,6 +1036,8 @@ status = "disabled"; }; thermal_zones: thermal-zones {}; clocks { xo_board: xo_board { compatible = "fixed-clock"; Loading Loading @@ -1654,3 +1656,167 @@ &qupv3_se4_2uart { status = "ok"; }; &pm6125_vadc { #address-cells = <1>; #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&camera_therm_default &emmc_therm_default>; pa_therm0 { reg = <ADC_AMUX_THM1_PU2>; label = "pa_therm0"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; quiet_therm { reg = <ADC_AMUX_THM2_PU2>; label = "quiet_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; camera_flash_therm { reg = <ADC_GPIO1_PU2>; label = "camera_flash_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; emmc_ufs_therm { reg = <ADC_GPIO2_PU2>; label = "emmc_ufs_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; }; &pm6125_gpios { camera_therm { camera_therm_default: camera_therm_default { pins = "gpio3"; bias-high-impedance; }; }; emmc_therm { emmc_therm_default: emmc_therm_default { pins = "gpio4"; bias-high-impedance; }; }; }; &spmi_bus { qcom,pm6125@0 { pm6125_adc_tm_iio: adc_tm@3400 { compatible = "qcom,adc-tm5-iio"; reg = <0x3400 0x100>; #thermal-sensor-cells = <1>; #address-cells = <1>; #size-cells = <0>; io-channels = <&pm6125_vadc ADC_GPIO1_PU2>, <&pm6125_vadc ADC_GPIO2_PU2>; camera_flash_therm { reg = <ADC_GPIO1_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; emmc_ufs_therm { reg = <ADC_GPIO2_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; }; }; }; &pm6125_adc_tm { #address-cells = <1>; #size-cells = <0>; io-channels = <&pm6125_vadc ADC_AMUX_THM1_PU2>, <&pm6125_vadc ADC_AMUX_THM2_PU2>, <&pm6125_vadc ADC_XO_THERM_PU2>; /* Channel nodes */ pa_therm0 { reg = <ADC_AMUX_THM1_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; quiet_therm { reg = <ADC_AMUX_THM2_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; xo_therm { reg = <ADC_XO_THERM_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; }; &pmi632_vadc { #address-cells = <1>; #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&conn_therm_default &skin_therm_default>; conn_therm { reg = <ADC_GPIO1_PU2>; label = "conn_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; skin_therm { reg = <ADC_GPIO2_PU2>; label = "skin_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; }; &pmi632_gpios { conn_therm { conn_therm_default: conn_therm_default { pins = "gpio1"; bias-high-impedance; }; }; skin_therm { skin_therm_default: skin_therm_default { pins = "gpio3"; bias-high-impedance; }; }; }; &pmi632_adc_tm { #address-cells = <1>; #size-cells = <0>; io-channels = <&pmi632_vadc ADC_GPIO2_PU2>; /* Channel nodes */ skin_therm { reg = <ADC_GPIO2_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; }; #include "bengal-thermal.dtsi"
qcom/pmi632.dtsi +0 −8 Original line number Diff line number Diff line Loading @@ -113,14 +113,6 @@ qcom,pre-scaling = <1 1>; }; xo_therm { reg = <ADC_XO_THERM_PU2>; label = "xo_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; v_i_int_ext { reg = <ADC_INT_EXT_ISENSE_VBAT_VDATA>; label = "v_i_int_vbat_vdata"; Loading