Loading Documentation/devicetree/bindings/thermal/qcom-adc-tm.txt +2 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,8 @@ ADC_TM node - compatible: Usage: required Value type: <string> Definition: Should contain "qcom,adc-tm5" for PMIC5 ADC TM driver. Definition: Should contain "qcom,adc-tm5" or "qcom,adc-tm5-iio" for PMIC5 ADC TM driver. - reg: Usage: required Loading arch/arm64/boot/dts/qcom/pms405.dtsi +29 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,8 @@ interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; interrupt-names = "eoc-int-en-set"; qcom,adc-vdd-reference = <1875>; #io-channel-cells = <1>; io-channel-ranges; ref_gnd { label = "ref_gnd"; Loading Loading @@ -84,6 +86,33 @@ }; }; pms405_adc_tm_iio: adc_tm@3500 { compatible = "qcom,adc-tm5-iio"; reg = <0x3500 0x100>; #thermal-sensor-cells = <1>; io-channels = <&pms405_vadc ADC_XO_THERM_PU2>, <&pms405_vadc ADC_AMUX_THM1_PU2>, <&pms405_vadc ADC_AMUX_THM3_PU2>; xo_therm { reg = <ADC_XO_THERM_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; pa_therm1 { reg = <ADC_AMUX_THM1_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; pa_therm3 { reg = <ADC_AMUX_THM3_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; }; pms405_pon: qcom,power-on@800 { compatible = "qcom,qpnp-power-on"; reg = <0x800 0x100>; Loading arch/arm64/boot/dts/qcom/qcs405-rumi.dtsi +3 −0 Original line number Diff line number Diff line Loading @@ -88,6 +88,9 @@ &thermal_zones { /delete-node/ aoss-lowf; /delete-node/ xo-therm-usr; /delete-node/ pa-therm1-usr; /delete-node/ pa-therm3-usr; }; #include "qcs405-stub-regulator.dtsi" Loading arch/arm64/boot/dts/qcom/qcs405-thermal.dtsi +21 −0 Original line number Diff line number Diff line Loading @@ -393,4 +393,25 @@ }; }; }; xo-therm-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pms405_adc_tm_iio ADC_XO_THERM_PU2>; }; pa-therm1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pms405_adc_tm_iio ADC_AMUX_THM1_PU2>; }; pa-therm3-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pms405_adc_tm_iio ADC_AMUX_THM3_PU2>; }; }; Loading
Documentation/devicetree/bindings/thermal/qcom-adc-tm.txt +2 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,8 @@ ADC_TM node - compatible: Usage: required Value type: <string> Definition: Should contain "qcom,adc-tm5" for PMIC5 ADC TM driver. Definition: Should contain "qcom,adc-tm5" or "qcom,adc-tm5-iio" for PMIC5 ADC TM driver. - reg: Usage: required Loading
arch/arm64/boot/dts/qcom/pms405.dtsi +29 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,8 @@ interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; interrupt-names = "eoc-int-en-set"; qcom,adc-vdd-reference = <1875>; #io-channel-cells = <1>; io-channel-ranges; ref_gnd { label = "ref_gnd"; Loading Loading @@ -84,6 +86,33 @@ }; }; pms405_adc_tm_iio: adc_tm@3500 { compatible = "qcom,adc-tm5-iio"; reg = <0x3500 0x100>; #thermal-sensor-cells = <1>; io-channels = <&pms405_vadc ADC_XO_THERM_PU2>, <&pms405_vadc ADC_AMUX_THM1_PU2>, <&pms405_vadc ADC_AMUX_THM3_PU2>; xo_therm { reg = <ADC_XO_THERM_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; pa_therm1 { reg = <ADC_AMUX_THM1_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; pa_therm3 { reg = <ADC_AMUX_THM3_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; }; pms405_pon: qcom,power-on@800 { compatible = "qcom,qpnp-power-on"; reg = <0x800 0x100>; Loading
arch/arm64/boot/dts/qcom/qcs405-rumi.dtsi +3 −0 Original line number Diff line number Diff line Loading @@ -88,6 +88,9 @@ &thermal_zones { /delete-node/ aoss-lowf; /delete-node/ xo-therm-usr; /delete-node/ pa-therm1-usr; /delete-node/ pa-therm3-usr; }; #include "qcs405-stub-regulator.dtsi" Loading
arch/arm64/boot/dts/qcom/qcs405-thermal.dtsi +21 −0 Original line number Diff line number Diff line Loading @@ -393,4 +393,25 @@ }; }; }; xo-therm-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pms405_adc_tm_iio ADC_XO_THERM_PU2>; }; pa-therm1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pms405_adc_tm_iio ADC_AMUX_THM1_PU2>; }; pa-therm3-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pms405_adc_tm_iio ADC_AMUX_THM3_PU2>; }; };