Loading arch/arm64/boot/dts/qcom/sm6150-interposer-trinket-idp.dtsi +41 −1 Original line number Diff line number Diff line /* * Copyright (c) 2018, The Linux Foundation. All rights reserved. * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading @@ -14,6 +14,7 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> #include "sm6150-sde-display.dtsi" #include <dt-bindings/iio/qcom,spmi-vadc.h> &pm6125_gpios { key_vol_up { Loading @@ -27,6 +28,45 @@ }; }; &pm6125_vadc { rf_pa1_therm { reg = <ADC_GPIO4_PU2>; label = "rf_pa1_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; }; &pm6125_adc_tm { io-channels = <&pm6125_vadc ADC_AMUX_THM1_PU2>, <&pm6125_vadc ADC_AMUX_THM2_PU2>, <&pm6125_vadc ADC_XO_THERM_PU2>, <&pm6125_vadc ADC_GPIO4_PU2>; rf_pa1_therm { reg = <ADC_GPIO4_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; }; &thermal_zones { rf-pa1-therm-adc { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC_GPIO4_PU2>; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; }; &soc { gpio_keys { compatible = "gpio-keys"; Loading arch/arm64/boot/dts/qcom/sm6150-interposer-trinket-qrd.dtsi +13 −0 Original line number Diff line number Diff line Loading @@ -167,3 +167,16 @@ }; }; &pmi632_vadc { bat_therm { qcom,lut-index = <0>; }; bat_therm_30k { qcom,lut-index = <0>; }; bat_therm_400k { qcom,lut-index = <0>; }; }; Loading
arch/arm64/boot/dts/qcom/sm6150-interposer-trinket-idp.dtsi +41 −1 Original line number Diff line number Diff line /* * Copyright (c) 2018, The Linux Foundation. All rights reserved. * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading @@ -14,6 +14,7 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> #include "sm6150-sde-display.dtsi" #include <dt-bindings/iio/qcom,spmi-vadc.h> &pm6125_gpios { key_vol_up { Loading @@ -27,6 +28,45 @@ }; }; &pm6125_vadc { rf_pa1_therm { reg = <ADC_GPIO4_PU2>; label = "rf_pa1_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; }; &pm6125_adc_tm { io-channels = <&pm6125_vadc ADC_AMUX_THM1_PU2>, <&pm6125_vadc ADC_AMUX_THM2_PU2>, <&pm6125_vadc ADC_XO_THERM_PU2>, <&pm6125_vadc ADC_GPIO4_PU2>; rf_pa1_therm { reg = <ADC_GPIO4_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; }; &thermal_zones { rf-pa1-therm-adc { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC_GPIO4_PU2>; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; }; &soc { gpio_keys { compatible = "gpio-keys"; Loading
arch/arm64/boot/dts/qcom/sm6150-interposer-trinket-qrd.dtsi +13 −0 Original line number Diff line number Diff line Loading @@ -167,3 +167,16 @@ }; }; &pmi632_vadc { bat_therm { qcom,lut-index = <0>; }; bat_therm_30k { qcom,lut-index = <0>; }; bat_therm_400k { qcom,lut-index = <0>; }; };