diff options
author | Kavya Nunna <knunna@qti.qualcomm.com> | 2021-05-28 14:52:34 +0530 |
---|---|---|
committer | Kavya Nunna <knunna@qti.qualcomm.com> | 2021-06-16 17:54:24 +0530 |
commit | cd1aa5bb4334314bf7f719ee7cd198eb944d8e2c (patch) | |
tree | 62f515c63d625e21898052df04c01c898c24b701 /qcom/khaje-pm7250b.dtsi | |
parent | 017cfa7e85b699cbe70dce77c6eb5f831547f97f (diff) | |
download | devicetree-cd1aa5bb4334314bf7f719ee7cd198eb944d8e2c.tar.gz |
ARM: dts: msm: Add pmic support for khaje
Add support for pm7250b peripherals for Khaje.
Change-Id: I7e9a81fd0ee373f9d9d1bf942d5924a3900375fb
Diffstat (limited to 'qcom/khaje-pm7250b.dtsi')
-rw-r--r-- | qcom/khaje-pm7250b.dtsi | 76 |
1 files changed, 74 insertions, 2 deletions
diff --git a/qcom/khaje-pm7250b.dtsi b/qcom/khaje-pm7250b.dtsi index 594e2a5d..3b3147d3 100644 --- a/qcom/khaje-pm7250b.dtsi +++ b/qcom/khaje-pm7250b.dtsi @@ -1,3 +1,75 @@ -/*update the 7250b as per khaje*/ -/*#include "pm7250b.dtsi"*/ +#include <dt-bindings/clock/qcom,rpmcc.h> +#include <dt-bindings/clock/qcom,rpmh.h> +#include "pm7250b.dtsi" +&pm7250b_clkdiv { + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>; +}; + +&pm7250b_vadc { + charger_skin_therm@4d { + reg = <ADC_AMUX_THM1_PU2>; + label = "charger_skin_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + + conn_therm@4f { + reg = <ADC_AMUX_THM3_PU2>; + label = "conn_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pm7250b_adc_tm { + io-channels = <&pm7250b_vadc ADC_AMUX_THM1_PU2>, + <&pm7250b_vadc ADC_AMUX_THM3_PU2>; + + /* Channel nodes */ + charger_skin_therm@4d { + reg = <ADC_AMUX_THM1_PU2>; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + conn_therm@4f { + reg = <ADC_AMUX_THM3_PU2>; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&thermal_zones { + charger-therm-usr { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC_AMUX_THM1_PU2>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + conn-therm-usr { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC_AMUX_THM3_PU2>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; |