Loading arch/arm64/boot/dts/qcom/sa6155-pmic.dtsi +146 −0 Original line number Diff line number Diff line Loading @@ -171,3 +171,149 @@ #include "sa6155-regulator.dtsi" #include "pm6155.dtsi" &spmi_bus { qcom,pm6155@0 { pm6155_vadc: vadc@3100 { compatible = "qcom,spmi-adc5"; reg = <0x3100 0x100>; #address-cells = <1>; #size-cells = <0>; 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; /* Channel node */ ref_gnd { reg = <ADC_REF_GND>; label = "ref_gnd"; qcom,pre-scaling = <1 1>; }; vref_1p25 { reg = <ADC_1P25VREF>; label = "vref_1p25"; qcom,pre-scaling = <1 1>; }; die_temp { reg = <ADC_DIE_TEMP>; label = "die_temp"; qcom,pre-scaling = <1 1>; }; vph_pwr { reg = <ADC_VPH_PWR>; label = "vph_pwr"; qcom,pre-scaling = <1 3>; }; vcoin { reg = <ADC_VCOIN>; label = "vcoin"; qcom,pre-scaling = <1 3>; }; xo_therm { reg = <ADC_XO_THERM_PU2>; label = "xo_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; pa_therm1 { reg = <ADC_AMUX_THM1_PU2>; label = "pa_therm1"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; pa_therm2 { reg = <ADC_AMUX_THM2_PU2>; label = "pa_therm2"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; }; pm6155_adc_tm: adc_tm@3500 { compatible = "qcom,adc-tm5"; reg = <0x3500 0x100>; interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>; interrupt-names = "thr-int-en"; #address-cells = <1>; #size-cells = <0>; #thermal-sensor-cells = <1>; io-channels = <&pm6155_vadc ADC_XO_THERM_PU2>, <&pm6155_vadc ADC_AMUX_THM1_PU2>, <&pm6155_vadc ADC_AMUX_THM2_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_therm2 { reg = <ADC_AMUX_THM2_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; }; }; }; &thermal_zones { xo-therm-adc { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6155_adc_tm ADC_XO_THERM_PU2>; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; pa-therm1-adc { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6155_adc_tm ADC_AMUX_THM1_PU2>; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; pa-therm2-adc { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6155_adc_tm ADC_AMUX_THM2_PU2>; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; }; Loading
arch/arm64/boot/dts/qcom/sa6155-pmic.dtsi +146 −0 Original line number Diff line number Diff line Loading @@ -171,3 +171,149 @@ #include "sa6155-regulator.dtsi" #include "pm6155.dtsi" &spmi_bus { qcom,pm6155@0 { pm6155_vadc: vadc@3100 { compatible = "qcom,spmi-adc5"; reg = <0x3100 0x100>; #address-cells = <1>; #size-cells = <0>; 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; /* Channel node */ ref_gnd { reg = <ADC_REF_GND>; label = "ref_gnd"; qcom,pre-scaling = <1 1>; }; vref_1p25 { reg = <ADC_1P25VREF>; label = "vref_1p25"; qcom,pre-scaling = <1 1>; }; die_temp { reg = <ADC_DIE_TEMP>; label = "die_temp"; qcom,pre-scaling = <1 1>; }; vph_pwr { reg = <ADC_VPH_PWR>; label = "vph_pwr"; qcom,pre-scaling = <1 3>; }; vcoin { reg = <ADC_VCOIN>; label = "vcoin"; qcom,pre-scaling = <1 3>; }; xo_therm { reg = <ADC_XO_THERM_PU2>; label = "xo_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; pa_therm1 { reg = <ADC_AMUX_THM1_PU2>; label = "pa_therm1"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; pa_therm2 { reg = <ADC_AMUX_THM2_PU2>; label = "pa_therm2"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; }; pm6155_adc_tm: adc_tm@3500 { compatible = "qcom,adc-tm5"; reg = <0x3500 0x100>; interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>; interrupt-names = "thr-int-en"; #address-cells = <1>; #size-cells = <0>; #thermal-sensor-cells = <1>; io-channels = <&pm6155_vadc ADC_XO_THERM_PU2>, <&pm6155_vadc ADC_AMUX_THM1_PU2>, <&pm6155_vadc ADC_AMUX_THM2_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_therm2 { reg = <ADC_AMUX_THM2_PU2>; qcom,ratiometric; qcom,hw-settle-time = <200>; }; }; }; }; &thermal_zones { xo-therm-adc { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6155_adc_tm ADC_XO_THERM_PU2>; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; pa-therm1-adc { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6155_adc_tm ADC_AMUX_THM1_PU2>; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; pa-therm2-adc { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6155_adc_tm ADC_AMUX_THM2_PU2>; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; };